-
Notifications
You must be signed in to change notification settings - Fork 35
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
PureScript build usually fails when spago
is used
#171
Comments
Oh, I see, could be related to #159 But the output from PureScript IDE is different:
So, seems, The problem is that |
The build command is not run under a shell, you should remove the The spago output should just be fine as it is, so long as JSON errors are printed to stderr - junk lines should be ignored. There is some change incoming with purescript 0.14 around printing JSON errors to stdout, but unless this is involved in current spago behaviour I guess that's not relevant |
Did that (removing the redirect) help? It should be that simply including the "junk" in the output and relying on the extension to sort it out is fine - certainly I'm happily building with spago in that case. |
Without
|
That 8192 is suspicious, I assume something is going wrong parsing large JSON output. |
I've fixed some issues in the code, but the position doesn't change:
The output of However I noticed that |
Thanks for the JSON upload, I'll try to repro later. As I say 8192 is a suspicious number (being a power of 2) so likely not actually a character in the JSON. This extension (rather the LS) did at one time have an issue with larger error reports, but I'm surprised this is cropping up as I did think that was fixed |
This is a node thing where it doesn't always flush or receive stdout before the process closes. I've experienced this when combining spago and psa with the ide server. I'm not totally sure where the culprit lies as I never have this problem when using only psa and vscode, or only spago and vscode. |
Seems outputting errors have changed in PureScript 14.0, could be related and I'll try it later:
|
I saw this once and still can't reproduce it. After a side-track where I was typing up a comment noting the json was truncated after my editor truncated it... I can build just fine with those json errors as saved here, so I can only agree with nate that it seems likely there is some truncation with the way these things are composed. |
Version: 0.23.3
spago
version: 0.19.0purs
version: 0.13.8Could be
spago
issue, but may be you have a suggestion on what to change in my build command.I used this command as build command:
And every next build I get the error: Problem running build: didn't find JSON output. Sometimes (rarely) it works, and the errors are fine, but usually not.
Before, there was a
--quiet
flag, but now it's gone fromspago
in favour of> dev/null
.Could be that
spago
(purs
?) still adds the[error] Failed to build.
to the JSON output with errors.The text was updated successfully, but these errors were encountered: