Skip to content
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

Prevent *Alchemist-IEx* buffer from hanging while waiting for input #314

Merged

Conversation

whysoserious
Copy link
Contributor

Alchemist-IEx buffer was hanging eg. when received a IO.gets(:stdio) command and had to be killed by C-q command. Removing lines 198-199 seems to solve this problem.
This commit also removes alchemist-iex-seen-prompt and whole logic associated with it which seems to be obsolete from now.

*Alchemist-IEx* buffer was hanging eg. when received a `IO.gets(:stdio)` command and had to be killed by `C-q` command. Removing lines 198-199 seems to solve this problem.
This commit also removes `alchemist-iex-seen-prompt` and whole logic associated with it which seems to be obsolete from now.
@whysoserious
Copy link
Contributor Author

Solves #313 and #297 for me.

I am not aware of any negative consequences of merging this PR but also I am not familiar with codebase of this project.

@damon-kwok
Copy link

cool~

@OvermindDL1
Copy link

What is wrong with this PR that needs to be fixed before it is merged @tonini ?

@deepakjacob
Copy link

@tonini - this fix works for me. can you please take a look at it ?

@vaartis
Copy link

vaartis commented Mar 11, 2018

Why isn't this merged yet..? It basically prevents (at least me) from using the repl in alchemist..

@maruks
Copy link

maruks commented Mar 12, 2018

This happens because sometimes IEX sends color control codes before prompt. Alchemist can't find prompt and goes into infinite loop.
I use my fork of alchemist. https://github.com/maruks/alchemist.el
I don't know why they refuse to fix their code LOL

@tonini tonini merged commit 6f99367 into tonini:master Mar 12, 2018
@michalmuskala
Copy link

It's all run by volunteers who sometimes have other things to do. Please refrain from comments like this.

@whysoserious
Copy link
Contributor Author

Thanks for merging @tonini <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants