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

"bundle-module --watch" on Windows fails with a mingled path #401

Closed
fsoikin opened this issue Sep 3, 2019 · 5 comments
Closed

"bundle-module --watch" on Windows fails with a mingled path #401

fsoikin opened this issue Sep 3, 2019 · 5 comments

Comments

@fsoikin
Copy link
Collaborator

fsoikin commented Sep 3, 2019

Repro:

> cd C:/o; md spago-bug; cd spago-bug

> npm i spago
...

> npx spago version
0.9.0.0

> npx spago init
...

> npx spago bundle-module --main Main --to ./foo.js
... (success) ...

> npx spago bundle-module --main Main --to ./foo.js --watch
Installation complete.
CreateFile "C:\\o\\spago-bug\\o\\spago-bug\\.spago\\console\\v4.2.0\\src\\": does not exist (The system cannot find the path specified.)
Type help for available commands. Press enter to force a rebuild.

watched
C:\o\spago-bug\.spago\console\v4.2.0\src\**/*.purs
C:\o\spago-bug\.spago\effect\v2.0.1\src\**/*.purs
C:\o\spago-bug\.spago\prelude\v4.1.1\src\**/*.purs
C:\o\spago-bug\.spago\psci-support\v4.0.0\src\**/*.purs
C:\o\spago-bug\src\**/*.purs
C:\o\spago-bug\test\**/*.purs

build
CreateFile "C:\\o\\spago-bug\\o\\spago-bug\\.spago\\console\\v4.2.0\\src\\": does not exist (The system cannot find the path specified.)
Type help for available commands. Press enter to force a rebuild.

Notes

  • Note how Spago tries to open a file with part of the path repeated - C:\o\spago-bug\o\spago-bug\.... Such file, naturally, does not exist, so the call fails.
  • Touching src/Main.purs does not have any effect.
  • This doesn't happen without the --watch flag. Bundling alone works fine.
  • This does not reproduce on Linux (Ubuntu Xenial).
  • Have not tried on macOS.
  • Versions (just in case)
    • Windows 10 build 18970.1005
    • Node 10.15.3
    • PureScript 0.13.3
@fsoikin fsoikin changed the title "bundle-module --watch" fails on Windows "bundle-module --watch" on Windows fails with a mingled path Sep 3, 2019
@f-f
Copy link
Member

f-f commented Sep 3, 2019

It looks like this might be the same issue described in #380 (comment) which was fixed in #387 which is on master but not released yet

I'll cut a release in the next days (see #398) but in the meanwhile you could try out building the current master to see if it fixes the issue for you

@fsoikin
Copy link
Collaborator Author

fsoikin commented Sep 3, 2019

Definitely looks like the same issue from description.
Will try to build master.

@fsoikin
Copy link
Collaborator Author

fsoikin commented Sep 3, 2019

Yes! master works fine! (plus, the quit command works now)
Thank you @f-f !

@fsoikin fsoikin closed this as completed Sep 3, 2019
@f-f
Copy link
Member

f-f commented Sep 3, 2019

You're welcome 🙂

@gasi
Copy link

gasi commented Sep 4, 2019

Grazie mille, @f-f! 🙇

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