IDE hangs on startup: "Unable to get Documents Folder: The system cannot find the file specified."

I have the same problem with IDE 2.0 just hanging at the splash screen. This is on a new win 11 PC. Have tried all install methods, MSI, EXE, ZIP. All end up with the same issue. Here is first part of log file.

2022-10-30 14:56:53 Using browser-only version of superagent in non-browser environment 2022-10-30 14:56:53 Configuring to accept webviews on '^.+\.webview\..+$' hostname. 2022-10-30 14:56:53 root INFO Configuration directory URI: 'file:///c%3A/Users/w_moo/.theia' 2022-10-30 14:56:53 root INFO Backend Object.initialize: 3.3 ms [Finished 1.057 s after backend start] 2022-10-30 14:56:53 root INFO Backend Object.configure: 2.8 ms [Finished 1.057 s after backend start] 2022-10-30 14:56:53 root INFO Backend MessagingContribution.onStart: 1.0 ms [Finished 1.057 s after backend start] 2022-10-30 14:56:53 root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 1.091 s after backend start] 2022-10-30 14:56:53 root INFO Backend DefaultWorkspaceServer.onStart: 0.2 ms [Finished 1.091 s after backend start] 2022-10-30 14:56:53 root INFO Backend LocalizationBackendContribution.configure: 0.1 ms [Finished 1.091 s after backend start] 2022-10-30 14:56:53 root INFO Backend LocalizationBackendContribution.initialize: 34.0 ms [Finished 1.091 s after backend start] 2022-10-30 14:56:53 root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 1.091 s after backend start] 2022-10-30 14:56:53 root INFO Backend ElectronTokenBackendContribution.configure: 0.6 ms [Finished 1.092 s after backend start] 2022-10-30 14:56:53 root INFO Backend PluginDeployerContribution.initialize: 0.3 ms [Finished 1.092 s after backend start] 2022-10-30 14:56:53 root INFO Backend ConfigServiceImpl.onStart: 0.5 ms [Finished 1.092 s after backend start] 2022-10-30 14:56:53 root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.2 ms [Finished 1.093 s after backend start] 2022-10-30 14:56:53 root INFO Backend ArduinoDaemonImpl.onStart: 0.7 ms [Finished 1.093 s after backend start] 2022-10-30 14:56:53 root INFO Backend NodeFileUploadService.configure: 1.3 ms [Finished 1.094 s after backend start] 2022-10-30 14:56:53 daemon INFO Starting daemon from C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe... 2022-10-30 14:56:53 discovery-log INFO start 2022-10-30 14:56:53 discovery-log INFO start new deferred 2022-10-30 14:56:53 root INFO Backend BoardDiscovery.onStart: 0.5 ms [Finished 1.094 s after backend start] 2022-10-30 14:56:53 root INFO Backend FileDownloadEndpoint.configure: 0.3 ms [Finished 1.094 s after backend start] 2022-10-30 14:56:53 root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 1.095 s after backend start] 2022-10-30 14:56:53 root INFO Backend PluginApiContribution.configure: 0.3 ms [Finished 1.095 s after backend start] 2022-10-30 14:56:53 root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 1.095 s after backend start] 2022-10-30 14:56:53 root INFO Backend HostedPluginReader.configure: 0.0 ms [Finished 1.095 s after backend start] 2022-10-30 14:56:53 root INFO Backend PlotterBackendContribution.configure: 1.1 ms [Finished 1.097 s after backend start] 2022-10-30 14:56:53 root INFO Theia app listening on http://localhost:49854. 2022-10-30 14:56:53 root INFO Finished starting backend application: 3.3 ms [Finished 1.099 s after backend start] 2022-10-30 14:56:53 root WARN The local plugin referenced by local-dir:/c%3A/Users/w_moo/.arduinoIDE/plugins does not exist. 2022-10-30 14:56:53 root WARN The local plugin referenced by local-dir:C:\Users\w_moo\.arduinoProIDE\plugins does not exist. 2022-10-30 14:56:53 root WARN The local plugin referenced by local-dir:/c%3A/Users/w_moo/.arduinoIDE/extensions does not exist. 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines: 2022-10-30 14:56:53 root INFO PluginTheiaDirectoryHandler: accepting plugin with path 2022-10-30 14:56:53 root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines: 2022-10-30 14:56:54 root INFO Resolve plugins list: 59.4 ms [Finished 1.154 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "cortex-debug@0.3.10" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\cortex-debug\extension\dist\extension": 4.5 ms [Finished 1.159 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "vscode-arduino-tools@0.0.2-beta.5" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 4.7 ms [Finished 1.164 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "cpp@1.52.1" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-cpp\extension": 24.0 ms [Finished 1.188 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "json@1.46.1" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-json\extension": 5.0 ms [Finished 1.193 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "json-language-features@1.46.1" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 0.8 ms [Finished 1.194 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "vscode-language-pack-bg@1.48.3" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-language-pack-bg\extension": 92.5 ms [Finished 1.286 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "vscode-language-pack-cs@1.53.2" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-language-pack-cs\extension": 128.9 ms [Finished 1.415 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "vscode-language-pack-de@1.53.2" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-language-pack-de\extension": 117.7 ms [Finished 1.533 s after backend start] 2022-10-30 14:56:54 root INFO Deployed backend plugin "vscode-language-pack-es@1.53.2" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-language-pack-es\extension": 124.2 ms [Finished 1.657 s after backend start] 2022-10-30 14:56:54 daemon INFO Unable to get Documents Folder: The system cannot find the file specified. time="2022-10-30T14:56:54-04:00" level=error msg="Unable to get Documents Folder: The system cannot find the file specified." 2022-10-30 14:56:54 daemon ERROR Error: Unable to get Documents Folder: The system cannot find the file specified. time="2022-10-30T14:56:54-04:00" level=error msg="Unable to get Documents Folder: The system cannot find the file specified." at Socket.<anonymous> (C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:218:42) at Socket.emit (node:events:394:28) at addChunk (node:internal/streams/readable:312:12) at readableAddChunk (node:internal/streams/readable:287:9) at Socket.Readable.push (node:internal/streams/readable:226:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) 2022-10-30 14:56:54 daemon INFO Starting daemon from C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe... 2022-10-30 14:56:54 daemon INFO e[36mINFOe[0m[0000] Config file not found, using default values e[36mINFOe[0m[0000] arduino-cli.exe version 0.28.0 e[36mINFOe[0m[0000] Executing `arduino-cli daemon` {"IP":"127.0.0.1","Port":"52332"} 2022-10-30 14:56:54 root INFO Deployed backend plugin "vscode-language-pack-fr@1.53.2" from "C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-language-pack-fr\extension": 103.6 ms [Finished 1.761 s after backend start] 2022-10-30 14:56:54 daemon INFO Unable to get Documents Folder: The system cannot find the file specified. time="2022-10-30T14:56:54-04:00" level=error msg="Unable to get Documents Folder: The system cannot find the file specified." 2022-10-30 14:56:54 daemon ERROR Error: Unable to get Documents Folder: The system cannot find the file specified. time="2022-10-30T14:56:54-04:00" level=error msg="Unable to get Documents Folder: The system cannot find the file specified." at Socket.<anonymous> (C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:218:42) at Socket.emit (node:events:394:28) at addChunk (node:internal/streams/readable:312:12) at readableAddChunk (node:internal/streams/readable:287:9) at Socket.Readable.push (node:internal/streams/readable:226:10) at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) 2022-10-30 14:56:54 daemon INFO Starting daemon from C:\Users\w_moo\AppData\Local\Programs\arduino-ide\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe... 2022-10-30 14:56:54 daemon INFO e[36mINFOe[0m[0000] Using config file: c:\Users\w_moo\.arduinoIDE\arduino-cli.yaml e[36mINFOe[0m[0000] arduino-cli.exe version 0.28.0 e[36mINFOe[0m[0000] Executing `arduino-cli daemon` {"IP":"127.0.0.1","Port":"52333"} 

Hi @ardwm.

I think the problem is caused by this:

On startup, Arduino IDE creates a "sketchbook folder". This is the place where the IDE installs libraries, and also a convenient place to store your sketches. The default location of this sketchbook folder is a folder named Arduino created under your user documents folder.

Normally the documents folder is on your hard drive here:

C:\Users\w_moo\Documents\ 

However, if you are using Windows OneDrive, I believe it is stored there instead. In this case, starting the IDE without having OneDrive connected might cause this problem.

Are you aware of any problem such as this that might prevent the IDE from accessing your user documents folder?

1 Like

3 posts were split to a new topic: IDE startup hang: solved by starting IDE by opening sketch

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