Closed
Description
Even something seemingly simple as a single file sketch is in reality a more complex application silently pulling on multiple resources under the surface. The idea here is to be able to easily visualize these resources, without taking away any of the current beautiful simplicity.
Well done, this feature is the doorway to many other possible extensions.
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
lmihalkovic commentedon Nov 26, 2015
Done
lmihalkovic commentedon Dec 9, 2015
I am at the point where i will be able to automatically add the #include statements to the sketch source code when the user clicks on a checkbox near the name of a lib in the outline view [chk boxes to ba added soon] or automatically heckbthe right boxes when the sketch is loaded, and remove them when a #include is removed.
The point is code or clicks are fully interchangeable. And the include search path will be passed accordingly (i have my own compiler that supports that)
lmihalkovic commentedon Dec 9, 2015
I also have a experimental [read ugly read boxes] design for
System library source files can only accessed RO, so there is no point in changing the order of the tabs to view these files
lmihalkovic commentedon Dec 9, 2015
Lastly, i was thinking about making the #includes section of a sketch read only with a nice shadowed box around to signify that although it is source code, the IDE owns it (use the outline to add/remove/moveup/movedown the individual #include statements).. But dunno if would be useful or confusing. For each of the selected references (i.e. library), the IDE could systematically generated a guarded include statement like:
to ensure clean reporting even from the command line. but there are pitfalls with this approach... so at best it should be opt in... [#warn instead of #error, or some other checks - Like for e.g. I can actually test if the lib in question has the #define XXXXXXXX_lib and only generate the guarding code if things won't break]
and if we want to be really finicky.. there could also be some sort of a XXXXXXXX_ver macro....
4 remaining items