-
-
Notifications
You must be signed in to change notification settings - Fork 403
gRPC sketch content list should stop at first level #1173
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
Comments
I investigated a bit and we probably make changes both in the CLI and the IDE to fix this. The data returned by the gRPC interface is that returned by arduino-cli/commands/instances.go Lines 731 to 753 in 0425c95
If we try to load a sketch structured like this:
the resulting data in
The IDE loads To make it work the way we expect it we must make the CLI append to The IDE must not open This was introduced with PR #926 Would like some feedback from @kittaakos and @ubidefeo before going forward with this. |
@silvanocerza, I am not sure if I can advise here but your proposal looks good to me. Adjusting the IDE code is not a problem at all, we can filter the additional files from the sketch. I checked how the Marlin project behaves in the Java IDE: If the CLI can return with the same resultset, we are good here. The only question I would have is how to open the other files if opening the other files is a requirement at all. |
We'll go with the Java IDE behaviour for now. We'll see in the future what to do I guess. |
I tried to implent what I suggested above but sadly it can't be done. The CLI uses those properties in the compilation process, changing them would break lots of parts of the legacy package. Think I'll just a |
This can be done on the IDE side too. No need for a change now, the IDE can wait until the CLI team figures out what is the correctt way to handle it. |
Bug Report
Issue is related to arduino/arduino-pro-ide#416
I deduced that the call for file listing issued by the IDE over gRPC gets the CLI to recursively go through the tree hence returning every file.
This creates the issue linked above.
For how the Sketch is structured, there should be no recursion, and only files at the main Sketch level should be returned.
Environment
arduino-cli version
): 0.15.xAdditional context
arduino/arduino-pro-ide#416
The text was updated successfully, but these errors were encountered: