Board manager and adding board manager URLs not working

I am trying to add the ESP32 package to Arduino IDE 2,

The package does not exist by default, which according to many internet posts and articles, it does for many people.

When I attempt to add new URLs to the preferences window and click OK, nothing changes, I go back into the preferences window and the new URLs have not been added. The only way I can add new URLs is by editing the preferences file using Notepad++.

There is no activity when I do this, no downloading dialog in the output window etc.

This is in version 2.1.1.

When I attempt the same thing in IDE 1.8.19, It will allow me to add and remove URLs but I get this in the output window...

Error downloading http://drazzy.com/package_drazzy.com_index.json
Error downloading https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Error downloading https://downloads.arduino.cc/packages/package_index.json

Any assistance greatly appreciated thank you!

Hi @bigdingo. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Start Windows "File Explorer".
  3. Open the Arduino IDE installation folder.
    The default installation location is at one of the following paths:
    • C:\Program Files\Arduino IDE
      
    • C:\Users\<username>\AppData\Local\Programs\Arduino IDE
      
      (where <username> is your Windows username)
      :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  5. From the context menu, click "Open PowerShell window here".
    Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  6. Type the following command:
    & ".\Arduino IDE"
    
  7. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  8. Wait for Arduino IDE to finish starting.
  9. Select File > Preferences... from the Arduino IDE menus.
  10. Add the URLs to the "Additional Boards Manager URLs" field, just as you did before.
  11. Click the OK button in the "Preferences" dialog.
  12. Switch back to the PowerShell window.
  13. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  14. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  15. Press Ctrl+C.
    This will copy the contents of the PowerShell window to the clipboard.
  16. Open a forum reply here by clicking the Reply button.
  17. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code tags icon on toolbar
  18. Press Ctrl+V.
    This will paste the output into the code block.
  19. Move the cursor outside of the code block markup before you add any additional text to your reply.
  20. Click the Reply button to post the output.

Please let me know if you have any questions or problems while following those instructions.

1 Like

Hello @ptillisch ...

This is as far as I get, set location is not working?

Set-Location : The term 'Set-Location' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Set-Location -literalPath 'C:\Program Files\Arduino IDE'
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Set-Location:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\WINDOWS\system32> & ".\Arduino IDE"
& : The term '.\Arduino IDE' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:3
+ & ".\Arduino IDE"
+   ~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\Arduino IDE:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\WINDOWS\system32>


Best,

M

I don't have any explanation of what would cause this error. Anyway I don't think it is related to your problem with Arduino IDE so we'll sidestep it by obtaining the logs in another way.

Arduino IDE automatically generates log files while it is running. I'm going to ask you to provide the latest log file from your computer. It might contain information that will help us to identify the problem.

Please do this:

  1. Open a forum reply here by clicking the Reply button.
  2. Click the "Upload" icon (image) on the post composer toolbar:
    Upload icon on toolbar
    A dialog will open.
  3. In the dialog, select the latest .log file from this folder (the files are named according to the date):
    C:\Users\<username>\AppData\Roaming\Arduino IDE\
    
    (where <username> is your Windows username)
    Note that the C:\Users\<username>\AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. Click the Open button.
  5. Click the Reply button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .log file onto the post composer field to attach it.


Please let me know if you have any questions or problems while following those instructions.

Thank you @ptillisch,

2023-08-16_log.log (605.9 KB)

Best,

M

I see the relevant part of the logs here:

Is there anything special about your system that would block Arduino IDE from being able to write to the folder at that path?

Is your Windows username "noodi" (I ask because there is some vague possibility the problem could be related to you having changed your username at some point).

Is there free space on your C:\ hard drive?

I saw that a user who had a similar problem found it was caused by something in their Windows Defender configuration:

https://forum.arduino.cc/t/arduino-2-0-will-not-start-past-the-loading-screen/1049023/85

Hello @ptillisch, thank you for this.

I don't think so, yes noodi is the user name....

Microsoft Windows [Version 10.0.22621.2134]
(c) Microsoft Corporation. All rights reserved.

C:\Users\noodi>echo %USERNAME%
noodi

C:\Users\noodi>

265 Gb free.

I ran Arduino IDE as Admin but this didn't help, what permissions would I need to change?

I did see this error in arduino IDE the first time I attempted adding a URL in Admin mode...

Error saving downloaded index: open c:\Users\noodi\AppData\Local\Arduino15\library_index.json: Access is denied.

Not sure if that sheds any light on the situation.

Thank you for your help,

M

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.