Windows: The command line is too long.
xavierzwirtz opened this issue · 5 comments
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.
This will require a change to psc as well to get it to read arguments from a text file.
Corresponding psc issue.
Aaand I was using a horrifically old version of gulp-purescript. That fixes it.
Ah right 😄 that's a relief, I did think we had resolved this a while 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.