Kconfig GUI fails to open in VSCode on Linux and Windows

i am using vscode + nrf connect for vscode , nrf kconfig, ... on different machines, windows (11)  and linux (ubuntu current lts)

i often had the problem that nrf kconfig didn't open. now i tried to narrow it down.

i cloned the same projects in a workspace folder on a) windows and b) linux

i had tried some differently named builds but at the end only used "build"

on windows one of the projects in the workspace (2.6.0 / 2.6.0) allowed to open kconfig gui, but that didn't work for all projects -> kconfig gui can work on that machine

on linux none of the projects in the workspace (2.6.0 / 2.6.0) allowed to open kconfig gui, anyway kconfig gui worked on that machine in other workspaces -> kconfig gui can work on that machine

on linux:

 

on windows:

error looks the same on linux and windows

the vscode logs are not really helpfull. the only related info is :

- C:\Users\user\AppData\Roaming\Code\logs\20240323T145841\window1\exthost\exthost.log

2024-03-23 15:07:50.158 [error] Error: Exception: "expected string or bytes-like object"
    at Pt (c:\Users\user\.vscode\extensions\nordic-semiconductor.nrf-kconfig-2024.3.21\dist\extension.js:4:223)
    at xn (c:\Users\user\.vscode\extensions\nordic-semiconductor.nrf-kconfig-2024.3.21\dist\extension.js:3:11254)
    at Immediate.<anonymous> (c:\Users\user\.vscode\extensions\nordic-semiconductor.nrf-kconfig-2024.3.21\dist\extension.js:3:11104)
    at process.processImmediate (node:internal/timers:476:21)
    at process.callbackTrampoline (node:internal/async_hooks:130:17)


- C:\Users\user\AppData\Roaming\Code\logs\20240323T145841\window1\exthost\output_logging_20240323T145842\3-Kconfig.log

[Info  - 3:07:48 PM] Server starting
[Info  - 3:07:48 PM] workspaceFolders: [{'uri': 'file:///c%3A/code/workspace-nordic_26_', 'name': 'workspace-nordic_26_'}]

  • Hello,

    Is your environment set up in VS Code?

    Does the "Manage toolchains" and "Manage SDKs" show the correct NCS version that you are working on?

    What happens when you try to click the "nRF Kconfig GUI" close to the bottom of the menu?

    Best regards,

    Edvin

  • the setup seems to be ok

    when i click on 

    a popup appears in the lower right 

  • I will have to run it by our nRF Connect for Desktop team. I will let you know as soon as I know more.

    Best regards,

    Edvin

  • Hello,

    Can you please try to generate support information? There should be a button close to the top of the nRF Connect for VS Code plugin:

    And paste it here.

    Best regards,

    Edvin

  • i redacted the project names

    i recently updated the windows nordic desktop stuff.

    on windows on that day the kconfig gui worked. not sure if this is related or random

    IMPORTANT: The data below could contain sensitive or confidential information about your environment.
    If you do not wish this to be seen by others, please make sure to remove it before sharing.

    For help and support, visit the Nordic DevZone at devzone.nordicsemi.com/.

    {
    "platform": {
    "os": "linux",
    "osVersion": "#111-Ubuntu SMP Tue Mar 5 20:16:58 UTC 2024",
    "osKernel": "5.15.0-101-generic",
    "vscode": "1.87.2",
    "electron": "27.3.2",
    "node": "v18.17.1"
    },
    "system": {
    "date": "2024-04-02T13:58:05.352Z",
    "vscodeRoot": "/usr/share/code/resources/app",
    "nrfConnectForDesktopInstalled": "unknown",
    "vscodeUptime": "00:00:58",
    "osUptime": "00:02:05",
    "cpu": "Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz"
    },
    "workspace": {
    "name": "workspace-nordic_26_ (Workspace)",
    "workspaceFile": "/home/user/workspace-nordic_26_/workspace-nordic_26_.code-workspace",
    "folders": [
    "/home/user/workspace-nordic_26_"
    ]
    },
    "sdks": [
    {
    "version": "v2.6.0",
    "path": "/home/user/ncs/v2.6.0"
    },
    {
    "version": "v2.5.2",
    "path": "/home/user/ncs/v2.5.2"
    },
    {
    "version": "v2.4.2",
    "path": "/home/user/ncs/v2.4.2"
    },
    {
    "version": "v2.4.1",
    "path": "/home/user/ncs/v2.4.1"
    },
    {
    "version": "v2.3.0",
    "path": "/home/user/ncs/v2.3.0"
    },
    {
    "version": "v3.6.99",
    "path": "/home/user/zephyrproject"
    }
    ],
    "activeBuild": "/home/user/workspace-nordic_26_/redacted2/build",
    "apps": [
    {
    "workspace": "/home/user/workspace-nordic_26_",
    "uri": "/home/user/workspace-nordic_26_/redacted0",
    "buildConfigurations": [
    {
    "id": "/home/user/workspace-nordic_26_/redacted0/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160_ns",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/user/workspace-nordic_26_",
    "uri": "/home/user/workspace-nordic_26_/redacted1",
    "buildConfigurations": [
    {
    "id": "/home/user/workspace-nordic_26_/redacted1/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160_ns",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    },
    {
    "workspace": "/home/user/workspace-nordic_26_",
    "uri": "/home/user/workspace-nordic_26_/redacted2",
    "buildConfigurations": [
    {
    "id": "/home/user/workspace-nordic_26_/redacted2/build",
    "name": "build",
    "boardId": "nrf9160dk_nrf9160_ns",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    }
    ],
    "topdir": "/home/user/ncs/v2.6.0",
    "workspaceState": "freestanding-ready",
    "toolchains": [
    {
    "version": "2.6.0",
    "path": "/home/user/ncs/toolchains/2be090971e"
    },
    {
    "version": "2.5.2",
    "path": "/home/user/ncs/toolchains/7795df4459"
    },
    {
    "version": "2.4.2",
    "path": "/home/user/ncs/toolchains/1f9b40e71a"
    },
    {
    "version": "2.4.1",
    "path": "/home/user/ncs/toolchains/1f9b40e71a"
    },
    {
    "version": "2.3.0",
    "path": "/home/user/ncs/toolchains/v2.3.0"
    }
    ],
    "connectedDevices": [],
    "deviceProvider": "nrfutil",
    "tools": {
    "/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.5",
    "/opt/SEGGER/JLink/JLinkExe": "7.92d",
    "/usr/local/bin/nrfjprog": "10.24.0",
    "nrfutil": "Not found",
    "/home/user/ncs/toolchains/2be090971e/usr/local/bin/cmake": "3.21.0",
    "/home/user/ncs/toolchains/2be090971e/usr/local/bin/west": "1.2.0",
    "/home/user/ncs/toolchains/2be090971e/usr/local/bin/python3": "3.9.18",
    "/home/user/ncs/toolchains/2be090971e/usr/local/bin/ninja": "1.10.2",
    "/home/user/ncs/toolchains/2be090971e/usr/bin/gperf": "3.1",
    "/home/user/ncs/toolchains/2be090971e/usr/bin/dtc": "1.5.0",
    "/home/user/ncs/toolchains/2be090971e/opt/bin/gn": "2132",
    "/home/user/ncs/toolchains/2be090971e/usr/local/bin/git": "2.37.3",
    "gdbPath": "/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
    },
    "nrfutil": {
    "nrfutil-device": {
    "version": "2.0.0",
    "binPath": "/home/user/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-linux-x64/platform/nrfutil/bin/nrfutil-device"
    },
    "nrfutil-toolchain-manager": {
    "version": "0.14.1",
    "binPath": "/home/user/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-linux-x64/platform/nrfutil/bin/nrfutil-toolchain-manager"
    }
    },
    "environment": {
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "GIT_EXEC_PATH": "/home/user/ncs/toolchains/2be090971e/usr/local/libexec/git-core",
    "HOME": "/home/user",
    "PATH": "/home/user/ncs/toolchains/2be090971e/usr/bin:/home/user/ncs/toolchains/2be090971e/usr/bin:/home/user/ncs/toolchains/2be090971e/usr/local/bin:/home/user/ncs/toolchains/2be090971e/opt/bin:/home/user/ncs/toolchains/2be090971e/opt/nanopb/generator-bin:/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin:/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/home/user/.pyenv/shims:/home/user/bin:/home/user/google-cloud-sdk/bin:/home/user/.sdkman/candidates/gradle/current/bin:/home/user/.cargo/bin:/home/user/.pyenv/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/.dotnet/tools:/home/user/.local/share/JetBrains/Toolbox/scripts:/home/user/opt/SEGGER_Jlink/:/home/user/opt/nrf-command-line-tools/bin/:/usr/local/go/bin:/home/user/.dotnet:/home/user/.dotnet/tools:/home/user/.dotnet/tools:/home/user/.local/share/JetBrains/Toolbox/scripts:/home/user/opt/SEGGER_Jlink/:/home/user/opt/nrf-command-line-tools/bin/:/usr/local/go/bin:/home/user/.dotnet:/home/user/.dotnet/tools:/home/user/.pyenv/shims:/home/user/bin:/home/user/google-cloud-sdk/bin:/home/user/.sdkman/candidates/gradle/current/bin:/home/user/.cargo/bin:/home/user/.pyenv/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/.dotnet/tools:/home/user/.local/share/JetBrains/Toolbox/scripts:/home/user/opt/SEGGER_Jlink/:/home/user/opt/nrf-command-line-tools/bin/:/usr/local/go/bin:/home/user/.dotnet:/home/user/.dotnet/tools:/home/user/.dotnet/tools:/home/user/.local/share/JetBrains/Toolbox/scripts:/home/user/opt/SEGGER_Jlink/:/home/user/opt/nrf-command-line-tools/bin/:/usr/local/go/bin:/home/user/.dotnet:/home/user/.dotnet/tools",
    "ZEPHYR_BASE": "/home/user/ncs/v2.6.0/zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk",
    "PYTHONPATH": "/home/user/ncs/toolchains/2be090971e/usr/local/lib/python3.9:/home/user/ncs/toolchains/2be090971e/usr/local/lib/python3.9/site-packages",
    "USER": "user"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "/home/user",
    "PATH": "/home/user/.pyenv/shims:/home/user/bin:/home/user/google-cloud-sdk/bin:/home/user/.sdkman/candidates/gradle/current/bin:/home/user/.cargo/bin:/home/user/.pyenv/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/.dotnet/tools:/home/user/.local/share/JetBrains/Toolbox/scripts:/home/user/opt/SEGGER_Jlink/:/home/user/opt/nrf-command-line-tools/bin/:/usr/local/go/bin:/home/user/.dotnet:/home/user/.dotnet/tools:/home/user/.dotnet/tools:/home/user/.local/share/JetBrains/Toolbox/scripts:/home/user/opt/SEGGER_Jlink/:/home/user/opt/nrf-command-line-tools/bin/:/usr/local/go/bin:/home/user/.dotnet:/home/user/.dotnet/tools",
    "USER": "user"
    },
    "toolchainPath": "/home/user/ncs/toolchains/2be090971e",
    "toolchainBinPath": "/home/user/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin",
    "toolchainVersion": "2.6.0"
    },
    "terminal": {
    "defaultProfile": null
    },
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "${nrf-connect.sdk:2.6.0}",
    "toolchain": {
    "path": "${nrf-connect.toolchain:2.6.0}"
    },
    "ozonePath": "",
    "applications": [
    "${workspaceFolder}/redacted0",
    "${workspaceFolder}/redacted1",
    "${workspaceFolder}/redacted2"
    ],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig"
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "buildTerminal": {
    "condensedProgress": true
    },
    "debugging": {
    "flash": true,
    "bindings": {},
    "justMyCode": true
    },
    "activeAppFollowActiveEditor": true,
    "deviceProvider": "",
    "flash": {
    "softreset": false,
    "erase": false,
    "recover": false
    },
    "enableTelemetry": false,
    "thirdpartyIntegration": {},
    "toolchainManager": {
    "indexURL": null,
    "installDirectory": null
    },
    "nrfutil": {
    "home": null
    },
    "defaultOpenAction": "ask",
    "welcome": {
    "showOnStartup": true
    }
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    },
    "marus25.cortex-debug": {
    "variableUseNaturalFormat": true,
    "liveWatchRefreshRate": "300",
    "armToolchainPath": null,
    "armToolchainPrefix": "arm-none-eabi",
    "gdbPath": null,
    "objdumpPath": null,
    "JLinkGDBServerPath": null,
    "openocdPath": null,
    "pyocdPath": null,
    "PEGDBServerPath": null,
    "stutilPath": null,
    "stlinkPath": null,
    "stm32cubeprogrammer": null,
    "enableTelemetry": true,
    "dbgServerLogfile": null
    }
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2024.3.25",
    "path": "/home/user/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-linux-x64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2024.3.15",
    "path": "/home/user/.vscode/extensions/nordic-semiconductor.nrf-terminal-2024.3.15",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2024.3.78",
    "path": "/home/user/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2024.3.78",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2024.3.21",
    "path": "/home/user/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2024.3.21",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": "1.12.1",
    "ms-vscode.cpptools": "1.19.9",
    "ms-vscode.js-debug": "1.87.0",
    "ms-vscode.js-debug-companion": "1.1.2",
    "ms-vscode.vscode-js-profile-table": "1.0.8",
    "atlassian.atlascode": "3.0.10",
    "bmd.stm32-for-vscode": "3.2.6",
    "dan-c-underwood.arm": "1.7.4",
    "donjayamanne.python-environment-manager": "1.2.4",
    "humao.rest-client": "0.25.1",
    "lextudio.restructuredtext": "189.3.0",
    "marp-team.marp-vscode": "2.8.0",
    "mcu-debug.debug-tracker-vscode": "0.0.15",
    "mcu-debug.memory-view": "0.0.25",
    "mcu-debug.peripheral-viewer": "1.4.6",
    "mcu-debug.rtos-views": "0.0.7",
    "ms-azuretools.azure-dev": "0.8.1",
    "ms-azuretools.vscode-azureserverlesspack": "0.1.1",
    "ms-azuretools.vscode-bicep": "0.26.54",
    "ms-dotnettools.csdevkit": "1.4.29",
    "ms-dotnettools.csharp": "2.22.5",
    "ms-dotnettools.dotnet-maui": "0.9.7",
    "ms-dotnettools.vscode-dotnet-runtime": "2.0.3",
    "ms-dotnettools.vscodeintellicode-csharp": "0.1.26",
    "ms-python.debugpy": "2024.2.0",
    "ms-python.python": "2024.2.1",
    "ms-vscode-remote.remote-containers": "0.348.0",
    "ms-vscode-remote.remote-ssh": "0.109.0",
    "ms-vscode-remote.remote-ssh-edit": "0.86.0",
    "ms-vscode-remote.remote-wsl": "0.86.0",
    "ms-vscode-remote.vscode-remote-extensionpack": "0.25.0",
    "ms-vscode.azurecli": "0.6.0",
    "ms-vscode.cpptools-extension-pack": "1.3.0",
    "ms-vscode.cpptools-themes": "2.0.0",
    "ms-vscode.remote-explorer": "0.4.3",
    "ms-vscode.remote-repositories": "0.40.0",
    "ms-vscode.remote-server": "1.5.1",
    "msazurermtools.azurerm-vscode-tools": "0.15.11",
    "redhat.vscode-yaml": "1.14.0",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "vsls-contrib.codetour": "0.0.59"
    }
    }
    }

Related