julia-repl icon indicating copy to clipboard operation
julia-repl copied to clipboard

Make `julia-repl-executable-records` customizable

Open dominiccooney opened this issue 5 years ago • 4 comments

When reporting an issue, please provide

  1. the Emacs version (M-x emacs-version [RET], will also appear in the buffer *Messages*),

GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30

  1. the Julia version (VERSION)

v"1.1.1"

  1. the version of julia-repl (something like “latest master” is fine).

MELPA 20190420.1455

  1. self-contained steps to replicate the issue.

Even with Julia on PATH, Emacs on Windows fails to start Julia with "Spawning child process: invalid argument". It looks like julia-repl--capture-basedir is failing to spawn Julia in the first place. I'd be happy enough to customize julia-repl-executable-records and point it directly to Julia, but that is defvar not defcustom. It would be nice if it was customizable.

dominiccooney avatar May 29 '19 00:05 dominiccooney

Perhaps there is a misunderstanding here: you are encouraged to set this variable in your .init.el or similar, eg this is what I do:

(setq julia-repl-executable-records
          '((git "/home/tamas/src/julia-git/julia")
            (v1.2 "/home/tamas/src/julia-1.2/julia")
            (v1.1 "/home/tamas/src/julia-1.1.1/bin/julia")))

tpapp avatar Nov 20 '19 07:11 tpapp

The same error on Windows after setting the variable: "Spawning child process: invalid argument." (setq julia-repl-executable-records '((default "~/AppData/Local/Microsoft/WindowsApps/julia.exe"))) GNU Emacs 27.2, Julia v1.7.2, MELPA 20211230.814.

hzheng88 avatar Feb 10 '22 03:02 hzheng88

Does the same executable run outside Emacs, eg in the terminal?

tpapp avatar Feb 10 '22 08:02 tpapp

Yes, it runs in the terminal.

The terminal emulator seems to have raised the error. M-x term on Windows: "Spawning child process: invalid argument."

hzheng88 avatar Feb 10 '22 12:02 hzheng88