I launch nothing appears. I tried debug tips found, and get a:
Restoring workspace roots: d:\lightGamev4_copy_20221112155232
Failed to start the electron application.
[Error: UNKNOWN: unknown error, stat 'd:\lightGamev4_copy_20221112155232'] {
errno: -4094,
code: 'UNKNOWN',
syscall: 'stat',
path: 'd:\lightGamev4_copy_20221112155232'
I don't know if this is THE problem preventing it - but the file it refers to was on a USB drive and is not in the computer.
Anyway - I cannot find any kind of config file where this is being references. Is there any way to reset it, or would this even cause it to not lauch??
A Complete uninstall and reinstall resulted in the same error.
If I search for a recently used sketch in the installation directory of the IDE, I can find references to it in C:\users\yourUsername\.arduinoIDE\recent-sketches.json and C:\users\yourUsername\.arduinoIDE\recentworkspace.json; the latter contains the the keyword recentRoots so it might be worth investigating that file.
I've moved your topic to the dedicated IDE 2.0 section of the forum.
It was not in recentworkspace, but was in recent-sketeches, though in the "middle" of the list (i.e. didn't seem to be the most recent). I removed the entry, but it still does the same thing.
But also - when I uninstalled Arduino I (renamed) the .arduinoIDE, so it created a brand new one which didn't have my D: file listed in the sketches at all - yet - it still remembers it.
So in conclusion - it's still happening, and it seems to be remembered from somewhere other than these files.
I am having a similar issue, even after upgrading from 2.0 to 2.0.2. According to the error I am getting, it seem to be trying to open my last sketch - which previously was on a removable drive and is no longer on the system. Even a uninstall and reinstall seems to still try the same thing, indicating the memory if this as the last file was NOT wiped by the uninstall.
I did use grepwin to find the files on my system but only on specific directories. I suggest that you use something like that (windows has "find in files" or something like that as well) and scan your complete c-drive for files that contain the name of that missing file.
Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting can result in a suspension from the forum.
In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.
the C:\Users\<user name>\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".
Thank you all - enabling that showed the folder, in which was a config.json file, which had a "workspace" entry, which was referencing the offending file. When I removed that JSON entry in the workspace array, Adruino IDE booted.
This is most definitely an IDE bug that needs to be fixed - how can I/we/someone open an official bug report on it?
Not really, under Windows I would consider it to be the uninstall script; that is the Add or Remove from Control Panel. Uninstall is a script that is executed if user selects. Generally, a script should ask if the user wants configuration info deleted, too. Configuration info is generally not removed to assist with upgrading program versions . The delete conf would be useful for those who are just evaluating software.
How can I do step 2 when the IDE doesn't start? I have a very similar problem: The IDE (windows version 2.0.3 fresh install) hangs during startup saying "unknown error". The window doesn't show up at all.