arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.27k stars 386 forks source link

Opening example sketch does not check the .development file flag #936

Open KurtE opened 2 years ago

KurtE commented 2 years ago

Describe the problem

If you open an example sketch and you have marked the library as being in development.

As described in: https://arduino.github.io/arduino-cli/0.21/library-specification/#development-flag-file

The file is still opened up in the temporary directory not shown as within the library.

On IDE1, the example is opened, I can edit it and then do a save and the example is updated in place.

To reproduce

mark a library as in development, by creating the .development file, And open an example sketch within that folder.

Expected behavior

Same as IDE1

Arduino IDE version

running 0401 nightly

Operating system

Windows

Operating system version

10

Additional context

I mentioned this in comment to #925

@per1234 mentioned that the CLI does not even pickup the presences of this file: https://arduino.github.io/arduino-cli/0.21/rpc/commands/#library

Additional reports

Issue checklist

darianbjohnson commented 1 year ago

I've got the same issue

fpistm commented 1 year ago

Always present in 2.2.1