-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
New installs overwrite existing libraries in the <sketchbook folder>/libraries #798
Comments
hey @KurtE I'll bring this into our triaging, seems like a pretty annoying one. Thank you for reporting ✌️ |
The same happens with the first run "Arduino AVR Boards" installation (#497):
The IDE will now upgrade the "Arduino AVR Boards" platform from 1.8.4 to 1.8.5.
Some users may have been intentionally using a specific version of the platform with Arduino IDE 1.x in order to provide a controlled dependencies environment for their projects. They would likely not appreciate the IDE 2.x doing a silent upgrade when they make the migration. |
Is this issue still present in 2.0.0-rc7? (tagged "criticality: highest" in February) |
I propose to check if this can be reproduced with the CLI only:
Check if the AVR core has to be installed. The corresponding code is here. |
The "Arduino AVR Boards" platform installation and the "SD" library upgrade are unrelated. The "SD" library upgrade is caused by this: #663 (the gRPC equivalent of First run installation of "built-in" libraries upgrades previously installed versions
So this is really a deficiency in the Arduino CLI capabilities (no way to specify that First run installation of "Arduino AVR Boards" platform upgrades previously installed versions
So this is really a deficiency in the Arduino CLI capabilities (no way to specify that ConclusionMy proposal is to add an Once that is in place, it will be trivial to change Arduino IDE's first run installation of the "Arduino AVR Boards" platform to set that field to Even if not absolutely needed by Arduino IDE 2.x, it would be best to do the same in Arduino CLI for the What do you think @kittaakos? |
Describe the bug
When I first installed I believe RC2 or 3 but for sure with Nightly build and started testing with the first versions of the
Teensy installs, I found I could no longer build some of the sketches I was working on.
I traced it down to the first run of the IDE, overwrote my existing libraries in my /libraries
and replaced the version I was working on.
In my Particular case it was the SD library. My current one was our current Github fork/branch of SD which is a thin wrapper to call off to the SDFat library.
Note: In my case, it was actually a symbolic link to where I keep all my sources
On my Windows machine I created this using: mklink /D SD d:\github\SD
Note: This also reproduced on my Ubuntu machine as well.
To Reproduce
Steps to reproduce the behavior:
Have some custom version of SD in your /libraries/SD
Install IDE 2
run the IDE
Also found that this will reproduce if you are having the issue, that updates in your tools.txt or tools.local.txt are not showing up as mentioned in:
arduino/arduino-cli#1614
And you delete the directory
And restart the IDE.
I noticed in the output window:
Notice it says it replaced SD and sure enough it did
Expected behavior
I would expect it to leave alone user libraries, especially ones marked with a higher version number
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: