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

build-stubs.sh needs to be updated #148

Open
wmerkens opened this issue May 29, 2024 · 1 comment
Open

build-stubs.sh needs to be updated #148

wmerkens opened this issue May 29, 2024 · 1 comment

Comments

@wmerkens
Copy link

wmerkens commented May 29, 2024

The build-stubs.sh script needs to be updated to the newer method of setting up the circuitpython repo download from git.

The current script would have you do the following.

    git clone --depth 1 --branch main https://github.com/adafruit/circuitpython.git

    cd circuitpython
    git submodule init
    git submodule update extmod/ulab

This will cause the stubs not to build properly due to the way certain parts are not retrieved correctly.

circuitpython has changed the way they deal with submodules, and they don't use the git submodule options.

Instead, they now use a Makefile system, so the top lines of the script need to change.

    git clone https://github.com/adafruit/circuitpython.git
    
    cd circuitpython
    git checkout 9.2.0  # release version of circuitpython
    
    # use the make commands instead of the git commands
    make fetch-all-submodules

This takes longer, but you will get correctly built stubs and boards now.

@freedomlives
Copy link

I notice that @joedevivo hasn't touched this repository in 9 months. Probably someone should ask to collaborate with him, or just fork and make a new version of the extension.

trolleyman added a commit to trolleyman/vscode-circuitpython that referenced this issue Nov 18, 2024
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

2 participants