joedevivo / vscode-circuitpython

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

libraryManager.js needs to be updated to include new CircuitPython 8.x bundle #107

Open bflick81 opened 1 year ago

bflick81 commented 1 year ago

I just installed this VS Code extension and connected my Adafruit Feather ESP32-S3 TFT board. It works well for everything, but the board is only supported by CircuitPython v8 and the extension is not setup to handle this bundle by default.

I was able to fix this quite easily by updating the libraryManager.js file for the extension and adding the suffix '8.x-mpy' on line 352. After this update, I removed the previously downloaded bundles and when the extension fetched them again it included v8 and the libraries matched properly, too.

Excellent work on the extension to make much of it dynamic to support this change. Perhaps the CircuitPython bundles could be split out into a configurable variable instead? I am not an extension developer, so I don't know what the best long-term solution would be. A simple code edit is all I request here.