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

New one for you.

No OneDrive
Documents folder is an SMB mount

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\sraas\AppData\Local\Programs\Arduino IDE> $Env:GRPC_VERBOSITY = "DEBUG"
PS C:\Users\sraas\AppData\Local\Programs\Arduino IDE> $Env:GRPC_TRACE = "all"
PS C:\Users\sraas\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\sraas\AppData\Local\Programs\Arduino IDE>
D 2022-12-09T23:13:29.074Z | index | Loading @grpc/grpc-js version 1.6.8
Arduino IDE 2.0.3
Starting backend process. PID: 220732
D 2022-12-09T23:13:30.190Z | index | Loading @grpc/grpc-js version 1.6.8
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/sraas/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2022-12-09T23:13:30.404Z root INFO Backend Object.initialize: 3.6 ms [Finished 1.219 s after backend start]
2022-12-09T23:13:30.404Z root INFO Backend Object.configure: 2.8 ms [Finished 1.219 s after backend start]
2022-12-09T23:13:30.404Z root INFO Backend MessagingContribution.onStart: 1.3 ms [Finished 1.219 s after backend start]
2022-12-09T23:13:30.405Z root INFO Backend OSBackendApplicationContribution.configure: 0.4 ms [Finished 1.251 s after backend start]
2022-12-09T23:13:30.405Z root INFO Backend DefaultWorkspaceServer.onStart: 0.4 ms [Finished 1.251 s after backend start]
2022-12-09T23:13:30.406Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.2 ms [Finished 1.251 s after backend start]
2022-12-09T23:13:30.407Z root INFO Backend PluginLocalizationBackendContribution.initialize: 32.5 ms [Finished 1.252 s after backend start]
2022-12-09T23:13:30.407Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 1.252 s after backend start]
2022-12-09T23:13:30.408Z root INFO Backend ElectronTokenBackendContribution.configure: 0.8 ms [Finished 1.253 s after backend start]
2022-12-09T23:13:30.408Z root INFO Backend PluginDeployerContribution.initialize: 0.4 ms [Finished 1.253 s after backend start]
2022-12-09T23:13:30.409Z root INFO Backend ConfigServiceImpl.onStart: 0.7 ms [Finished 1.253 s after backend start]
2022-12-09T23:13:30.410Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.4 ms [Finished 1.254 s after backend start]
2022-12-09T23:13:30.410Z root INFO Backend ArduinoDaemonImpl.onStart: 0.9 ms [Finished 1.255 s after backend start]
2022-12-09T23:13:30.410Z root INFO Backend NodeFileUploadService.configure: 1.8 ms [Finished 1.255 s after backend start]
2022-12-09T23:13:30.410Z daemon INFO Starting daemon from C:\Users\sraas\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
2022-12-09T23:13:30.410Z discovery-log INFO start
2022-12-09T23:13:30.410Z discovery-log INFO start new deferred
2022-12-09T23:13:30.410Z root INFO Backend HostedPluginLocalizationService.initialize: 0.4 ms [Finished 1.256 s after backend start]
2022-12-09T23:13:30.410Z root INFO Backend BoardDiscovery.onStart: 0.8 ms [Finished 1.256 s after backend start]
2022-12-09T23:13:30.411Z root INFO Backend FileDownloadEndpoint.configure: 0.7 ms [Finished 1.257 s after backend start]
2022-12-09T23:13:30.411Z root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 1.258 s after backend start]
2022-12-09T23:13:30.411Z root INFO Backend PluginApiContribution.configure: 0.4 ms [Finished 1.258 s after backend start]
2022-12-09T23:13:30.412Z root INFO Backend HostedPluginReader.configure: 0.4 ms [Finished 1.259 s after backend start]
2022-12-09T23:13:30.412Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 1.259 s after backend start]
2022-12-09T23:13:30.412Z root INFO Backend PlotterBackendContribution.configure: 0.8 ms [Finished 1.260 s after backend start]
2022-12-09T23:13:30.415Z root INFO Theia app listening on http://localhost:52179.
2022-12-09T23:13:30.416Z root INFO Finished starting backend application: 5.2 ms [Finished 1.263 s after backend start]
2022-12-09T23:13:30.423Z root WARN The local plugin referenced by local-dir:/c%3A/Users/sraas/.arduinoIDE/plugins does not exist.
2022-12-09T23:13:30.423Z root WARN The local plugin referenced by local-dir:/c%3A/Users/sraas/.arduinoIDE/extensions does not exist.
2022-12-09T23:13:30.424Z root WARN The local plugin referenced by local-dir:C:\Users\sraas\.arduinoProIDE\plugins does not exist.
2022-12-09T23:13:30.439Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.439Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines:
2022-12-09T23:13:30.439Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.439Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
2022-12-09T23:13:30.439Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.439Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
2022-12-09T23:13:30.440Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.440Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
2022-12-09T23:13:30.440Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.440Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
2022-12-09T23:13:30.440Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.440Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
2022-12-09T23:13:30.440Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.440Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
2022-12-09T23:13:30.440Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.440Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
2022-12-09T23:13:30.440Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.440Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
2022-12-09T23:13:30.440Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.441Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
2022-12-09T23:13:30.441Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.441Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
2022-12-09T23:13:30.441Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.441Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
2022-12-09T23:13:30.441Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.441Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
2022-12-09T23:13:30.441Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.441Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
2022-12-09T23:13:30.441Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.441Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
2022-12-09T23:13:30.442Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.442Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
2022-12-09T23:13:30.442Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.442Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
2022-12-09T23:13:30.442Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.442Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
2022-12-09T23:13:30.442Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.442Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
2022-12-09T23:13:30.442Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.442Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
2022-12-09T23:13:30.443Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2022-12-09T23:13:30.443Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
2022-12-09T23:13:30.456Z root INFO Resolve plugins list: 46.5 ms [Finished 1.303 s after backend start]
2022-12-09T23:13:30.460Z root INFO Deployed backend plugin "marus25.cortex-debug@1.5.1" from "C:\Users\sraas\AppData\Local\Programs\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension.js": 3.8 ms [Finished 1.307 s after backend start]
2022-12-09T23:13:30.461Z daemon INFO Unable to get Documents Folder: The system cannot find the path specified.

2022-12-09T23:13:30.461Z daemon ERROR Error: Unable to get Documents Folder: The system cannot find the path specified.
    at Socket.<anonymous> (C:\Users\sraas\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:219: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-12-09T23:13:30.461Z daemon INFO Starting daemon from C:\Users\sraas\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
2022-12-09T23:13:30.466Z daemon INFO time="2022-12-09T17:13:30-06:00" level=error msg="Unable to get Documents Folder: The system cannot find the path specified."

Hi @sraasch. What is the path of your Documents folder?

z:\Documents

Lots of changes on this machine recently. My documents were being pulled from \nas\Users\Steve which used to be mapped to Z:, but Z: was not mapped...

I found this issue by looking into the registry here:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal

After re-adding the Z: mapping, stuff is working again.

Thanks for getting me going!

I'm looking forward to working with 2.0.

-S

FWIW: it might be worth popping up error messages instead of having the app silently sit there re-trying the same thing over and over.

I'm glad it is working now. Thanks for taking the time to post an update with your findings. That is very helpful.

I think it is an excellent suggestion. Would you mind submitting a formal report to the Arduino IDE developers? You can do that here:

https://github.com/arduino/arduino-ide/issues/new/choose

Ideally your report would contain detailed instructions we can follow to reproduce these conditions.

It is not clear to me whether the use of a network shared folder is a required condition, or if it is only incidental and the same problem would occur any time the Documents folder was configured to a path that is not accessible. If the use of a network share is not a required condition, it would be better to eliminate that step from the reproduction instructions since it adds quite some complexity and might be confused with other defects specific to the UNC paths of network shares (e.g., IDE not working with source in a UNC path).

I'll submit my thoughts.

Thanks for the link.

1 Like

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