-
Notifications
You must be signed in to change notification settings - Fork 46
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
psc-bundle is unable to parse module when purescript-spec
is installed
#12
Comments
Hmm, not able to recreate this. Could you provide a minimal project and list the commands you're running? Which versions of purescript-spec, psc and pulp are you using? Thanks! |
Sure, here's output from my shell; let me know if you need any more info: ==> mkdir example
==> cd example
==> pulp -v
4.3.0
==> psc --version
0.7.0.0
==> pulp init
[installations elided]
==> pulp build --to out.js
* Building project in /Users/am/w/example2
* Build successful.
* Bundling Javascript...
* Bundled.
==> node out.js
Hello sailor!
==> rm -f out.js
==> pulp dep i purescript-spec
[installations elided]
==> pulp build --to out.js
* Building project in /Users/am/w/example2
* Build successful.
* Bundling Javascript...
The module could not be parsed.
* ERROR: Subcommand terminated with error code 1
==> psc-bundle output/**/*.js --module Main --main Main > out.js
The module could not be parsed.
==> rm -rf output/Test.Spec*
==> psc-bundle output/**/*.js --module Main --main Main > out.js
==> node out.js
Hello sailor!
|
Thank you! It seems that the escape sequence at https://github.com/owickstrom/purescript-spec/blob/12ee764274c0900c4f8167dd2ecb2b5f815a9280/src/Test/Spec/Console.purs#L22 gets interpreted during the PS -> JS compilation. The module in Related issues: purescript/purescript#1265 and purescript/purescript#1266 |
I did a workaround for this and released a new version Thanks for your feedback! |
The new version works - thank you! |
FYI purescript/purescript#1265 is fixed now! |
psc-bundle
(andpulp build
with the--to
flag) gives me the errorThe module could not be parsed.
wheneverTest.Spec.*
modules have been built to theoutput
directory. When I delete those directories, I am able to bundle. Any idea what's causing this?The text was updated successfully, but these errors were encountered: