-
-
Notifications
You must be signed in to change notification settings - Fork 442
IDE unable to install Portenta Mbed OS board package #1307
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
Thank you for reporting it, @aliphys How did you start the IDE2? If not as Administrator, could you please check if you see the same error when running the IDE2 as Admnistrator?
Possible related:
|
@kittaakos I ran IDE2 as Administrator, and got the same error.
|
I also tried using the nightly version (20220808). Also with administrator:
|
I could not reproduce the platform installation failure. I tried it with the I need some additional information to figure out what's the problem. @aliphys, could you please help us a bit?
To install the platform with the CLI, please do the followings:
This is the output from my system when installing the platform for the CLI:
|
Hello @kittaakos , Output from Terminal
The Portenta boards are now available. Regarding your questions:
|
Hello @per1234 , thanks for the detailed breakdown. What I understand is this:
Is my understanding correct? |
Arduino CLI is doing the actual installation. Arduino IDE 2.x only provides the GUI component of Boards Manager.
Interference caused by the on access scanning (AKA "real-time protection") of antivirus software can produce random failures. The reason is that this is not a matter of the antivirus permanently blocking access. The antivirus is only quickly accessing each file, so it is a matter of timing.
More likely they solved it but didn't bother to report back. |
The "workaround" with antivirus is not a viable solution for me, since I work on a corporate computer and antivirus is locked from Admin.
It means that Arduino is trying to rename a directory (in my case xtensa-esp32-elf) to a nested directory (xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch3), which fails. The other workaround, after the failure happens, would be:
A permanent fix in Arduino would be to first create the top-directory and only afterwards do the "move". |
Hi, same issue here just after upgrading to IDE 2.0 on my Windows10 office laptop (with no possibility to disable antivirus, should it be the root cause).
Tried with and without "Run as admin", also tried with CLI, always with the same log output and same result. |
check if the directory "avr-gcc" in "\AppData\Local\Arduino15\packages\arduino\tools" already exist. If not create it manually and try again. |
I tried, but it doesn't work either. Funny thing is that the board installation process actually deletes the "avr-gcc" folder I manually create seconds ago! NB: if it matters, I installed the IDE "for everyone", not "only for me" |
@mdelain I had experienced exact same issue, and I can't disable antivirus just like you. Fortunately I've managed to modify arduino-cli and make it compatible with antivirus. Please check arduino/arduino-cli#1938 , you may have a try if you can compile arduino-cli. Hope this PR will be accepted to solve this antivirus problem once and for all. |
Thanks for the suggestion @RangerCD, however I'm not sure to master the recompiling of arduino-cli :( |
Good news is that the PR has been accepted! It should be fixed in next release. |
Hi guys, do you know if this fix was shipped in release 2.0.1 (I couldn't find any release notes)? I hope not, as I still have the same issue when installing this new release... |
Hi @mdelain. Unfortunately the valuable fix from RangerCD was added after the time of the 0.28.0 release of Arduino CLI used by Arduino IDE 2.0.1 and also by the nightly builds of Arduino CLI. So no it is not in 2.0.1. It will probably be in the next release of Arduino IDE.
Release notes for Arduino IDE are here: https://github.com/arduino/arduino-ide/releases But we don't include changes made to Arduino CLI there. Those are available in the Arduino CLI changelogs: https://github.com/arduino/arduino-cli/releases |
The simple fix which worked for me was to disable my AV since this is the most probably the root of the error your AV or windows defender is blocking the process to move the file from temp to a system folder since is not reliable. |
Closing as fixed by arduino/arduino-cli#1938 / #1683 Thanks @RangerCD! |
Describe the problem
The IDE attempts to configure a board platform, even though there is an error


To reproduce
Open IDE 2.0.0rc9.1
From the board manager, select version 3.2 of the Mbed library for the Portenta and install
The following message is displayed in the terminal
The UI continues displaying the message
Processing Arduino Mbed OS Portenta Boards: 3.2.0: Configuring platform
for over an hourAfter trying again to install, I am told version 3.2.0 is installed, but the Portenta boards do not show up in the list of supported boards.


Close and open the IDE. You will notice that the

INSTALLED
tag is no longer shown when you try to install the Portenta board library again.Expected behavior
If the library install fails, I would expect to receive a message in the UI stating that it has failed.
Arduino IDE version
IDE 2.0.0-rc9
Operating system
Windows
Operating system version
Windows 10
Additional context
I see no way to remove the


Processing Arduino Mbed OS Portenta Boards: 3.2.0: Configuring platform
message, without restarting the program.I also tried to install support for the Nicla boards, which was done successfully.
Issue checklist
The text was updated successfully, but these errors were encountered: