tpapp / julia-repl

Run an inferior Julia REPL in a terminal inside Emacs
Other
171 stars 35 forks source link

Make `julia-repl-executable-records` customizable #59

Open dominiccooney opened 5 years ago

dominiccooney commented 5 years ago

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.

tpapp commented 4 years ago

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")))
hzheng88 commented 2 years ago

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.

tpapp commented 2 years ago

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

hzheng88 commented 2 years ago

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."