psc-package icon indicating copy to clipboard operation
psc-package copied to clipboard

psc-package init does not work under Cygwin

Open cebaa opened this issue 6 years ago • 1 comments

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.

cebaa avatar Dec 04 '17 22:12 cebaa

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

holdenlee avatar Dec 24 '18 20:12 holdenlee