rpgfabi
December 10, 2022, 9:41am
1
Hello,
I'm using the IDE 2. Today I tried to start it and it only opened a Background-Process but not the Window. I tried this (Arduino 2.0 not starting up - #3 by ptillisch ) but the Problem is, that it wont show anything in the Powershell.
Then I uninstalled it, and installed the current Release 2.0.3. Tried to open it after the Installation, same Problem. Again no Output to PowerShell.
What can I do?
Edit1: Mooved
Edit2: Also restarting the PC doesnt do anything
rpgfabi
December 10, 2022, 5:16pm
2
The IDE starts again after Unistalling it, clearing the "Arduino15" Folder and reinstalling it.
But now it is stuck in an endless loading loop with the Symbol flashing.
Hi @rpgfabi . If you start Arduino IDE from PowerShell now, are any logs printed there? If so, please post them here following the directions at the link you shared previously.
rpgfabi
December 10, 2022, 6:08pm
4
Just found out that somehow my Google Drive where the Libaries etc. where stored mooved the virtuell drive to H: instead of G:.
That gave the IDE hickups because it tried to access G.
Fixxed that part and it works again.
I'm glad it is working now. Excellent work on identifying the cause of the hang!
I am able to reproduce this and have submitted a bug report to the Arduino IDE developers:
opened 07:09AM - 12 Dec 22 UTC
closed 02:44PM - 21 Dec 22 UTC
conclusion: resolved
topic: code
type: imperfection
### Describe the problem
The Arduino sketchbook is a convenient place to stor… e sketches and the location where Arduino IDE installs libraries.
The user can set a custom location for the sketchbook via the "**Sketchbook location**" preference.
🐛 If the drive containing the "**Sketchbook location**" path is not available, the Arduino IDE startup hangs. The cause is not communicated to the user in any way.
### To reproduce
#### Setup
1. Connect a removable drive to your computer.
1. Select **File > Preferences...** from the Arduino IDE menus.
1. Set a path under the removable drive in the "**Sketchbook location**" field.
1. Click the <kbd>**OK**</kbd> button.
1. Select **File > Quit** from the Arduino IDE menus.
-OR-
The fault can also be reproduced even if you don't have a removable drive on hand:
1. Select **File > Quit** from the Arduino IDE menus.
1. Open the file at the following path in a text editor:
- **Windows**:
```text
C:\Users\<username>\AppData\Roaming\arduino-ide\arduino-cli.yaml
```
- **Linux**:
```text
~/.config/arduino-ide/arduino-cli.yaml
```
- **macOS**:
```text
~/Library/Application Support/arduino-ide/arduino-cli.yaml
```
1. Change the path in the `directories.user` key to one under a drive that doesn't exist on your computer.
For example:
```yaml
user: L:\Arduino
```
1. Save the file.
#### Steps
1. Start Arduino IDE.
🐛 Startup hangs at the loading animation:

### Expected behavior
Arduino IDE clearly communicates to the user that the sketchbook location is inaccessible. If it is not possible for the IDE to be functional under these conditions, this should also be clearly communicated to the user and they should still be able to change the "**Sketchbook location**" preference to an accessible path to restore the functionality.
### Arduino IDE version
f8c01e3
### Operating system
Windows
### Operating system version
10
### Additional context
I bisected the introduction of the bug to https://github.com/arduino/arduino-ide/commit/6983c5bf7f40de76542de0c4a0810bcd3f204612 (does not occur with the build for the previous commit b3ab5cb)
---
I see this in the logs on startup:
```text
2022-12-12T06:43:22.393Z root ERROR Uncaught Exception:
2022-12-12T06:43:22.393Z root ERROR Error: ENOENT: no such file or directory, mkdir '\\?'
```
---
The fault does not occur if the drive is accessible but the sketchbook folder is missing. In this case, the missing folder is simply created on startup (https://github.com/arduino/arduino-ide/commit/6983c5bf7f40de76542de0c4a0810bcd3f204612).
---
Originally reported at https://forum.arduino.cc/t/arduino-ide-2-wont-start/1063769
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
1 Like
rpgfabi
December 12, 2022, 7:22am
6
Thanks, somehow forgott that I can do that
system
Closed
June 10, 2023, 7:22am
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.