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

[Feature Request]: Have Parity with circtuitpython.org for board selection #121

Open
rcarteraz opened this issue May 16, 2023 · 4 comments

Comments

@rcarteraz
Copy link

It appears there are a vast number of CP supported boards missing from the options when selecting a board with the extension. It would be ideal if the extension had parity with circuitpython.org for board selection.

@wmerkens
Copy link

Try this to update the boards in the ext (Done from Linux)

Use git and pull this repo and then go into the downloaded files, vscode-circuitpython/scripts

Then in the scripts directory, go and edit build-stubs.sh and at the bottom, rem out " rm -rf stubs/board" and run the script it will rebuild stubs/boards. then go replace it in .vscode/extensions/joedevivo.vscode-circuitpython-0.1.19-linux-x64/ the boards/stubs folders with the newly created one then this will go away.

Also, if the date in the path line in settings.json does not match the current bundle, you will get this problem, correct the date or erase .vscode and if you have a workplace file, erase it and let it all be rebuilt will, correct it for a bad date scenario

@rcarteraz
Copy link
Author

Try this to update the boards in the ext (Done from Linux)

Use git and pull this repo and then go into the downloaded files, vscode-circuitpython/scripts

Then in the scripts directory, go and edit build-stubs.sh and at the bottom, rem out " rm -rf stubs/board" and run the script it will rebuild stubs/boards. then go replace it in .vscode/extensions/joedevivo.vscode-circuitpython-0.1.19-linux-x64/ the boards/stubs folders with the newly created one then this will go away.

Also, if the date in the path line in settings.json does not match the current bundle, you will get this problem, correct the date or erase .vscode and if you have a workplace file, erase it and let it all be rebuilt will, correct it for a bad date scenario

I’m not using Linux, will this work on macOS?

@wmerkens
Copy link

I am not sure since I am not on a Mac, but if you have Python installed and git installed and access to bash shell then possibly.

@danyeaw
Copy link

danyeaw commented Oct 1, 2023

This does work with macOS as well, thanks for the hint @wmerkens!

One solution to this might be to do a monthly release of the extension so that it always has the latest boards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants