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 Reply Children
  • I tried with the toolchain manager but no luck, same error occurs. It stops at the  west init -m github.com/.../sdk-nrf --mr v2.4.2 as shown in the video that you just shared.

  • Is it possible that someone else download this for and then make a zip file of the ncs folder and share with me. and I then extract the file in my C:\ folder, will this work with VS code nrf connect extension?

  • This is what I get when trying with toolchain manager from nrf connect desktop.


  • Hi Syed, 
    We don't provide the .zip file for NCS and most likely you will need to install other dependencies to be able to use it. 
    I have forwarded the issue to our team, I will let you know if we find anything. 
    Could you please send us the full log on the step by step manual installation that you have done until you see the error.

    Have you tried to do installing from another network ? 

  • I followed the same method as shown in https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/getting_started/installing.html link. I have and the error occurs at the line 

    west init -m https://github.com/nrfconnect/sdk-nrf --mr v2.3.0


    before this all the steps went smooth with no errors at all. When this command is executed it starts and reaches to the line Receiving objects and then after downloading something like 30 MBs ends with the error that I initially posted.


    I borrowed another friend PC remotely for sometime and downloaded SDK with VS code and it worked without errors, the network is different and also it has windows 11 while on my pc I have windows 10.

    
    

    Hope that helps in finding the cause of the problem.

     
Related