VS Code Was Not Detected M1 Mac

Current Configuration:
nrfjprog version: 10.21.0 external
JLinkARM.dll version: 7.88m

nRF Connect For Desktop:
v4.2.1

ToolChain Manager:
v1.2.6

nRF SDK:
v2.5.0

VSCode version from code -v :
1.83.1
f1b07bd25dfad64b0167beb15359ae573aecd2cc
arm64

VSCode Extension nRF Connect For Desktop:
v2023.10.49

Host:
arm64-apple-darwin23.0.0

OS:
v14.0

PATH was updated in the ~/.zprofile as:
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"


# ISSUE:

I can not open VS Code from nRF Connect For Desktop -> Tool Chain Manager -> Open VS Code



Any idea what might be wrong here?

Parents Reply Children
  • This is what I receive:

    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": "darwin",
    "osVersion": "Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000",
    "osKernel": "23.0.0",
    "vscode": "1.83.1",
    "electron": "25.8.4",
    "node": "v18.15.0"
    },
    "system": {
    "date": "2023-10-30T20:49:49.004Z",
    "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:00:06",
    "osUptime": "68:31:43",
    "cpu": "Apple M1 Pro"
    },
    "workspace": {
    "name": "multiple_adv_sets",
    "workspaceFile": null,
    "folders": [
    "/Users/atom/Public/nRF5340/BLE/multiple_adv_sets"
    ]
    },
    "sdks": [
    {
    "version": "2.4.2",
    "path": "/opt/nordic/ncs/v2.4.2"
    },
    {
    "version": "2.5.0",
    "path": "/opt/nordic/ncs/v2.5.0"
    }
    ],
    "activeBuild": "/Users/atom/Public/nRF5340/BLE/multiple_adv_sets/build",
    "apps": [
    {
    "workspace": "/Users/atom/Public/nRF5340/BLE/multiple_adv_sets",
    "uri": "/Users/atom/Public/nRF5340/BLE/multiple_adv_sets",
    "buildConfigurations": [
    {
    "id": "/Users/atom/Public/nRF5340/BLE/multiple_adv_sets/build",
    "name": "build",
    "boardId": "nrf5340dk_nrf5340_cpuapp",
    "type": "Zephyr",
    "isChild": false,
    "isStale": false,
    "taskBindings": {
    "build": [],
    "pristineBuild": [],
    "flash": [],
    "eraseAndFlash": []
    }
    }
    ]
    }
    ],
    "topdir": "/opt/nordic/ncs/v2.5.0",
    "workspaceState": "freestanding-ready",
    "toolchains": [
    {
    "version": "2.4.2",
    "path": "/opt/nordic/ncs/toolchains/4ef6631da0"
    },
    {
    "version": "2.5.0",
    "path": "/opt/nordic/ncs/toolchains/20d68df7e5"
    }
    ],
    "connectedDevices": [],
    "deviceProvider": "nrfutil",
    "tools": {
    "/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.1",
    "/Applications/SEGGER/JLink/JLinkExe": "7.88j",
    "/usr/local/bin/nrfjprog": "10.23.2",
    "nrfutil": "Not found",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake": "3.20.5",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/west": "1.1.0",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/python3": "3.9.6",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/ninja": "1.10.2",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/gperf": "3.1",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc": "1.6.1",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/gn": "2122",
    "/opt/nordic/ncs/toolchains/20d68df7e5/bin/git": "2.37.3",
    "gdbPath": "/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
    },
    "environment": {
    "westEnv": {
    "ELECTRON_RUN_AS_NODE": "1",
    "GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/20d68df7e5/Cellar/git/2.37.3/libexec/git-core",
    "HOME": "/Users/atom",
    "PATH": "/opt/nordic/ncs/toolchains/20d68df7e5/bin:/opt/nordic/ncs/toolchains/20d68df7e5/usr/bin:/opt/nordic/ncs/toolchains/20d68df7e5/usr/local/bin:/opt/nordic/ncs/toolchains/20d68df7e5/opt/bin:/opt/nordic/ncs/toolchains/20d68df7e5/opt/nanopb/generator-bin:/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/homebrew/opt/qt5/bin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/opt/homebrew/opt/qt5/bin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",
    "ZEPHYR_BASE": "/opt/nordic/ncs/v2.5.0/zephyr",
    "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
    "ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk",
    "USER": "atom"
    },
    "inherited": {
    "ELECTRON_RUN_AS_NODE": "1",
    "HOME": "/Users/atom",
    "PATH": "/opt/homebrew/opt/qt5/bin:/opt/local/bin:/opt/local/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin",
    "USER": "atom"
    },
    "toolchainPath": "/opt/nordic/ncs/toolchains/20d68df7e5",
    "toolchainBinPath": "/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin",
    "toolchainVersion": "2.5.0"
    },
    "terminal": {
    "defaultProfile": null
    },
    "config": {
    "nordic-semiconductor.nrf-connect": {
    "topdir": "",
    "toolchain": {
    "path": "${nrf-connect.toolchain:2.5.0}"
    },
    "ozonePath": "",
    "applications": [],
    "applicationOptions": {},
    "kconfig": {
    "interface": "kconfig",
    "executeInDefaultShell": false
    },
    "welcome": {
    "showOnStartup": true
    },
    "west": {
    "env": {
    "$base": "terminal"
    }
    },
    "boardRoots": [],
    "taskBindings": {},
    "debugging": {
    "flash": true,
    "bindings": {}
    },
    "activeAppFollowActiveEditor": true,
    "deviceProvider": "nrfutil",
    "enableTelemetry": true,
    "thirdpartyIntegration": {},
    "toolchainManager": {
    "indexURL": null,
    "installDirectory": null
    },
    "nrfutil": {
    "home": null
    },
    "defaultOpenAction": "ask"
    },
    "nordic-semiconductor.nrf-terminal": {
    "terminalMode": "character"
    }
    },
    "extensions": {
    "internal": {
    "nordic-semiconductor.nrf-connect": {
    "version": "2023.10.49",
    "path": "/Users/atom/.vscode/extensions/nordic-semiconductor.nrf-connect-2023.10.49-darwin-arm64",
    "isActive": true
    },
    "nordic-semiconductor.nrf-terminal": {
    "version": "2023.10.17",
    "path": "/Users/atom/.vscode/extensions/nordic-semiconductor.nrf-terminal-2023.10.17",
    "isActive": true
    },
    "nordic-semiconductor.nrf-devicetree": {
    "version": "2023.10.22",
    "path": "/Users/atom/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2023.10.22",
    "isActive": true
    },
    "nordic-semiconductor.nrf-kconfig": {
    "version": "2023.10.27",
    "path": "/Users/atom/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2023.10.27",
    "isActive": true
    }
    },
    "external": {
    "marus25.cortex-debug": null,
    "ms-vscode.cpptools": "1.17.5",
    "ms-vscode.js-debug": "1.83.1",
    "ms-vscode.js-debug-companion": "1.1.2",
    "ms-vscode.vscode-js-profile-table": "1.0.3",
    "aaron-bond.better-comments": "3.0.2",
    "adriano-markovic.c-cpp-makefile-project": "1.1.0",
    "christian-kohler.path-intellisense": "2.8.5",
    "codezombiech.gitignore": "0.9.0",
    "cschlosser.doxdocgen": "1.4.0",
    "DavidAnson.vscode-markdownlint": "0.52.0",
    "donjayamanne.githistory": "0.6.20",
    "eamodio.gitlens": "14.4.1",
    "Equinusocio.vsc-community-material-theme": "1.4.6",
    "formulahendry.code-runner": "0.12.1",
    "GitHub.copilot": "1.130.0",
    "GitHub.copilot-chat": "0.8.0",
    "golang.go": "0.39.1",
    "jeff-hykin.better-cpp-syntax": "1.17.2",
    "KevinRose.vsc-python-indent": "1.18.0",
    "mcu-debug.debug-tracker-vscode": "0.0.15",
    "mcu-debug.memory-view": "0.0.24",
    "mcu-debug.peripheral-viewer": "1.4.6",
    "mcu-debug.rtos-views": "0.0.7",
    "ms-python.autopep8": "2023.6.0",
    "ms-python.isort": "2023.10.1",
    "ms-python.python": "2023.18.0",
    "ms-python.vscode-pylance": "2023.10.50",
    "ms-toolsai.jupyter": "2023.9.1102792234",
    "ms-toolsai.jupyter-keymap": "1.1.2",
    "ms-toolsai.vscode-jupyter-cell-tags": "0.1.8",
    "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
    "ms-vscode-remote.remote-containers": "0.315.1",
    "ms-vscode-remote.remote-ssh": "0.106.5",
    "ms-vscode-remote.remote-ssh-edit": "0.86.0",
    "ms-vscode-remote.remote-wsl": "0.81.8",
    "ms-vscode-remote.vscode-remote-extensionpack": "0.24.0",
    "ms-vscode.makefile-tools": "0.7.0",
    "ms-vscode.remote-explorer": "0.4.1",
    "ms-vscode.remote-server": "1.4.3",
    "ms-vscode.vscode-serial-monitor": "0.10.0",
    "shd101wyy.markdown-preview-enhanced": "0.8.10",
    "sleepingsaint.gitignore-generator": "0.0.2",
    "trond-snekvik.gnu-mapfiles": "1.1.0",
    "twxs.cmake": "0.0.17",
    "VisualStudioExptTeam.intellicode-api-usage-examples": "0.2.8",
    "VisualStudioExptTeam.vscodeintellicode": "1.2.30",
    "vscode-icons-team.vscode-icons": "12.6.0",
    "yzhang.markdown-all-in-one": "3.5.1"
    }
    }
    }

  • Thanks for sharing! Comparing to my setup, on my Macbook Air M2, I'm not seeing anything out of the ordinary. Could you test with e.g. Verbose mode in Toolchain Manager? This could maybe provide some feedback to what is failing.

    Are you able to build projects as expected in VS Code? This includes its own version of the Toolchain Manager, where you can add/remove different versions of the SDK and toolchain.

  • I can build the project without any issues. 

    However, I do not have the Graphical User Interface that I have on Windows Machine.

  • Never Mind,

    I didn't realize that the board selector was in the top right corner of the pop window. Now, I can select board-specific examples.

    However, I can still not open VS Code from the nRF Connect For Desktop Application. I am not sure if that matters but FYI.

  • Jenish Rudani said:
    I can still not open VS Code from the nRF Connect For Desktop Application. I am not sure if that matters but FYI.

    Did you try with the verbose mode I asked?

Related