vscode-circuitpython icon indicating copy to clipboard operation
vscode-circuitpython copied to clipboard

[BUG] Latest CircuitPython Extension (0.2.0) does not work with latest VSCode Version (1.85.1)

Open grosdode opened this issue 7 months ago • 14 comments

Describe the bug If I try to execute a CircuitPython command in VSCode I get "Command 'xyz' not found" for all commands (open serial Monitor, update libraries, ...)

To Reproduce Install the latest circuit CircuitPython Extension (0.2.0) and the latest VSCode (or VSCodium) Version (1.85.1) and try any command CircuitPython Extension (0.1.2) works fine with VSCode (or VSCodium) Version (1.85.1) CircuitPython Extension (0.2.0) works fine with VSCode (or VSCodium) Version (1.84.2)

Screenshots Screenshot 2024-01-05 160445

Desktop (please complete the following information):

  • OS: Windowns 10 Pro

Additional context Tested on 3 different Windows 10 pro computers

grosdode avatar Jan 05 '24 15:01 grosdode

I think this is the same as issue #134.

If you open the VSCode dev tools you should see an error saying the CircuitPython extension cannot find %USERPROFILE%\.vscode\extensions\joedevivo.vscode-circuitpython-0.2.0-win32-x64\boards\metadata.json which then causes the extension not to load and so all of the CircuitPython commands cause the error in the screenshot.

If you inspect the contents of the .vsix file (it's just a zip file), you will see that this file is missing from extension\boards\ as compared with the previous version .vsix file.

You can get past this and get the extension to load by placing the metadata.json file from the previous version in the folder %USERPROFILE%\.vscode\extensions\joedevivo.vscode-circuitpython-0.2.0-win32-x64\boards\

However, when I did this there were further bugs related to loading libraries as outlined in issue #134

clickonben avatar Jan 06 '24 14:01 clickonben

Yes I get the same error: Activating extension 'joedevivo.vscode-circuitpython' failed: ENOENT: no such file or directory, open 'c:\Users\xxx.vscode\extensions\joedevivo.vscode-circuitpython-0.2.0-win32-x64\boards\metadata.json'. Screenshot 2024-01-06 210755 But I'm wondering why it worked with an older VSCode version

grosdode avatar Jan 06 '24 20:01 grosdode

But I'm wondering why it worked with an older VSCode version

How sure are you that it did?

VS Code 1.85.1 came out before CircuitPython Extension (0.2.0), so to have CircuitPython Extension 0.2.0 installed in VSCode 1.84.2 would mean that they were updated out of order.

As far as I can tell CircuitPython Extension (0.2.0) is just broken but if you figure out how it could have worked in VSCode 1.84.2, it would be interesting to know.

clickonben avatar Jan 06 '24 20:01 clickonben

Pretty sure. I had VSCode and VSCodium installed. VSCode was up to date but VSCodium still on 1.84.2 (do not use it verry often) and I had to download and install the update by hand. Before the update everything works fine with 0.2.0 of CircuitPython and VSCodium and I install extension by extension from my VSCode to VSCodium, to check if any of the extensions causes this problem. After I installed all possible extensions it worked still fine. Than I saw that VSCodium was not up to date. So I did the update by hand and CircuitPython 0.2.0 no longer works.

grosdode avatar Jan 06 '24 20:01 grosdode

Same here, latest version of vscode.

dzyla avatar Jan 08 '24 01:01 dzyla

I think this is the same as issue #134.

If you open the VSCode dev tools you should see an error saying the CircuitPython extension cannot find %USERPROFILE%\.vscode\extensions\joedevivo.vscode-circuitpython-0.2.0-win32-x64\boards\metadata.json which then causes the extension not to load and so all of the CircuitPython commands cause the error in the screenshot.

If you inspect the contents of the .vsix file (it's just a zip file), you will see that this file is missing from extension\boards\ as compared with the previous version .vsix file.

You can get past this and get the extension to load by placing the metadata.json file from the previous version in the folder %USERPROFILE%\.vscode\extensions\joedevivo.vscode-circuitpython-0.2.0-win32-x64\boards\

However, when I did this there were further bugs related to loading libraries as outlined in issue #134

This fixed part of my issue but I also didn't have python installed, once it was installed and I restarted this issue went away.

Rambomst avatar Jan 10 '24 01:01 Rambomst

I had this issue and had to back install to 0.1.20: image

Once I did that everything worked as expected.

ScottMonaghan avatar Jan 15 '24 21:01 ScottMonaghan

uninstalled it. I never could get this to work regardless of version. latest VS Code on Linux Mint.

toddmo avatar Jan 23 '24 00:01 toddmo

I had the same issue, and had to revert to v0.1.20 to get it to work again (Microsoft Windows 10 Home).

steka avatar Jan 26 '24 12:01 steka

Currently, on three Linux systems, I have VSC 1.85.2 and 0.2.0 are working.

wmerkens avatar Jan 26 '24 17:01 wmerkens

uninstalled it. I never could get this to work regardless of version. latest VS Code on Linux Mint.

I had to install 0.1.2, then go into .vscode/extensions and manually delete 0.2 for it to work

wiredopposite avatar Feb 02 '24 01:02 wiredopposite

Just encountered this issue on Windows 11. Downgrading to v0.1.20 worked.

Version: 1.87.2 (user setup) Commit: 863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:20:17.278Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Windows_NT x64 10.0.22631

t-makaro avatar Mar 19 '24 21:03 t-makaro