-
Notifications
You must be signed in to change notification settings - Fork 2
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
IEX process finishes before executing the entire code-block and emacs seems to hang #1
Comments
Thanks for the report, I'll take a look ASAP. |
Hi @dhruv-dave, how are you? I fix the problem (hope so), can you test it? :) |
@lambdart thank you, I can test it out soon and get back to you! |
Maybe is necessary to add more filters to the replace-regex function. |
@lambdart it solves the issue for me.
|
Thanks, I'll take a look on that 👍 |
thank you |
Hello, I am facing an issue on my laptop where I have a code block I execute with the
:session
parameter and emacs seems to hang.I have narrowed it down to what's causing the issue, but I cannot tell why it's causing the issue. Hoping someone can shed some light on this:
OS:
EMACS Version:
ORG Mode Version:
Using edebug i have narrowed what works for me and what doesn't:
-- code-block
-- what doesn't work:
I execute the source block (from inside the source block I run C-c C-c), and the buffer
*testing*
gets created and emacs hangs. I can get the control back by pressingC-g C-g
.Here is what I see in the
*testing*
buffer:At this point, the
*testing*
buffer has no process running in it and I have to kill the buffer.-- what works
I have narrowed down to the code causing the issue and "fixed" it. The fix is not ideal, but I am new to emacs and I am not sure why this "fixes" the issue. I changed the following lines in ob-elixir.el. With this change, the code block evaluates in the
iex session
and the results get printed back into the org file.Here is what I see in the org file:
At this point the
*testing*
buffer is still active, there is aiex
process running in it and I can evaluate any previously evaluated code from the org file.Also I found that in the function
comint-send-input
, if theno-newline
parameter is set tot
, then this is what causes the process to exit early:Now the
RESULTS
section is not ideal, and I can see why theno-newline
needs to be set to true.Also, in the interactive elixir (iex) buffer, if i move the cursor to another position and evaluate the source block, the
RESULTS
section will printnil
.Please let me know if i can be help debug this issue further.
The text was updated successfully, but these errors were encountered: