joedevivo / vscode-circuitpython

VSCode extension for Adafruit's CircuitPython
MIT License
119 stars 37 forks source link

[BUG] Circuitpython basically just doesn't work in VS code anymore in 2024 #151

Open CombatVolcano opened 4 months ago

CombatVolcano commented 4 months ago

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!

edwin721 commented 3 months ago

That seems to work with the previous version...

notbrain commented 2 months ago

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 commented 2 months ago

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

adamneighbors commented 2 months ago

@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 commented 2 months ago

@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 commented 2 months ago

@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 commented 2 months ago

@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 commented 2 months ago

@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 commented 2 months ago

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 commented 1 month ago

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