-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REPL: running inside emacs crashes (shell, eshell) or prompt is double-printed (term) #6428
Comments
I see the same "ERROR: integer division error" with the ESS inferior Julia mode (M-x julia). |
This appears to be because the new LineEditREPL doesn't play nice with emacs. I've got a really hacky version using StreamREPL working in a branch I'm playing with and it succeeds. Not sure why yet though. As a related bug. The StreamREPL in REPL.jl is broken at head right now. run_repl(s::AsyncStream) isn't even valid code. |
This business of running a REPL inside of emacs' very limited terminal emulation just strikes me as the wrong way to go about things. What about using something like emacs IPython notebook instead? |
I've actually tried that before (in Python, I think). It's okay, but I To be clear, this is not a huge deal to me personally. On Thu, Apr 10, 2014 at 9:46 AM, Stefan Karpinski
|
I just watch people struggle with the basic REPL in emacs and it's kind of painful. It's just weird that Julia is going to great pains to make the terminal do useful things while emacs is struggling to pretend to be a terminal. Emacs has a programming language, Julia is easy to call. Why isn't this smoother and easier? |
It should be simple to use the REPL in pipe mode, which is already implemented for the case where something is redirected into julia. |
Running Julia through the ESS REPL was a very nice interface for interactive development. Moreover, Org/Babel eval Julia code through the ESS REPL, which I am very interested in using. If there is a workaround to get IJulia or a pipe mode REPL running through ESS, that's probably sufficient for my purposes. I'd be very happy to help test or debug, just let me know. |
I think the issue is that ess is currently the best way to edit julia code in emacs. Code completion, evaluation, eldoc... All of this makes for a really nice environment. Most of that required having the julia process there though and right now that process has no way go into a basic mode. The simple fix in the short run is to have a switch perhaps on command line that puts the repl in basic mode. A longer term fix is for someone to tackle a better integration in ess. As it stands right now if 0.3 is released like this then a whole lot of people are going be frustrated with the experience of editing julia code. |
It shouldn't be too hard to add a |
That is pretty close to what my "very hacky" change I experiemented with does. |
Julia no longer crashes under emacs! (due to #6419 being fixed?) |
When running the latest julia (0.3.0-prerelease+2494) inside emacs, julia either crashes (shell, eshell):
or the prompt is double printed (eterm-color):
This issue should perhaps be retitled something like "allow use with limited terminals".
Somewhat related: #5271
The text was updated successfully, but these errors were encountered: