nnicandro / emacs-zmq

Emacs bindings to ØMQ
GNU General Public License v2.0
49 stars 18 forks source link

Error using the Julia repl: Error in ZMQ subprocess: invalid-read-syntax, ("#") #30

Open bigjeff96 opened 3 years ago

bigjeff96 commented 3 years ago

In the newest update of emacs jupyter https://github.com/nnicandro/emacs-zmq/pull/22, using emac 28.05, I can use the python repl without any problem. However, for the Julia repl, I still get the same problem that I mentioned in https://github.com/nnicandro/emacs-zmq/issues/26#issuecomment-798824051

nnicandro commented 3 years ago

Are you able to get a backtrace when you evaluate (setq zmq--subprocess-debug t) before you launch the Julia REPL?

Can you also give the steps you use to recreate the problem. Do you just M-x jupyter-run-repl and select the Julia kernel and then you get that error or do you use the REPL for a bit and the error pops up?

bigjeff96 commented 3 years ago

After running (setq zmq--subprocess-debug t), I get the following

Starting julia-1.5 kernel process...done
Loading ~/.emacs.d/elpa/zmq-20210402.2340/emacs-zmq.so (module)...done
Channel not started in ioloop subprocess (:shell)

Otherwise, I just start with Jupyter-run-repl, then select Julia. If I run simple commands like 2+2, the repl works. But as soon as I start typing things that come with some autocomplete, like sin(pi), the repl would crash.

passchaos commented 3 years ago

I have this problem too.

tgrigera commented 2 years ago

I have the same problem (Emacs 28.0.91). When using the Julia REPL (but not with Python), as @bigjeff96 points out, as soon as a completion pops up, the kernel becomes unreachable. I am using company + company-box for completion, and the problem seems to be with company-box.

I have now disabled company-box in jupyter-repl-mode and the problem seems to go away (I still get completions with company). I still have to try org-mode babel blocks, which showed the same issue.