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

Type Providers which output to stdout can hang the Atom mode #245

Open
donald-pinckney opened this issue May 16, 2020 · 4 comments
Open

Comments

@donald-pinckney
Copy link

If a type provider outputs stuff to stdout (during type checking), this output is then inserted into the ide-mode stdout stream which the Atom mode is reading. This messes up the parsing of the ide-mode output, presumable since then message length are no longer correct. Not sure if its possible to fix it here in the Atom mode, or if it needs to get fixed in Idris.

@justjoheinz
Copy link
Contributor

If the emacs mode messes this up as well, it should be idris fault. Can you test this?

@david-christiansen
Copy link
Member

david-christiansen commented May 18, 2020 via email

@justjoheinz
Copy link
Contributor

justjoheinz commented May 19, 2020

@david-christiansen How does the protocol work? I start an idris process as usually and it spits out a port number on stdout, to which I connect with a socket. And the communication via the socket is then using the standard ide protocol whereas the process might still print to stdout/stderr?

@david-christiansen
Copy link
Member

david-christiansen commented May 19, 2020 via email

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

No branches or pull requests

3 participants