File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -401,16 +401,20 @@ Note that ‘make-term’ surrounds this string by *'s when converted to a buffe
401
401
(cl-defun julia-repl--capture-basedir (executable-path )
402
402
" Attempt to obtain the Julia base directory by querying the Julia executable.
403
403
404
- When NIL, this was unsuccessful."
404
+ When NIL, this was unsuccessful. In this case, debug information
405
+ is printed to the *Messages* buffer."
405
406
(let* ((prefix " OK" ) ; prefix is used to verify that there was no error and help with extraction
406
407
(expr (concat " print(\" " prefix
407
408
" \" * normpath(joinpath(VERSION <= v\" 0.7-\" ? JULIA_HOME : Sys.BINDIR, "
408
409
" Base.DATAROOTDIR, \" julia\" , \" base\" )))" ))
409
410
(switches " --history-file=no --startup-file=no -qe " )
410
411
(maybe-basedir (shell-command-to-string
411
412
(concat executable-path switches (concat " '" expr " '" )))))
412
- (when (string-prefix-p prefix maybe-basedir)
413
- (substring maybe-basedir (length prefix)))))
413
+ (if (string-prefix-p prefix maybe-basedir)
414
+ (substring maybe-basedir (length prefix))
415
+ (progn
416
+ (message " Julia basedir query returned “%s ” " maybe-basedir)
417
+ nil ))))
414
418
415
419
(defun julia-repl--executable-path (executable-record )
416
420
" Retrun the Julia executable for the given EXECUTABLE-RECORD.
You can’t perform that action at this time.
0 commit comments