-
Notifications
You must be signed in to change notification settings - Fork 230
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
merlin server hangs after interrupting command with no EOF #1620
Comments
Additional observation:
|
Yes, |
another observation:
|
So, how do you "repair" |
You need to kill ocamlmerlin server process |
OK, but it seems that it was not enough: I also had to remove |
The problem happens to me when opening a particular file. My editor (
and
Both commands, run from the terminal freeze so I have to stop them with ^C and then any
Then, it works again:
Unfortunatly, I cannot show |
So, it is not related to the file content, but to its location. In some place, I get:
and if I move the file somewhere else, it hangs (and I have to ^C, and then |
At last, I found the problem (but did not understand it) : the reason was these lines in my
that I manage to replace by more precise paths, without using Anyway, whatever the reason is, it would be nice if it could avoid breaking the server. |
wow, thanks for thorogh research. I'll try to analyse your example. |
No, it does not work. I also found out that it is faster to make tests with:
since all you have to do is Ctrl-C when it hangs, but at least, it does not break anything else, so no need to |
Yes, piping the file's content to Merlin is the correct way to use the cli. A command such as this one should never hang. It would be great if we could have a small reproduction case for this. Did removing the |
Yes, it did solve the issue. |
Bug occurs on my mac, I didn't try it on different machines.
Reproduction:
rafal@machine ~ % ocamlmerlin server errors
ocamlmerlin server -version
once again and see that it hangsFull listing:
The text was updated successfully, but these errors were encountered: