-
Notifications
You must be signed in to change notification settings - Fork 273
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
Generate error, Argument list too long. #633
Comments
Hello. Could you please provide a bit more details. 1 plugin version |
Also we have special logic for splitting long commands. Maybe sources can help to understand, what is going wrong. It would be perfect if you can provide reproducible project. |
I use the "protocol buffers(222.4345.14)" plugin bundled with idea, Can't provide the project, but I can help to verify some ideas. project's proto file file is very very large, about 5MB in total. So far I have guessed to divide into several projects and compile them successfully. I think I can write code to generate many random proto files and try to reproduce them. |
Could you please write absolute path size to your proto dir? Like |
I don't quite understand what I should do, can you be more specific? Please excuse the slow response as I cannot access the external network recently.
|
Your proto files placed in some directory. In argument in cli, plugin pass |
@rougsig My invocation is ~1.7MB long. It is a legacy project which I am converting from another IDL to proto with tight interdependencies between schemas, so it is kinda hard to split it up into multiple protoc invocations. |
The cleaner solution actually seems to be to support the @rougsig would you be open to an intermediary hardcoded solution as proposed in #653 fast followed by a clean solution using |
@karthikrg Hardcoded solution is fine. |
Have you guys reproduced the problem yet? I'm sorry I haven't been able to help you guys out because of the long time without internet, and in fact I don't have the time right now. I think your idea of making a txt file with the paths of all .proto files to pass to the protoc program seems good. The list of .proto files could be automatically generated by gradle-plugin, split by newlines and written to a txt file. The logic wouldn't be much to change, just collect all the .proto files according to the original logic, except that it might require support from the protoc program |
@o2e yeah it will works too. Actually we already have splitting logic for Windows. For other OS it was disabled. Changes from @karthikrg enable that splitting. |
👍 |
This should be fixed by #653 |
I have a huge project that contains 14,982 proto files and I get an "Argument list too long" error when I compile it. Is there any way to deal with it. I can't split this project at the moment, please help me or give me a suggestion. Thank you!
The text was updated successfully, but these errors were encountered: