Guiconfig fails to launch in VScode

Hello,

When I run the guiconfig from VScode, it shows this error message:

"

* Executing task in folder peripheral_uart: west build -d d:\Works\peripheral_uart\build -t guiconfig


* The terminal process failed to launch: Path to shell executable "cmd" is not a file or a symlink.

"

I have set the cmd path in VSCode for "terminal.integrated.profiles.windows":

       "Command Prompt": {
            "path": [
                "C:\\Windows\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
So how to solve this error?
Thanks
Parents Reply Children
  • Hi,

    I have changed my setting.json and now the file is the following:

    {
        "nrf-connect.enableTelemetry": false,
        "window.zoomLevel": 1,
        "files.autoSave": "afterDelay",
        "git.openRepositoryInParentFolders": "never",
        "diffEditor.hideUnchangedRegions.enabled": true,
        "cmake.showOptionsMovedNotification": false,
        "terminal.integrated.defaultProfile.windows": "nRF Connect",
    }
    but the situation is the same as before.
    Perhaps I have not understood exactly your suggestion: could you be more precise?
    Thank you
  • Hi,

    You have only one "nrf-connect" line. It seems that some "nrf-connect" lines related to sdk and toolchain are missing.
    Can you share the content of the file which you get when (in VS Code) you press CTRL+SHIFT+P, type "Preferences: Open User Settings (JSON)" and choose this option (which is probably the first in the drop-down list)?

    Best regards,
    Dejan

  • Hi, here is the content of the file (last time I sent a partial version of it):

    {
        "nrf-connect.enableTelemetry": false,
        "window.zoomLevel": 1,
        "files.autoSave": "afterDelay",
        "git.openRepositoryInParentFolders": "never",
        "diffEditor.hideUnchangedRegions.enabled": true,
        "cmake.showOptionsMovedNotification": false,
        "terminal.integrated.defaultProfile.windows": "nRF Connect",
        "terminal.integrated.profiles.windows": {

            "PowerShell": {
                "source": "PowerShell",
                "icon": "terminal-powershell"
            },
            "Command Prompt": {
                "path": [
                    "${env:windir}\\Sysnative\\cmd.exe",
                    "${env:windir}\\System32\\cmd.exe"
                ],
                "args": [],
                "icon": "terminal-cmd"
            },
            "Git Bash": {
                "source": "Git Bash"
            }
        },
    }
  • Hi,

    Could you check if you installed nRF Connect SDK (NCS) and toolchain properly?
    For information how to install nRF Connect SDK, you can look at installation page and installation instructions.

    Best regards,
    Dejan

  • Yes, nRF Connect SDK (NCS) and toolchain are installed properly.

    Manage SDK v.2.5.1

    Toolchain v2.5.1

Related