tpapp / julia-repl

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

Could not capture based for Julia executable nil #124

Closed bernaloo closed 1 year ago

bernaloo commented 1 year ago

with the settings listed below, I get the error

"could not capture basedir for Julia executable nil"

my Julia mode is working and I have the following snippet in my init.el

(add-to-list 'load-path "~/.emacs.d/julia-repl") (require 'julia-repl) (add-hook 'julia-mode-hook 'julia-repl-mode) I checked out the "julia-repl" repo in my "~/.emacs.d" I also make sure Julia is in the path and I can call it from any terminal.

  1. the Emacs version (M-x emacs-version [RET], will also appear in the buffer *Messages*),
    • GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27
  2. the Julia version (VERSION)
    • 1.8.1
  3. the version of julia-repl (something like “latest master” is fine).
    • lastest master
  4. self-contained steps to replicate the issue.
bernaloo commented 1 year ago

seems to be that my Julia installation is not really a default.

If I do:

(setq julia-repl-executable-records '((default "julia") ; in the executable path (master "/Applications/Julia-1.8.app/Contents/Resources/julia/bin/julia"))) ;

and then by using CTRL+c CTRL+v I select the "master" option, I get it to work.

I would like to set this permanently however

bernaloo commented 1 year ago

solved using julia-repl-executable-records