Arduino IDE 2.3.x fails to startup

On a fresh install of the IDE I'm seeing the app attempt to mkdir to the home directory of my user account but with _1 appended.

This is a fresh install with no cached files for things like preferences and the HOME directory doesn't have _1 either

_1 often means a second copy. It sounds like you are Linux or Mac, which are you I am Mac and might be able to help.
Start by exposing hidden files, then do a screen grab of the alpha sorted dir where you think the problem is.
The github issue you are showing tells me the install can't create Library in your home dir. Is that correct? Show me stuff, don't use words.

Hi @jhsousa1. The first time you run Arduino IDE, and when you adjust the Arduino IDE preferences, it generates a file where various configuration data are stored.

One of the things configured in this file is the path of the "data folder". On startup, if Arduino IDE does not find a folder at the specified path, it will try to automatically create that folder. This is the "mkdir" operation that is failing and causing Arduino IDE to hang.

In the case where the cause of the failure is that an incorrect path is specified in Arduino IDE's configuration, the most simple solution will be to delete this configuration file. Arduino IDE will automatically generate a new configuration file the next time you start it, and hopefully it will have a correct configuration this time. I'll provide instructions you can follow to do that:

  1. Select Arduino IDE > Quit Arduino IDE from the Arduino IDE menus if it is running.
    All Arduino IDE windows will close.
  2. Delete the file at the following path:
    /Users/<username>/.arduinoIDE/arduino-cli.yaml
    
    (where <username> is your current macOS username)
    :red_exclamation_mark: The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
    :warning: Please be careful when deleting things from your computer. When in doubt, back up!
  3. Start Arduino IDE.

Arduino IDE should now start up fully and be functional as usual.

Note that the file you deleted is used to store some of your IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location" or "Additional Boards Manager URLs" preferences before, you'll need to select Arduino IDE > Settings... from the Arduino IDE menus and then set those preferences once again after performing the instructions I provided above.


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

ah yep! there was somehow a file under ~/.arduinoIDE that had the _1 path in it. Can't say I recall ever creating that but once I removed that it started right up. Thanks for the assistance.

You are welcome. I'm glad it is working now.

As I said, Arduino IDE automatically generates the file.

However, this does not answer question of why the configuration contained an incorrect path. Most often when people report this problem, the cause is found to be that they changed their macOS username since the time the configuration file was established.

yep maybe I created that configuration years ago (it's been a while) and I just didn't remember that that file existed. I probably should have thought about searching for a configuration file there. That's my bad, sorry about that