-
Notifications
You must be signed in to change notification settings - Fork 236
Cannot activate the Arduino extension #1616
Comments
+1 from me. This is broken to the point that I can not even uninstall the Serial Monitor extension in an attempt to fix this. It claims that the Arduino extension requires it even after I uninstall the Arduino extension. |
I think this is the same issue as microsoft/vscode-serial-monitor#77. Can you try adding this snippet to your "remote.extensionKind": {
"ms-vscode.vscode-serial-monitor": [
"workspace"
]
}, |
Everything below is under this configuration: vscode arduino 0.5.0 and vscode serial monitor 0.8.0 versions. So I configured the json with the snippet you posted - much appreciated, really, and my bad, couldn't find the issue on that repo. Anyway, with that I no longer see the "Serial Monitor Extension not loaded" exception. PLEASE NOTE: until I withdraw this below, in this scenario I have vsc arduino and vsc serial monitor installed locally and remotely. I get this error, from the dev tools console
Please note that the above error can be present more than once, even consecutively.
Tried to grep the So what I did was uninstalling both extensions from local and remote envs and reloading vscode. How can I be of further help? Thank you again for the snippet and, lbnl, for your time. |
I'm guessing the It's concerning that the bundled CLI doesn't seem to be initializing correctly. We can try to reproduce that case in a remote environment, but as a workaround can you try manually installing Arduino CLI in your remote environment, then set |
I get the same When switching to a standalone CLI, the error is gone. In my case, it is the path to the CLI in the Arduino Path setting and |
@benmcmorran Summing it up: I can work with the most recent version of arduino extension for vscode, though I won't close the thread, leaving it to you to decide. PS: I have a spare SD that I can experiment with on RPi. Please let me know if I can be of any help. |
This issue has been automatically marked as stale because it has been inactive for 30 days. To reactivate the issue, simply post a comment with the requested information to help us diagnose this issue. If this issue remains inactive for another 7 days, it will be automatically closed. |
This issue has been automatically closed due to inactivity. If you are still experiencing problems, please open a new issue. |
vscode-arduino version: 0.5.0
vscode-serial-monitor version: 0.8.0
Visual studio code version: 1.76.0
Windows build: 19044.2604
Raspbian Desktop version: 11 (bullseye)
Raspberry Pi OS Lite version: 11 (bullseye)
Reproducible steps:
You'll need an Arduino (in my case a Due, but one can use Uno or any other), plugged in a machine to which you log into via e.g. vscode Remote SSH plugin.
VSCode's host OS is Win10, remote host is a Raspberry (the one to which Arduino is plugged in) with either RPi OS Lite or Raspbian Desktop OS version.
Tests have been made for both vscode-arduino and vscode-serial-monitor with release and pre-release versions.
RPi OS Lite has been installed with the purpose to test this issue.
What you expected to see, versus what you actually saw:
Images, animations, or a link to a video showing the issue occurring:
nothing to say, normal and expected UI behaviour.
A code snippet that demonstrates the issue:
none.
Errors from the Dev Tools Console:
This one (available on UI and Dev Tools>Console): "Cannot activate the 'Arduino' extension because it depends on the 'Serial Monitor' extension, which is not loaded. Would you like to reload the window to load the extension?" (Reloading does not solve the issue).
Serial Monitor tip for remote host plugin instance says: "This extension is enabled in the Local Extension Host because it prefers to run there."
Last consideration:
I think Modify to use standalone Serial Monitor Extension (#1577) is relevant.
Thank you for your time.
The text was updated successfully, but these errors were encountered: