Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
StefanPofahl opened this issue Dec 1, 2022 · 6 comments · May be fixed by #132
Closed

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

StefanPofahl opened this issue Dec 1, 2022 · 6 comments · May be fixed by #132

Comments

@StefanPofahl
Copy link

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")))
  1. Error message:
Warning (emacs): could not capture basedir for Julia executable C:\bin\julia\bin\julia.exe
@tpapp
Copy link
Owner

tpapp commented Dec 1, 2022

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

@StefanPofahl
Copy link
Author

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
Copy link
Owner

tpapp commented Dec 7, 2022

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

@StefanPofahl
Copy link
Author

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

@wentasah
Copy link
Contributor

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.

@tpapp
Copy link
Owner

tpapp commented Nov 20, 2024

I am closing this issue since you can now use the eat backend.

Feel free to comment if you think it is still relevant and I will reopen.

@tpapp tpapp closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants