Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
grosdode opened this issue Jan 5, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@grosdode
Copy link

grosdode commented Jan 5, 2024

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 grosdode added the bug Something isn't working label Jan 5, 2024
@clickonben
Copy link

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

@grosdode
Copy link
Author

grosdode commented Jan 6, 2024

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

@clickonben
Copy link

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.

@grosdode
Copy link
Author

grosdode commented Jan 6, 2024

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.

@dzyla
Copy link

dzyla commented Jan 8, 2024

Same here, latest version of vscode.

@Rambomst
Copy link

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.

@ScottMonaghan
Copy link

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

Once I did that everything worked as expected.

@toddmo
Copy link

toddmo commented Jan 23, 2024

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

@steka
Copy link

steka commented Jan 26, 2024

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

@wmerkens
Copy link

wmerkens commented Jan 26, 2024

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

@wiredopposite
Copy link

wiredopposite commented Feb 2, 2024

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

@t-makaro
Copy link

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

@karunt
Copy link

karunt commented Jun 1, 2024

Has this been fixed yet for version 0.2.0?

@wmerkens
Copy link

wmerkens commented Jun 1, 2024

I am afraid nope, not fixed. Also, I have found the script used to rebuild the stubs/boards needs to be reworked since it does not build stubs correctly anymore. I am looking at the code of the extension, but I have never done typescript, so at the moment, I am learning how the extensionis put together and built.

@RekoSK
Copy link

RekoSK commented Sep 20, 2024

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

So you're saying it's just better to stick with the old versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests