Hi @latedev. From our previous discussions, I'll assume you are using Windows when providing these instructions. If you are using another operating system, just let me know.
I'm going to ask you to post some additional information that might help us to identify the problem.
Please do this:
Start Windows "File Explorer".
Open the Arduino IDE installation folder.
(usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
From the context menu, click "Open PowerShell window here".
PowerShell will now open with the current directory set to the Arduino IDE installation folder.
Type the following command:
& ".\Arduino IDE"
Press the Enter key.
Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
Wait until you are certain the Arduino IDE has finished any progress in starting (as indicated by the lack of new output printed to the PowerShell terminal).
Switch back to the PowerShell window if the Arduino IDE window took the focus.
Right click on the title bar of the PowerShell window.
This will open a context menu.
Select Edit > Select All from the context menu.
This will select all the text in the PowerShell window.
Press Ctrl+C.
This will copy the contents of the PowerShell window to the clipboard.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the output into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Click the Reply button to post the output.
Please let me know if you have any questions or problems while following those instructions.
Two scenarios. The VPN is turned on, for the below output, however turning the VPN off the IDE starts fine.
I then Started the IDE, VPN off, then turned on the VPN, however the IDE failed to shut down with the VPN active, Once I had turned the VPN off, the IDE shut down as normal.
Arduino IDE 2.0.1
Starting backend process. PID: 9536
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/MJW/.theia'
root INFO Backend Object.initialize: 4.6 ms [Finished 1.920 s after backend start]
root INFO Backend Object.configure: 3.6 ms [Finished 1.920 s after backend start]
root INFO Backend MessagingContribution.onStart: 1.3 ms [Finished 1.920 s after backend start]
root INFO Backend OSBackendApplicationContribution.configure: 0.3 ms [Finished 2.016 s after backend start]
root INFO Backend DefaultWorkspaceServer.onStart: 0.3 ms [Finished 2.016 s after backend start]
root INFO Backend LocalizationBackendContribution.configure: 0.1 ms [Finished 2.016 s after backend start]
root WARN Backend LocalizationBackendContribution.initialize took longer than the expected maximum 50 milliseconds: 96.4 ms [Finished 2.016 s after backend start]
root INFO Backend TaskBackendApplicationContribution.onStart: 0.2 ms [Finished 2.016 s after backend start]
root INFO Backend ElectronTokenBackendContribution.configure: 2.1 ms [Finished 2.019 s after backend start]
root INFO Backend PluginDeployerContribution.initialize: 0.3 ms [Finished 2.019 s after backend start]
root INFO Backend ConfigServiceImpl.onStart: 0.8 ms [Finished 2.020 s after backend start]
root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.3 ms [Finished 2.021 s after backend start]
root INFO Backend ArduinoDaemonImpl.onStart: 1.0 ms [Finished 2.021 s after backend start]
root INFO Backend NodeFileUploadService.configure: 2.0 ms [Finished 2.022 s after backend start]
daemon INFO Starting daemon from E:\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
discovery-log INFO start
discovery-log INFO start new deferred
root INFO Backend BoardDiscovery.onStart: 0.7 ms [Finished 2.023 s after backend start]
root INFO Backend FileDownloadEndpoint.configure: 0.5 ms [Finished 2.023 s after backend start]
root INFO Backend AuthenticationServiceImpl.onStart: 0.3 ms [Finished 2.024 s after backend start]
root INFO Backend PluginApiContribution.configure: 0.4 ms [Finished 2.024 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.3 ms [Finished 2.025 s after backend start]
root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 2.026 s after backend start]
root INFO Backend PlotterBackendContribution.configure: 2.0 ms [Finished 2.028 s after backend start]
root INFO Theia app listening on http://localhost:58333.
root INFO Finished starting backend application: 5.9 ms [Finished 2.031 s after backend start]
root WARN The local plugin referenced by local-dir:/c%3A/Users/MJW/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/MJW/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\MJW\.arduinoProIDE\plugins does not exist.
Restoring workspace roots: e:\Arduino Projects\SolarConsumer
isTempSketch: false. Input was e:\Arduino Projects\SolarConsumer\SolarConsumer.ino
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.5" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
root INFO Resolve plugins list: 119.3 ms [Finished 2.143 s after backend start]
root INFO Deployed backend plugin "cortex-debug@0.3.10" from "E:\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension": 10.6 ms [Finished 2.153 s after backend start]
root INFO Deployed backend plugin "vscode-arduino-tools@0.0.2-beta.5" from "E:\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 10.8 ms [Finished 2.164 s after backend start]
root INFO Deployed backend plugin "cpp@1.52.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 33.6 ms [Finished 2.198 s after backend start]
root INFO Deployed backend plugin "json@1.46.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 4.9 ms [Finished 2.203 s after backend start]
root INFO Deployed backend plugin "json-language-features@1.46.1" from "E:\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 0.6 ms [Finished 2.203 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-bg@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-bg\extension": 132.3 ms [Finished 2.336 s after backend start]
daemon INFO INFO[0000] Using config file: c:\Users\MJW\.arduinoIDE\arduino-cli.yaml
INFO[0000] arduino-cli.exe version 0.28.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"58336"}
daemon INFO Daemon is running.
root ERROR Uncaught Exception:
root ERROR Error: 14 UNAVAILABLE: No connection established
at Object.callErrorFromStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call.js:31:26)
at Object.onReceiveStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client.js:189:52)
at Object.onReceiveStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:365:141)
at Object.onReceiveStatus (E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:328:181)
at E:\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call-stream.js:187:78
at processTicksAndRejections (node:internal/process/task_queues:78:11)
root INFO Deployed backend plugin "vscode-language-pack-cs@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 187.0 ms [Finished 2.523 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-de@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 147.1 ms [Finished 2.670 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-es@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-es\extension": 143.6 ms [Finished 2.813 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-fr@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-fr\extension": 134.9 ms [Finished 2.948 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-hu@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-hu\extension": 97.3 ms [Finished 3.046 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-it@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-it\extension": 132.1 ms [Finished 3.178 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ja@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ja\extension": 149.1 ms [Finished 3.327 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ko@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ko\extension": 148.2 ms [Finished 3.475 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-nl@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-nl\extension": 70.0 ms [Finished 3.545 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pl@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-pl\extension": 120.8 ms [Finished 3.666 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-pt-BR@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-pt-BR\extension": 129.2 ms [Finished 3.795 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-ru@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-ru\extension": 149.0 ms [Finished 3.944 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-tr@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-tr\extension": 134.9 ms [Finished 4.079 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-uk@1.48.3" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-uk\extension": 86.2 ms [Finished 4.165 s after backend start]
root INFO Deployed backend plugin "vscode-language-pack-zh-hans@1.53.2" from "E:\Arduino IDE\resources\app\plugins\vscode-language-pack-zh-hans\extension": 123.4 ms [Finished 4.289 s after backend start]
root INFO Deploy plugins list: 119.3 ms [Finished 4.295 s after backend start]
A tool named Arduino CLI provides all the non-GUI functionality to Arduino IDE. Arduino IDE communicates with Arduino CLI over a TCP/IP port on your computer.
The logs above show that the Arduino CLI "daemon" was started and listens for this communication on 127.0.0.1:58336 (localhost). But when Arduino IDE attempts to connect to that port, the connection failed. So it seems that the VPN is interfering with the IDE's ability to make that connection.
Unfortunately I don't have any experience with VPNs.
We have had some reports of proxies interfering with the communication (though most often through the Internet rather than local communication). I don't know whether there is anything of relevance in those discussions for problems related to VPN usage:
You might take a look through your VPN or network settings to see if you can identify what is happening.
It is possible to enable some additional debugging output from the node-grpc package that is failing to connect to the Arduino CLI daemon. It is possible that additional information might provide a clue about what exactly is happening and how The I'm going to ask you to post the logs produced by Arduino IDE when some additional debugging output is enabled. This information that might help us to identify the problem.
Please do this:
Start Windows "File Explorer".
Open the Arduino IDE installation folder.
(usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
From the context menu, click "Open PowerShell window here".
PowerShell will now open with the current directory set to the Arduino IDE installation folder.
Type the following command:
$Env:GRPC_VERBOSITY = "DEBUG"
Press the Enter key.
Type the following command in the terminal:
$Env:GRPC_TRACE = "all"
Press the Enter key.
Type the following command:
& ".\Arduino IDE"
Press the Enter key.
Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
Wait until you are certain the Arduino IDE has finished any progress in starting (as indicated by the lack of new output printed to the PowerShell terminal).
Switch back to the PowerShell window if the Arduino IDE window took the focus.
Right click on the title bar of the PowerShell window.
This will open a context menu.
Select Edit > Select All from the context menu.
This will select all the text in the PowerShell window.
Press Ctrl+C.
This will copy the contents of the PowerShell window to the clipboard.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the output into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Click the Reply button to post the output.
Please let me know if you have any questions or problems while following those instructions.
Sorry, given I don't know enough about net addresses so much I had assumed that localhost would have been identified with ipconfig /all ,which only shows the IP addresses of everything.
It clearly does exist given that I can ping 127.0.0.1