vs code: NCS invalid installation 1.9.1

Hi, 

I Have installed NRF command line tools from here and nrf connect for desktop from here, I'm using win-10 64 bit, all the installation is complete but when i open vs code in the welcome page i keep getting the NCS INVALID INSTALLATION error

The ncs folder contains these sub folders and i'm trying to select v1.9.1 as the sdk

also 1.9.1 is the latest version available in the tool chain manager

  • Hi,

    2023.7.129, is the newest version of the extension which I'm using. I don't think the issue lies here. Below is my VS Code version, does this correspond to your version?

    VS Code version:
    Version: 1.77.3 (user setup)
    Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
    Date: 2023-04-12T09:16:02.548Z
    Electron: 19.1.11
    Chromium: 102.0.5005.196
    Node.js: 16.14.2
    V8: 10.2.154.26-electron.0
    OS: Windows_NT x64 10.0.19045
    Sandboxed: No

    1. Have you also attempted to update and/or reinstall VS Code?
    aditi26 said:
    would like to mention that I have installed the extension manually as the install missing extensions was not working, but I have made sure all the extensions are installed, does that cause any problem

    I suspect that the problem lies here, and that the toolchain manager does not know the paths it should know. You might have to add something to PATH to set it up properly if you've installed some things manually and some things automatically

    Could you open VS Code and the command palate and generate support information and post the output in a code box here?

    1. Open VS Code
    2. Ctrl + Shift + p
    3. Enter "generate support information"

    Kind regards,
    Andreas

  • Hi,

    I updated the vs code and the extensions, still I am facing the issue

    Below is the support information generated as you said,

    {
    "platform": {
    "os": "win32",
    "osVersion": "Windows 10 Enterprise",
    "osKernel": "10.0.19045",
    "vscode": "1.81.1",
    "electron": "22.3.18",
    "node": "v16.17.1"
    },
    "system": {
    "date": "2023-08-29T09:48:57.820Z",
    "vscodeRoot": "c:\\Users\\ADIE1KOR\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:04:49",
    "osUptime": "05:30:26",
    "cpu": {
    "model": "11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz",
    "speed": "2611 MHz",
    "count": 4
    },
    "memory": {
    "total": "15.71 GB",
    "free": "6.11 GB"
    }
    },
    "workspace": {
    "name": null,
    "workspaceFile": null,
    "folders": []
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2023.7.129",
    "path": "c:\\Users\\ADIE1KOR\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.7.129-win32-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2023.7.47",
    "path": "c:\\Users\\ADIE1KOR\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2023.7.47",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2023.7.56",
    "path": "c:\\Users\\ADIE1KOR\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2023.7.56",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2023.6.51",
    "path": "c:\\Users\\ADIE1KOR\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2023.6.51",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": null,
    "ms-vscode.cpptools": "1.17.5",
    "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
    "ms-vscode.js-debug": "1.81.0",
    "ms-vscode.js-debug-companion": "1.1.2",
    "ms-vscode.vscode-js-profile-table": "1.0.3",
    "formulahendry.code-runner": "0.12.0",
    "ms-python.python": "2023.14.0",
    "ms-python.vscode-pylance": "2023.8.40",
    "ms-vscode.cmake-tools": "1.15.31",
    "ms-vscode.cpptools-extension-pack": "1.3.0",
    "ms-vscode.cpptools-themes": "2.0.0",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17"
    }
    },
    "tools": {
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\arm-none-eabi-gcc.exe": "9.2.1",
    "C:\\Program Files\\SEGGER\\JLink\\JLink.exe": "7.92a",
    "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.23.0",
    "nrfutil": "Not found",
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\cmake.exe": "3.20.5",
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts\\west.exe": "0.12.0",
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\python.exe": "3.8.2",
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\ninja.exe": "1.9.0",
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gperf.exe": "3.1",
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\dtc.exe": "1.4.7",
    "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\gn.exe": "1977",
    "c:\\ncs\\v1.9.1\\toolchain\\mingw64\\bin\\git.exe": "2.26.2.windows.1",
    "gdbPath": "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\arm-none-eabi-gdb.exe"
    },
    "sdks": [],
    "toolchains": [
    {
    "version": "1.9.1",
    "path": "c:\\ncs\\v1.9.1\\toolchain"
    }
    ],
    "connectedDevices": [],
    "deviceProvider": "nrfutil",
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "",
    "toolchain": {
    "path": "${nrf-connect.toolchain:1.9.1}"
    },
    "ozonePath": "",
    "applications": [],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig",
    "executeInDefaultShell": false
    },
    "welcome": {
    "showOnStartup": false
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "debugging": {
    "flash": true,
    "bindings": {}
    },
    "activeAppFollowActiveEditor": true,
    "deviceProvider": "nrfutil"
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    }
    },
    "environment": {
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "C:\\Users\\ADIE1KOR",
    "HOMEDRIVE": "U:",
    "HOMEPATH": "\\",
    "PATH": "c:\\ncs\\v1.9.1\\toolchain\\mingw64\\bin;c:\\ncs\\v1.9.1\\toolchain\\mingw64\\libexec\\git-core;c:\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Scripts;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\RedHat\\java-1.8.0-openjdk\\missioncontrol\\;C:\\Program Files\\RedHat\\java-1.8.0-openjdk\\webstart\\;C:\\Program Files\\RedHat\\java-1.8.0-openjdk\\bin;C:\\Program Files\\RedHat\\java-1.8.0-openjdk\\jre\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\7-Zip;C:\\Users\\ADIE1KOR\\Downloads\\CTOOLS\\mingw32\\bin;C:\\Program Files (x86)\\RedHat\\java-1.8.0-openjdk\\webstart\\;C:\\Program Files (x86)\\RedHat\\java-1.8.0-openjdk\\bin;C:\\Program Files (x86)\\RedHat\\java-1.8.0-openjdk\\jre\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\ADIE1KOR\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\ADIE1KOR\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
    "GNUARMEMB_TOOLCHAIN_PATH": "c:\\ncs\\v1.9.1\\toolchain\\opt",
    "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
    "PYTHONPATH": "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin;c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib;c:\\ncs\\v1.9.1\\toolchain\\opt\\bin\\Lib\\site-packages",
    "Python3_ROOT": "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "C:\\Users\\ADIE1KOR",
    "HOMEDRIVE": "U:",
    "HOMEPATH": "\\",
    "Path": "C:\\Windows\\system32;C:"
    },
    "toolchainPath": "c:\\ncs\\v1.9.1\\toolchain",
    "toolchainBinPath": "c:\\ncs\\v1.9.1\\toolchain\\opt\\bin",
    "toolchainVersion": "1.9.1"
    },
    "terminal": {
    "defaultProfile": null
    }
    }

  • Hi,

    aditi26 said:
    would like to mention that I have installed the extension manually as the install missing extensions was not working, but I have made sure all the extensions are installed, does that cause any problem

    I think we need to go back to this step as I am out of suggestions other than to remove everything and try installing again. Using Windows 10, it should not be necessary to install the missing extension that was not working.

    The support information does not give any other hints than to verify that the installation does not know where you've added your SDK installations

    1. Uninstall and remove any NCS installations from your NCS directory
    2. Uninstall and remove the extension and any other Nordic extensions from VS Code
    3. Uninstall and remove NRF Connect for Desktop and all the tools in the
      1. Optionally you can try to install it once again here and see if this resolves the issue
    4. Uninstall and remove nRF Command Line Tools
    5. Follow https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/installation/assistant.html once more
    6. Let me know about the progress after installing the Toolchain Manager. Do you now see newer versions of NCS?

    Kind regards,
    Andreas

Related