psc-package
psc-package copied to clipboard
psc-package init does not work under Cygwin
trafficstars
When run from cmd prompt:
>psc-package init
Initializing new project in current directory
Using the default package set for PureScript compiler version 0.11.7
(Use --source / --set to override this behavior)
Updating 1 packages...
Updating prelude
>
When run from Cygwin:
$ psc-package init
Initializing new project in current directory
Using the default package set for PureScript compiler version 0.11.7
(Use --source / --set to override this behavior)
fatal: could not create work tree dir '.psc-package\psc-0.11.7\.set': No such file or directory
$
After making the parent of the above folder manually, i.e.:
$ mkdir -p .psc-package/psc-0.11.7
it proceeds, only to fail on the next one:
$ psc-package init
Initializing new project in current directory
Using the default package set for PureScript compiler version 0.11.7
(Use --source / --set to override this behavior)
Updating 1 packages...
Updating prelude
fatal: could not create work tree dir '.psc-package\psc-0.11.7\prelude\v3.1.1': No such file or directory
After creating this one too:
$ mkdir -p .psc-package/psc-0.11.7/prelude
it finishes fine.
This is perhaps due to using \ instead of / for path separators.
Side note, all this is after manually copying purs.bin to purs.exe due to https://github.com/purescript/psc-package/issues/34.
I also can't get it to work under Cygwin, but with a different error. Pulp version 12.3.0, purs version 0.12.1, psc-package version 0.5.1.
Access violation in generated code when reading 0000000091d4551a