tpapp / julia-repl

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

MS-Windows: could not capture basedir for Julia executable #128

Open StefanPofahl opened 1 year ago

StefanPofahl commented 1 year ago

When reporting an issue, please provide

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

  2. the Julia version (VERSION) v1.8.3

  3. the version of julia-repl (something like “latest master” is fine). Melpa "bleeding-edge"

  4. self-contained steps to replicate the issue. Here is my snippet for julia-repl configuration:

    (require 'julia-repl)
    (add-hook 'julia-mode-hook 'julia-repl-mode) ;; always use minor mode
    (setq julia-repl-executable-records '((default "C:\\bin\\julia\\bin\\julia.exe")))
  5. Error message:

    Warning (emacs): could not capture basedir for Julia executable C:\bin\julia\bin\julia.exe
tpapp commented 1 year ago

is julia in the path? what happens when you start from the terminal as julia.exe?

StefanPofahl commented 1 year ago

Thanks for the fast response, I guess I have spent now more then 5 hours to get it into operation. I have a cmd file in the path.julia.exe fails. julia and julia.cmd succeeds.

C:\Users\stefanpofahl>julia.exe
Der Befehl "julia.exe" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

P.S.: I propose to set up a heavily commented init.el some where. Could I send you mine for peer-review?

tpapp commented 1 year ago

Can you set up an executable record (see the readme) which points to the cmd file directly?

StefanPofahl commented 1 year ago

Thanks for the suggestion! I did, but it does not change the situation.

wentasah commented 1 year ago

I've sent a PR, which fixes this problem. However there is another problem that prevents julia-repl to work on Windows :-(. The term backed runs all its processes via /bin/sh, which doesn't exist on Windows. I'll open a new issue for that.