Closed jamieyung closed 5 years ago
This is a case of https://github.com/natefaubion/purescript-psa/pull/38 and has been fixed inside purescript-psa-utils
I just need to bump the dependency and move the project to 0.12. I'll do that myself, thanks for reporting!
Should be fixed in 2.6.0. Please let me know if it worked
Hm, leaving bind
out still gives An error inside psaPrinter
.
Here are the steps I took:
npm i -D pscid@2.6.0
bower_components/.bin/pscid
bind
from the Prelude import, saved the file.I tried the steps again after removing bower_components
and node_modules
and got the same result. Is there anything else I should have done?
EDIT: I'm using v0.12.0 of the compiler (psvm use v0.12.0
).
Hmm, no you're doing all the right things. It looks like psa is guarding against these cases outside of its utils
package, so we'll either have to duplicate the logic inside this project, or fix the compiler's broken error spans.
Feel free to see if you can debug the failure and find a simple workaround/fix in pscid. If I find some more time I'll rather spend it on fixing the compiler.
Pretty sure all of these have been fixed in 0.12.2, so I'll close this. If we find more errors without positions we should open a new issue.
A minimal example causing the error:
The correct error is:
Invoking a full build with
b
produces the correct error.