purescript-deprecated / gulp-purescript

Gulp plugin providing PureScript compiler tasks
34 stars 8 forks source link

Windows: The command line is too long. #55

Closed xavierzwirtz closed 8 years ago

xavierzwirtz commented 8 years ago

On Windows when trying to use gulp-purescript to compile you will get an error message:

The command line is too long.

If I modify my gulp-purescript version to log the full arguments to the console I can see that the total command length is 11320 characters, greater than Windows max length of 8192.

The way the gulp-tsc project solved this is by saving the arguments to a temporary text file, and then passing the path to that text file to the typescript compiler.

xavierzwirtz commented 8 years ago

This will require a change to psc as well to get it to read arguments from a text file. Corresponding psc issue.

garyb commented 8 years ago

See #36. We changed the plugin to use psc's glob patterns.

xavierzwirtz commented 8 years ago

Aaand I was using a horrifically old version of gulp-purescript. That fixes it.

garyb commented 8 years ago

Ah right :smile: that's a relief, I did think we had resolved this a while ago.

xavierzwirtz commented 8 years ago

I am getting started with purescript, there is a bootstrap project that is using a very old version of gulp-purescript. Thanks for the help.