-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Builder supports sketch subfolders, but IDE editor does not #4821
Comments
This is where other people have also commented about the absence of file management capability in the editor. This is actually an easy thing to add (the first change I made to my own codebase). Done reasonably well it is also a big help for integrating a debugger. |
.ino files were excluded from recursive compilation in arduino/arduino-builder@54e0a8f, which goes a long way towards solving this. I believe recursive compilation in sketch folders was also limited the The downside to always showing the contents of the I do think it would be nice for the ability to open those files in the IDE to be a non-default option, which would be sensible to do in combination with #3512. |
Please see #7609 for additional discussion on this topic. |
I don't get it. This has nothing to do with the way compilation is handled. The IDE just needs to do what VSCode does, show a sidebar with all the folders bellow the folder where the root .ino file sits and that's it.
That's because the Arduino IDE decided to show everything as tabs instead of a sidebar. Tabs should be open files like in any IDE and the sidebar should show everything. I frankly don't understand why the Arduino IDE was made like this. It was based on Eclipse Theia that supports a sidebar and behaves like any other IDE, why mess with something that was already there? |
This is now done in Arduino IDE 2.x:
The file will now open in an Arduino IDE editor tab. |
Since the recursive compilation is now controlled and the IDE allows the user to see and edit the contents of the |
Recent versions of Arduino with the new builder support recursive building, where subfolders are scanned and all files found are compiled. Perhaps this was meant only for libraries, but it's also being done for sketches.
However, the IDE editor does not support files in subfolders. If you create a subfolder in a sketch folder, and place code within it, this code will be built as part of the sketch. But the user can't edit it, or even see any visual indication Arduino is building other code.
This can be problem for examples, written before the new builder, which placed PC-based example code in subfolders. Because there's no visual indication other code is being compiled, this leads to very confusing errors.
The text was updated successfully, but these errors were encountered: