-
Notifications
You must be signed in to change notification settings - Fork 84
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
Error "Command line is too long" in all reason and ocaml files on windows #262
Comments
wowza |
I don't have much idea about how to go about fixing this ... I wonder how dune does it? |
I have seen other projects solve this by sticking the arguments in a temp text file, and passing the path to that text file instead. |
Would that involve modifying |
Oh actually - @Yakimych does running |
@jaredly - oops, sorry - missed this one completely. Yes, compiling/building/running from the terminal works just fine - the only issue is that VSCode "fails" with this error and becomes completely useless in terms of displaying other errors, Intellisense, etc. |
@jaredly Just to add more color to this issue, running into this problem as well: Can you help me understand why we need to leverage bsc directly in this package? I'm not super well versed in this world so I'm sure that I'm just ignorant of this low-level stuff, but I'd love to understand the need to use |
Hi. I am working on a medium-sized React/Typescript project with bucklescript/reason/genType added manually. For a while everything worked fine, but at some point I started getting "command line is too long" errors in every Reason and OCaml file.
It seems like paths to all subfolders in the src folder (configured in bsconfig) are listed in one command, that is almost 10K characters long. As a result, this error masks any other errors or the possibility to have intellisense in any ReasonML/OCaml code.
I initially suspected it was the same issue as #232, but reverting to 1.4.1 didn't solve the problem.
The text was updated successfully, but these errors were encountered: