nRF Connect Extension for VS Code Unable to run most commands

While following the "nRF Connect SDK Fundamentals" tutorial, my nRF Connect extension fails on the "Install Toolchain" step with error command 'nrf-connect.installToolchain' not found. I'm able to circumvent for now by using nRF Connect for Desktop and installing the toolchain with its Toolchain Manager, but still troubling that none of the commands seem to work directly from the VS Code nRF Connect extension. Nearly all nRF Connect commands similarly fail from VS Code including "Install SDK", "Manage Toolchains", "Check nRF Command Line Tools Update".

Any help to resolve would be greatly appreciated!

My setup:

  • Windows 10 64bit PC
  • VS Code v1.86.1
  • nRF Connect for VS Code Extension pack v2023.11.3
  • nRF Command Line tools v10.24.0
  • I'm afraid I can only report what does not work so far as everything I've tried doesn't not seem to work. Here is are the steps I most recently took:

    1. Uninstall nRF for Desktop
    2. Delete ncs folder and its contents
    3. Uninstall nRF Connect for VS Code Extension Pack in VS Code
    4. Delete C:\Users\username\.nrfconnect.apps folder
    5. Delete all Nordic related folders in C:\Users\username\.vscode
    6. Install nRF Connect for Desktop 4.4.0
    7. Install nRF Connect for VS Code Extension Pack in VS Code
    8. nRF Connect for VS Code extension reports as not activated
    9. from nRF Connect for Desktop install Toolchain Manager
    10. nRF Connect for VS Code extension still reports as not activated and none of the nRF related commands in VS Code ("Install Toolchain", "Manage Toolchains, "Install SDK") work via button press or Command Palette  

    I also tried steps 1-5 and then starting by only installing the nRF Connect for VS Code Extension Pack in VS Code. This is in-line with the steps to install v2.x.x SDK in the "nRF Connect SDK Fundamentals" tutorial, Lesson 1 Exercise 1.  This also resulted in the results of step 10 where none of the extension commands work in VS Code. This is especially frustrating in that nothing in VS Code nRF Connect for FS Code works properly with a clean install. It seems that something installed during the many failed attempts to get this extension to work properly in VS Code is still lurking somewhere on my PC and interfering with proper operation. 

  • Hi,

    Could you try one more thing?

    1. Click on Help → Toggle Developer Tools (and then select Console, if that is not already open)
    2. In the command palette execute “Developer: Reload Window”
    3. Select “Manage Toolchains” again, to trigger the error notification.
    4. See whether any additional output appears in the developer console, which might tell us anything about why the extension did not activate correctly.

    This might tell us more about what the problem is.

    Regards,

    Priyanka

  • Hi Priyanka,

    When I select Install Toolchain, the Developer Tools log that it is failing to find C:\Program Files\SEGGER\JLink_V794h. I currently have V794e. Interestingly, you can only currently download V794k and V794l from Segger.

  • Hi Travis,

    Thank you very much. It's really helpful and we are looking into this. I checked the SEGGER J-Link site and surprisingly I could only find the v7.94m,l and k versions. We will check into this and keep you updated.

    Regards,

    Priyanka

  • Hi Travis,

    Could you check your windows registry and in case it contains incorrect entry, please fix it:
    HKEY_LOCAL_MACHINE\\Software\\SEGGER\\J-Link 

    Also, you seem to have a .west folder in the C:\NCS . Please remove this as it is wrong and it's preventing the SDKs within this path from functioning properly.

    Regards,

    Priyanka

Related