JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.75k stars 5.49k forks source link

Julia from Emacs ESS freezes Emacs, no console input line visible #29632

Open minkjaco opened 6 years ago

minkjaco commented 6 years ago

Emacs starts successfully with the following in the ESS buffer:

[ess-site.el]: ess-customize-alist=nil 
[ess-site.el _2_]: ess-customize-alist=nil 
Creating global Emacs toolbar(R): ess-r-versions-create making M-x defuns for 
 R-3.5.1-32bit
 R-3.5.1-64bit
[ess-site:] ess-lisp-directory = 'c:/Program Files/GNU Emacs 26.1/share/emacs/site-lisp/ess'[ess-site.el]: ess-customize-alist=nil 
[ess-site.el _2_]: ess-customize-alist=nil 
[ess-site:] *very* end ...

Starting Julia with M-x julia requests the project directory (~ by default) and causes Emacs to hang, displaying the following line at the bottom: Type C-h m for help on ESS version 17.11

Emacs does not resume unless C-g is pressed. The julia buffer has been created. The ESS buffer now adds the following lines:

(julia): ess-dialect=nil, buf=*GNU Emacs*, start-arg=nil
 current-prefix-arg=nil
(inf-ess 1): lang=nil, dialect=nil, tmp-dialect=julia, buf=*GNU Emacs*
(inf-ess 1.1): procname=julia temp-dialect=julia, buf-name=*julia* 
(inf-ess 2.0) Method #3 start=c:/Users/3141j/ buf=*julia*
(ess-setq-vars-LOCAL): language=julia, dialect=julia, buf=nil, comint..echoes=nil, comint..sender=comint-simple-send
(inf-ess 2.1): ess-language=julia, ess-dialect=julia buf=*julia* 
(ess-setq-vars-LOCAL): language=julia, dialect=julia, buf=nil, comint..echoes=nil, comint..sender=inferior-ess-input-sender
(i-ess 1): buf=*julia*, lang=julia, comint..echo=nil, comint..sender=inferior-ess-input-sender,
(i-ess end): buf=*julia*, lang=julia, comint..echo=nil, comint..sender=inferior-ess-input-sender,
(inf-ess 3.0): prog=C:/Users/3141j/AppData/Local/Julia-1.0.1/bin/julia, start-args= , echoes=nil
Making Process...Buf *julia*, :Proc julia, :Prog C:/Users/3141j/AppData/Local/Julia-1.0.1/bin/julia
 :Args=  
Start File=nil
(inferior-ess: waiting for process to start (before hook)

Finally, in the julia buffer, there is no Julia prompt and no display of the Julia splash message. However, this buffer does run Julia commands and report the results properly. Looks like either Emacs does not pick up Julia's execution correctly or Julia does not report execution correctly to Emacs.

Information: Windows 10 GNU Emacs 26.1, build 1 Julia 1.0.1

Julia Version 1.0.1
Commit 0d713926f8 (2018-09-29 19:05 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

Relevant lines in init.el:

(load "my/path/to/.emacs.d/ESS/ess-site")
(setq inferior-julia-program-name "my/path/to/Julia-1.0.1/bin/julia")

ESS Github has indicated that ESS requires the splash screen to function correctly.

minkjaco commented 6 years ago

Update 10/25/18: I am now running Julia over TRAMP on a Linux machine and see the splash without freezing, but still no prompt.