vs code: invalid NCS installation v2.3.0

I've installed the

  • nRF Command Line Tools (v10.21.0 x64)
  • nRF Connect for Desktop (v4.0.1)
  • nRF Connect SDK v2.3.0 in the Toolchain Manager (v1.2.4)
  • the VS Code Extension: nRF Connect for VS Code Extension pack (v2022.9.6)

as shown in this video (https://www.youtube.com/watch?v=zcMCaODyISo) and this instruction (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/getting_started/assistant.html) without errors or problems.

Now when I start VS Code and go to the "Welcome to nRF Connect for VS Code" page, I cant select the nRF Connect SDK. It doesn't appear in the dropdown list, and when I browse it manually, I get the error message "Invalid NCS Installation". However, the nRF Connect Toolchain does appear in the dropdown menu.

I also searched this error and found this:  vs code: invalid NCS installation

But my problem seems to be different from that. The solution to this made no change to my problem. Also I dont get the message in the bash that my "NCS repositories are not yet cloned here". But when I try to run "ncsmgr init-ncs" it says "command not found". Is it because of the versions of the SDK are different and there are new commands out now?

I also tried to install everything on a different machine and got the exactly same problem.

Parents
  • UPDATE:

    I forgot to mention that the folders in C:\ncs indicated that the installation failed somehow.

    In directory C:\ncs\toolchains\v2.3.0 where other folders and data with 1,09GB (\bin, \cmake, \cmd, \dev [...])

    However, in C:\ncs\v2.3.0 was only the empty folder ..\.west

    I tried out installing the older version nRF Connect SDK v2.1.0 and got the exactly same error again. After installing back the v2.3.0 version C:\ncs\v2.3.0 wasn't empty anymore and contained 2,66GB of Data in the structure \.west, \bootloader, \modules [...]

    After this I finally could select the nRF Connect SDK in vs code. But I have no idea why it only worked on the fourth try, even on a different PC/system! All in one I spend 5 hours of research and it started to work now randomly after third re-installation.

Reply
  • UPDATE:

    I forgot to mention that the folders in C:\ncs indicated that the installation failed somehow.

    In directory C:\ncs\toolchains\v2.3.0 where other folders and data with 1,09GB (\bin, \cmake, \cmd, \dev [...])

    However, in C:\ncs\v2.3.0 was only the empty folder ..\.west

    I tried out installing the older version nRF Connect SDK v2.1.0 and got the exactly same error again. After installing back the v2.3.0 version C:\ncs\v2.3.0 wasn't empty anymore and contained 2,66GB of Data in the structure \.west, \bootloader, \modules [...]

    After this I finally could select the nRF Connect SDK in vs code. But I have no idea why it only worked on the fourth try, even on a different PC/system! All in one I spend 5 hours of research and it started to work now randomly after third re-installation.

Children
  • Hi,

    Really sorry that you had to go through this, but such faulty installations have been reported due to various reasons like network issue, etc. Also, there was an issue with the latest release of VSCode extension and a fix was released just yesterday evening. So that could also have been the issue. Glad that you were able to get it to work. Slight smile I will anyhow report this internally. Thank you very much.

    Best Regards,

    Priyanka

Related