VS Code can't clone nrf connect SDK

I am learning development with nrf connect sdk. I installed vs code and in vs code downloaded the nrf connect for vs code extension pack, everything downloads well. On the nrf connect extension menu I go to download toolchain and the toolchain installs okay. but then downloading SDK always throws this error.

The error codes are as follows

 

[00:39:13] Command failed: west init -m https://github.com/nrfconnect/sdk-nrf --mr v2.4.2
Cloning into 'c:\ncs\v2.4.2\.west\manifest-tmp'...
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 4674 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
FATAL ERROR: command exited with status 128: git clone --branch v2.4.2 https://github.com/nrfconnect/sdk-nrf 'c:\ncs\v2.4.2\.west\manifest-tmp'

Please help I am stuck on this for 2 days now.
Thanks in advance.

Parents
  • Hi there,

    quick search on the net showed the http/2 might be the problem or the post buffer of git not beeing big enough. Also if on VPN try turning it off. As I dont know how to change the settings of git within VSCode, I cant help you there.

    But you could just clone the repo (or download it by hand) and then tell NRF Connect where you downloaded it:

    - Open Extension
    - Click on Manage SDK
    - Set Active SDK
    - Enter directory or choose from dropdown.

    Hope that helps.

Reply
  • Hi there,

    quick search on the net showed the http/2 might be the problem or the post buffer of git not beeing big enough. Also if on VPN try turning it off. As I dont know how to change the settings of git within VSCode, I cant help you there.

    But you could just clone the repo (or download it by hand) and then tell NRF Connect where you downloaded it:

    - Open Extension
    - Click on Manage SDK
    - Set Active SDK
    - Enter directory or choose from dropdown.

    Hope that helps.

Children
Related