ghcid icon indicating copy to clipboard operation
ghcid copied to clipboard

Output async output

Open ndmitchell opened this issue 7 years ago • 4 comments

See https://github.com/ghcjs/jsaddle/issues/48, as it prints out text without ghcid asking. Such output should go directly to the console.

ndmitchell avatar Feb 17 '18 08:02 ndmitchell

I can't see any real way to do this that isn't a massive race condition. Moreover, if output is flowing to ghci at the same time ghcid is poking it the chances of ghcid parsing messages not intended for it (and getting rather confused) becomes quite high...

ndmitchell avatar Apr 08 '18 22:04 ndmitchell

I've submitted another comment that was based on a misunderstanding of mine that I've deleted since then. If you got notified of it, then sorry about the noise.

And I am still a bit confused about your comment. What kind of message do you have in mind that might get misparsed? Can't GHCid drive GHCi blind after its initial setup? What kind of message might it want to parse?

Wizek avatar Aug 17 '18 10:08 Wizek

Ghcid parses lots of ghci output - what was loaded, error messages etc. My concern is that it normal output is interleaved then the unexpected junk in the output might cause ghcid to fail to parse something it needed, or to parse something that wasn't ghci output and do crazy things.

ndmitchell avatar Aug 22 '18 21:08 ndmitchell

Also happens for Yesod, see #298 by @eahlberg.

ndmitchell avatar Mar 01 '20 20:03 ndmitchell