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] Circuitpython basically just doesn't work in VS code anymore in 2024 #151

Open
CombatVolcano opened this issue Jul 26, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@CombatVolcano
Copy link

Describe the bug
Try following basic install on windows from the ground up.
Install the latest python, latest VS code, the latest circuitpython extension.
Select python interpreter and restart VS code.
Try running select serial port now from the quick menu. It fails to find the file to execute the command.

There is no reason this should be so obtuse.

THIS JUST PLAIN DOES NOT WORK!

@CombatVolcano CombatVolcano added the bug Something isn't working label Jul 26, 2024
@edwin721
Copy link

edwin721 commented Aug 7, 2024

That seems to work with the previous version...

@notbrain
Copy link

notbrain commented Sep 7, 2024

Just installed on MacOS Sonoma 14.5 M1 Max and none of the commands are found. Every attempt to run a command in the list just says "command 'circuitpython.openSerialMonitor' not found", "command 'circuitpython.selectBoard' not found" and so on. Don't think I missed a step. Mu Editor is seeing the CIRCUITPY drive and working fine.

@NicholasCessna
Copy link

This is still going on. "command not found" is there a resolution for this?

@adamneighbors
Copy link

@notbrain @NicholasCessna Are y'all actually opening your VScode workspace on the board? I had the same problems until I opened my workspace on the actual board.

@NicholasCessna
Copy link

@adamneighbors It says it when I am trying to find the serial connection to access the board. I can't get to the board via circuitpython.

@RekoSK
Copy link

RekoSK commented Sep 20, 2024

@adamneighbors , I just tried what you said, and it's not working. Progress is that i get a pop up saying activating extensions, and circuit python is "opening", but probably then something fails, because when i try to open the serial monitor for example, it still don't work (having the same error as everybody has). Did anybody found a solve for this?

@CombatVolcano
Copy link
Author

CombatVolcano commented Sep 20, 2024

@RekoSK From the looks of it, this is the end of the road for VS Code and CircuitPython. AdaFruit who drive most support for CircuitPython these days want you to use Mu (I know). Everything is being deprecated and sequestered and with the insane selfishness of modern open source licensing (like people slapping Standard Digital File License on everything) that community is dying, too.

Fortunately, MicroPython works fine.

Unfortunately for CircuitPython, this is going to move a huge portion of their user base over to MicroPython, which means less contribution than there already is, less community, less new adopters, less support... etc... vanishes from the earth in a few years.

@RekoSK
Copy link

RekoSK commented Sep 21, 2024

@CombatVolcano I fixed it with only possible solution, and that is downgrading to 1.2.0. Right now everything works for me, but I only tried printing out hello word on OLED display.

Tbh, mu sucks (or I just don't know how to use it properly). When I add any library to my Raspberry pi pico, it doesn't automatically start autocorrecting and suggestions don't pop up. I tried searching the web, but none of the answers worked.

On vs code however, it starts automatically autocorrecting me after I upload the library to the lib folder on the Raspberry. Idk how that works or anything, but even if it stopped working I can normally just install it through pip (which is another thing idk how to do on MU).

Ye and I LOVE the way vs 2019 and vs code is highlighting code, so thats another reason why I don't like using anything else 😄.

@Duckferd
Copy link

I don't understand the fatalistic/nihilistic viewpoints about the future of Circuitpython, all I am looking for is a resolution so I don't have to continue using Mu (please and thank you to the author and community!). Both Micro and Circuitpython offer specific libraries that are both very useful and I would like to continue using both.

@wmerkens
Copy link

wmerkens commented Sep 28, 2024

This can be fixed in version 0.2.0; it just needs its boards and stubs rebuilt. See issue #148, where I describe a change to the build script that will allow you to rebuild the stubs and boards.

Basic steps: fix the script, run it and build the new stubs & boards, copy the two folders to the vscode/extention/joe... directory, and restart vscode.

I have the 1.93.1 code and 0.2.0 extension working just fine.

Update: Do rebuild the Stubs and Boards for Circuitpython release 9.2.0; this will get newer boards like the Pico2

As of 2024-11-21, I am using 1.95.3 with Extention 0.2.0

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

8 participants