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
Task format:write -> Error: Command line too long #2362
Comments
This is a relatively easy fix. Would someone from the community like to contribute a fix? |
Issue 2362 requests a length of 50 as 70 was still causing issues this pr addresses that by reducing the length to 50 ISSUES CLOSED: nrwl#2362
@FrozenPandaz Thanks for the fix. I was wondering though, wouldn't it be possible to do this a bit more intelligently, by calculating what the length would be, adding additional chucks as space permits? |
@FrozenPandaz I am getting this issue in 8.4.8, do I need to move to 9.3 version ? |
I'm getting this error too. It depends on file names, hardcoding 50 is not a proper fix unfortunately :( |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Expected Behavior
npm run format:write should complete without errors
Current Behavior
npm run format:write fails with error "Command line too long"
Failure Information (for bugs)
We have several long library + path + file names, that result in a command line for prettier that is too long.
NX already uses chunks (see: packages/schematics/src/command-line/format.ts), but the chuck size of 70 is too large for us.
When we decrease the chunk size to 50, all is well, and format:write runs happily.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
I'm using NX 8.0, but verified that the latest code still uses a chunk side of 70.
Failure Logs
Full log available on request, but basically:
The text was updated successfully, but these errors were encountered: