emacs-zmq icon indicating copy to clipboard operation
emacs-zmq copied to clipboard

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

Open bigjeff96 opened this issue 3 years ago • 4 comments

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

bigjeff96 avatar Apr 04 '21 10:04 bigjeff96

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?

nnicandro avatar Apr 04 '21 17:04 nnicandro

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.

bigjeff96 avatar Apr 06 '21 19:04 bigjeff96

I have this problem too.

passchaos avatar Apr 16 '21 16:04 passchaos

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.

tgrigera avatar Jan 20 '22 20:01 tgrigera