NRF Connect - Can't Open VS Code from Toolchain

Hi - Recently, the NRF Connect Toolchain manager stopped being able to open VS Code and hangs spinning - screenshot below. It used to work so I'm not sure what's changed...

I am on a Mac M1 MacOS Monterey 12.0.1.

Toolchain manager v.0.10.3

nRF Connect for Desktop v3.10.0; SDK v.1.8.0

I include the output from VS Code  - Generate Support Info below (I ran VS code separately after Toolchain manager failed to open it).

Is there a way to manually set all the proper VS Code extension variable settings so I can develop from within VS Code without relying on the Toolchain manager to launch VS Code, or is there something obvious I'm not doing properly?

I saw someone else report that they encountered a similar error but they mistakenly already had VS Code running - that is not my issue. I made sure VS Code was not already running.

Thanks - appreciate any help or guidance! Dan.

Note: per the installation instructions, I installed the x64 version of VS Code: Version: 1.64.1


Commit: d6ee99e4c045a6716e5c653d7da8e9ae6f5a8b03
Date: 2022-02-07T17:26:08.977Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 21.1.0

[19:59:59] west build --build-dir /Users/me/dev/nordic/blinky/build /Users/me/dev/nordic/blinky --pristine --board nrf5340dk_nrf5340_cpuapp -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/me/dev/nordic/mylock" -DCONFIG_DEBUG_OPTIMIZATIONS:STRING="y" -DCONFIG_DEBUG_THREAD_INFO:STRING="y" -DCONF_FILE:STRING="/Users/me/dev/nordic/blinky/prj.conf"
[19:59:59] Failure (code 2).
[20:00:09] west build --build-dir /Users/me/dev/nordic/blinky/build /Users/me/dev/nordic/blinky --pristine --board nrf5340dk_nrf5340_cpuapp -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/me/dev/nordic/mylock" -DCONFIG_DEBUG_OPTIMIZATIONS:STRING="y" -DCONFIG_DEBUG_THREAD_INFO:STRING="y" -DCONF_FILE:STRING="/Users/me/dev/nordic/blinky/prj.conf"
[20:00:09] Failure (code 2).
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 https://devzone.nordicsemi.com/.

{
  "platform": {
    "os": "darwin",
    "osVersion": "Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000",
    "osKernel": "21.1.0",
    "vscode": "1.64.1",
    "electron": "13.5.2",
    "node": "v14.16.0"
  },
  "system": {
    "date": "2022-02-09T04:02:34.189Z",
    "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
    "nrfConnectForDesktopInstalled": true,
    "vscodeUptime": "00:03:04",
    "osUptime": "00:13:04",
    "cpu": {
      "model": "Apple M1 Max",
      "speed": "24 MHz",
      "count": 5
    },
    "memory": {
      "total": "32.00 GB",
      "free": "3.65 GB"
    }
  },
  "workspace": {
    "name": "mylock (Workspace)",
    "workspaceFile": "/Users/me/dev/nordic/mylock/src/mylock.code-workspace",
    "folders": [
      "/Users/me/dev/nordic/mylock",
      "/Users/me/dev/nordic/blinky"
    ]
  },
  "extensions": {
    "internal": {
      "nordic-semiconductor.nrf-connect": {
        "version": "2022.1.192",
        "path": "/Users/me/.vscode/extensions/nordic-semiconductor.nrf-connect-2022.1.192",
        "isActive": true
      },
      "nordic-semiconductor.nrf-terminal": {
        "version": "2022.1.30",
        "path": "/Users/me/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.1.30",
        "isActive": true
      },
      "nordic-semiconductor.devicetree": null,
      "nordic-semiconductor.kconfig": null
    },
    "external": {
      "marus25.cortex-debug": "1.2.2",
      "ms-vscode.cpptools": "1.8.5",
      "ms-vscode.js-debug": "1.64.2",
      "ms-vscode.js-debug-companion": "1.0.15",
      "ms-vscode.references-view": "0.0.81",
      "ms-vscode.vscode-js-profile-table": "0.0.18",
      "cschlosser.doxdocgen": "1.3.2",
      "jeff-hykin.better-cpp-syntax": "1.15.11",
      "ms-azuretools.vscode-docker": "1.19.0",
      "ms-vscode-remote.remote-containers": "0.217.1",
      "ms-vscode-remote.remote-ssh": "0.70.0",
      "ms-vscode-remote.remote-wsl": "0.64.2",
      "ms-vscode.cmake-tools": "1.9.2",
      "ms-vscode.cpptools-extension-pack": "1.1.0",
      "ms-vscode.cpptools-themes": "1.0.0",
      "trond-snekvik.gnu-mapfiles": "1.1.0",
      "twxs.cmake": "0.0.17"
    }
  },
  "tools": {
    "/Applications/SEGGER/JLink/JLinkExe": "7.58b",
    "/usr/local/bin/nrfjprog": "10.15.1",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/cmake": "3.21.1",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/west": "0.12.0",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/python3": "3.9.6",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/ninja": "1.10.2",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/gperf": "3.1",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/dtc": "1.6.1",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/arm-none-eabi-gcc": "9-2019-q4-major",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/gn": "1961",
    "/opt/nordic/ncs/v1.8.0/toolchain/bin/git": "2.32.0"
  },
  "connectedDevices": [
    {
      "id": "1050007787"
    }
  ],
  "config": {
    "nordic-semiconductor.nrf-connect": {
      "topdir": "${nrf-connect.sdk:1.8.0}",
      "toolchain": {
        "path": "${nrf-connect.toolchain:1.8.0}"
      },
      "ozonePath": "",
      "applications": [
        "/Users/me/dev/nordic/mylock",
        "/Users/me/dev/nordic/blinky"
      ],
      "jlink": {
        "rtosPlugin": ""
      },
      "kconfig": {
        "interface": "guiconfig"
      },
      "welcome": {
        "showOnStartup": false
      },
      "west": {
        "env": {
          "$base": "terminal"
        }
      },
      "boardRoots": [],
      "enableTelemetry": false
    },
    "nordic-semiconductor.nrf-terminal": {
      "terminalMode": "character"
    },
    "nordic-semiconductor.devicetree": {
      "modules": [
        "${zephyrBase}",
        "${zephyrBase}/../nrf",
        "."
      ],
      "zephyr": "",
      "ctxFile": "",
      "defaultBoard": ""
    },
    "nordic-semiconductor.kconfig": {
      "root": "",
      "env": {},
      "cfiles": true,
      "disable": false,
      "zephyr": {
        "base": ""
      },
      "python": "",
      "liveValue": true
    },
    "marus25.cortex-debug": {
      "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,
      "flattenAnonymous": false,
      "registerUseNaturalFormat": true,
      "variableUseNaturalFormat": true,
      "dbgServerLogfile": null,
      "showDevDebugOutput": "none"
    }
  },
  "environment": {
    "westExe": "/opt/nordic/ncs/v1.8.0/toolchain/bin/west",
    "westEnv": {
      "ELECTRON_RUN_AS_NODE": "1",
      "GIT_EXEC_PATH": "/opt/nordic/ncs/v1.8.0/toolchain/Cellar/git/2.32.0_1/libexec/git-core",
      "HOME": "/Users/me",
      "PATH": "/opt/nordic/ncs/v1.8.0/toolchain/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin",
      "ZEPHYR_BASE": "/opt/nordic/ncs/v1.8.0/zephyr",
      "GNUARMEMB_TOOLCHAIN_PATH": "/opt/nordic/ncs/v1.8.0/toolchain",
      "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
      "USER": "me"
    },
    "toolchainPath": "/opt/nordic/ncs/v1.8.0/toolchain",
    "toolchainBinPath": "/opt/nordic/ncs/v1.8.0/toolchain/bin",
    "toolchainVersion": "1.8.0"
  },
  "terminal": {
    "shell": null,
    "defaultProfile": null
  }
}


Parents
  • Hi Dan,

    I would like to have some more information. Did this happen after you did any updates to any application or firmware etc. ?

    Also, is it possible to get some error logs? For eg., if you could get the error messages from developer console, this would be really helpful. I am not quite sure how to do this on a Mac.

    But, I would like to mention that you do not need to use the VS Code through the Toolchain Manager.

    Regards,

    Priyanka

  • Hi Priyanka - I attach the log file generated by toolchain manager below. The line that jumps out at me is the one that says "west not found".

    I am surprised to hear that I don't need to launch VS Code from Toolchain Manager on a Mac. In the past, if I didn't do so, the environment variables weren't properly set. For example, now I still can't build the Blinky example and get the following error:

    > Executing task: nRF Connect: Generate config nrf5340dk_nrf5340_cpuapp for /Users/me/dev/nordic/blinky <
    
    Building blinky
    west build --build-dir /Users/me/dev/nordic/blinky/build /Users/me/dev/nordic/blinky --pristine --board nrf5340dk_nrf5340_cpuapp -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING="/Users/me/dev/nordic/mylock"
    
    usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
    west: error: argument <command>: invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')
    The terminal process failed to launch (exit code: 2).
    
    Terminal will be reused by tasks, press any key to close it.

    Logfile from Toolchain Manager:

    2022-02-09T16:17:29.591Z INFO Initializing environments...
    2022-02-09T16:17:29.594Z INFO Locally exsisting environment found at /opt/nordic/ncs/v1.8.0/toolchain
    2022-02-09T16:17:29.594Z INFO With version: v1.8.0
    2022-02-09T16:17:29.594Z INFO With west found: no
    2022-02-09T16:17:29.696Z INFO Application data folder: /Users/me/Library/Application Support/nrfconnect/pc-nrfconnect-toolchain-manager
    2022-02-09T16:17:31.063Z DEBUG iface: en0
    2022-02-09T16:17:31.063Z DEBUG IP4: 10.0.0.32
    2022-02-09T16:17:31.063Z DEBUG IP6: [i removed this]
    2022-02-09T16:17:31.063Z DEBUG MAC: [i removed this]
    2022-02-09T16:17:31.065Z DEBUG Client Id: 7659xxxxxxxxx [i removed this]
    2022-02-09T16:17:31.073Z DEBUG Google Analytics for category pc-nrfconnect-toolchain-manager has initialized
    2022-02-09T16:17:31.309Z DEBUG App pc-nrfconnect-toolchain-manager v0.10.3 official
    2022-02-09T16:17:31.309Z DEBUG App path: /Users/me/.nrfconnect-apps/node_modules/pc-nrfconnect-toolchain-manager
    2022-02-09T16:17:31.309Z DEBUG nRFConnect 3.10.0, required by the app is (^3.7.0)
    2022-02-09T16:17:31.309Z DEBUG nRFConnect path: /Applications/nRF Connect for Desktop.app/Contents/Resources/app.asar
    2022-02-09T16:17:31.309Z DEBUG HomeDir: /Users/me
    2022-02-09T16:17:31.309Z DEBUG TmpDir: /var/folders/lh/86j7kz7x3kl3xqd_zsw8vhzh0000gn/T/
    2022-02-09T16:17:31.400Z DEBUG Downloading index json with buffer length: 3848
    2022-02-09T16:17:31.420Z DEBUG Downloading index json with buffer length: 2761
    2022-02-09T16:17:31.421Z DEBUG Index json has been downloaded with result: [
        {
            "version": "v1.4.99-dev1",
            "toolchains": [
                {
                    "version": "20201207",
                    "name": "ncs-toolchain-v1.4.99-dev1-20201207-43d4695.dmg",
                    "sha512": "9eab039a75e8b2003e896b1a5832b642524fd225eb8b4d03fda4593e610785401e7600ac3f63533ea2bfee51bdd52eece0bb52073f79d20978ad3a01e5803d18"
                }
            ]
        },
        {
            "version": "v1.4.1",
            "toolchains": [
                {
                    "version": "20201215",
                    "name": "ncs-toolchain-v1.4.1-20201215-7ecf886.dmg",
                    "sha512": "9f8b07e1074177a3f821dc5b5eeccdf3af6cf7e38531db809ee5e185aeab12e5e7e92bf9ae7096ff2ec5be3d112bfacac90dea17ed02354c416d4404a1981d56"
                }
            ]
        },
        {
            "version": "v1.4.0",
            "toolchains": [
                {
                    "version": "20201030",
                    "name": "ncs-toolchain-v1.4.0-20201030-2750604.dmg",
                    "sha512": "b856df471eb8c05eef6bcadb1df0c8569d68b5da1f2e9f6bd5a7aaf80e35d4d02f615bba7bc10767abb88274d6d65e0e5565ea775831c0228170102d03c943fb"
                }
            ]
        },
        {
            "version": "v1.3.2",
            "toolchains": [
                {
                    "version": "20201012",
                    "name": "ncs-toolchain-v1.3.2-20201012-09b2ade.dmg",
                    "sha512": "2ba77cb1ab4e3f43c44214d653e78efb2b567d95faead5804aebaafeb7bba4691adc432d57f368aad2b8105b489e21cd640a9bd8af98a8697ed53d653f3b9dc1"
                }
            ]
        },
        {
            "version": "v1.3.1",
            "toolchains": [
                {
                    "version": "20200921",
                    "name": "ncs-toolchain-v1.3.1-20200921-509f057.dmg",
                    "sha512": "d02566fcd719b44db2985068e0d190d93876d8d867d53a8e0119de0a6060522a608305f2cf1bc61e3c89c7eb999e4cdfbad5654424e7cda746ff7cbf21438bb6"
                }
            ]
        },
        {
            "version": "v1.3.0",
            "toolchains": [
                {
                    "version": "20200618",
                    "name": "ncs-toolchain-v1.3.0-20200618-509f057.dmg",
                    "sha512": "a17558612678b33afd1b710a96e1ff68c56b7a75e52d63cd48f8781f8b9a8bca700e05e9a855d305d501a080ee930ebbda225df7f1b5575b1a0a8c5bef5f3621"
                }
            ]
        },
        {
            "version": "v1.3.0-rc1",
            "toolchains": [
                {
                    "version": "20200602",
                    "name": "ncs-toolchain-v1.3.0-rc1-20200602-dbcfd6c.dmg",
                    "sha512": "6d43ac2808ba3ba6a17e3f1c31eeb679886aa8a16fca6f3ad4b82077c66c3210e3c46581fc852da5fce07d098f170cc780cc05a41148ddf6a7032a0ff315307d"
                },
                {
                    "version": "20200609",
                    "name": "ncs-toolchain-v1.3.0-rc1-20200609-590da70.dmg",
                    "sha512": "2c58b3b2b4773da95ca95a2cea5e03ed48144b0d2dc0e03e00b06d8f65c56e5091d6b6410d78251ef5aa3bd03c8718cf5a04b5e8c7f3f08eadf1b518129dc708"
                }
            ]
        },
        {
            "version": "v1.4.2",
            "toolchains": [
                {
                    "version": "20210113",
                    "name": "ncs-toolchain-v1.4.2-20210113-7ecf886.dmg",
                    "sha512": "e4b9f8cac9e77305be89e3ea8b90dbcc22415e87379ff34c7c0cb0100c5109498167e22829e8bad5c01a84a84309467f970d7b4b8ecc46bf8b6724ef6f70e8cb"
                }
            ]
        },
        {
            "version": "v1.5.0-rc1",
            "toolchains": [
                {
                    "version": "20210215",
                    "name": "ncs-toolchain-v1.5.0-rc1-20210215-2c30941.dmg",
                    "sha512": "4c8c127c27ca67ac555f6d02c4bee3c50fc53d32fc6989a7158c2c95be87c2fb5b86b0953a8eb99342c6145b3fbfea035cda2e7e13d0b921868c63c7f1f4388f"
                }
            ]
        },
        {
            "version": "v1.5.0",
            "toolchains": [
                {
                    "version": "20210225",
                    "name": "ncs-toolchain-v1.5.0-20210225-607a0e0.dmg",
                    "sha512": "40d395b683c1b7680db30ba167a7d7742d2b756d7f7f8c2b4780091339f8141779b6e2d5f236b6e4ff13eba0ccf67a3240108ec76180950fbe2346a60220d404"
                }
            ]
        },
        {
            "version": "v1.5.1-rc1",
            "toolchains": [
                {
                    "version": "20210409",
                    "name": "ncs-toolchain-v1.5.1-rc1-20210409-96ab6aa.dmg",
                    "sha512": "c4b22656ce6e08b6881cd07fe446e75bb4400582f6dcf9d93e53feb116a1e3819a5d08dc0e87abaaf230054c8a396d5972b3573ad653f9bc5cdf479df336e5bc"
                }
            ]
        },
        {
            "version": "v1.5.1",
            "toolchains": [
                {
                    "version": "20210416",
                    "name": "ncs-toolchain-v1.5.1-20210416-96ab6aa.dmg",
                    "sha512": "b853cb30f76601ea9edefa2faade433280517b2262b1126efacf030c9c5582629b25974dfde4038327a5ffccc5a17a801597aee6e43f43767038abd3b8a89714"
                }
            ]
        },
        {
            "version": "v1.6.0",
            "toolchains": [
                {
                    "version": "20210701",
                    "name": "ncs-toolchain-v1.6.0-20210701-de414c8.dmg",
                    "sha512": "8aab26ffb89ff250882e272b262ddacc38fc1dc4cbec39f4e76468a0bfd899bc571caa1cb60b467e396422765fd207e8b48aaf48b25b0741ea375b39bd52d691"
                }
            ]
        },
        {
            "version": "v1.6.1",
            "toolchains": [
                {
                    "version": "20210907",
                    "name": "ncs-toolchain-v1.6.1-20210907-80db958.dmg",
                    "sha512": "b2e5c2da037e8ce577a799427b4a4bcc4a5d2608126bd152da4c52664e16cd2443528c040426163b7938f65c0c62dc80038ae76d74f72cb7b2e66fe9f254f6db"
                }
            ]
        },
        {
            "version": "v1.7.0",
            "toolchains": [
                {
                    "version": "20210923",
                    "name": "ncs-toolchain-v1.7.0-20210923-4c380d0.dmg",
                    "sha512": "6691fee7190f940e6adfa8fd2881ca14bae2a299671a58e21b8a1727944bf31542f62b97adb8c81c32d1baed03badfb96247de5d71f24052f00fc0f62124d5ec"
                }
            ]
        },
        {
            "version": "v1.7.1",
            "toolchains": [
                {
                    "version": "20211028",
                    "name": "ncs-toolchain-v1.7.1-20211028-4c380d0.dmg",
                    "sha512": "6d567b869613d8722cf542e3d7bea883987958e70dd2e6ba69ac846ad68ff002c676c9b1647bd7dc1197af3ac6c75d56945a8de8f93655dc1656d19391df992a"
                }
            ]
        },
        {
            "version": "v1.8.0",
            "toolchains": [
                {
                    "version": "20220103",
                    "name": "ncs-toolchain-v1.8.0-20220103-7d41729.dmg",
                    "sha512": "fb931ed3773c6745c1eeca4963d30aebe2f1a1b41a4340121fc7999ccb0340a76d671defa50b5bdae1b4317d9e49bd7a08583cc6d210fe30c16b0e0bbcfc736b"
                }
            ]
        }
    ]
    2022-02-09T16:17:31.425Z INFO Toolchain v1.4.99-dev1 has been added to the list
    2022-02-09T16:17:31.431Z INFO Toolchain v1.4.1 has been added to the list
    2022-02-09T16:17:31.442Z INFO Toolchain v1.4.0 has been added to the list
    2022-02-09T16:17:31.464Z INFO Toolchain v1.3.2 has been added to the list
    2022-02-09T16:17:31.470Z INFO Toolchain v1.3.1 has been added to the list
    2022-02-09T16:17:31.480Z INFO Toolchain v1.3.0 has been added to the list
    2022-02-09T16:17:31.527Z INFO Toolchain v1.3.0-rc1 has been added to the list
    2022-02-09T16:17:31.564Z INFO Toolchain v1.4.2 has been added to the list
    2022-02-09T16:17:31.583Z INFO Toolchain v1.5.0-rc1 has been added to the list
    2022-02-09T16:17:31.587Z INFO Toolchain v1.5.0 has been added to the list
    2022-02-09T16:17:31.619Z INFO Toolchain v1.5.1-rc1 has been added to the list
    2022-02-09T16:17:31.627Z INFO Toolchain v1.5.1 has been added to the list
    2022-02-09T16:17:31.657Z INFO Toolchain v1.6.0 has been added to the list
    2022-02-09T16:17:31.662Z INFO Toolchain v1.6.1 has been added to the list
    2022-02-09T16:17:31.683Z INFO Toolchain v1.7.0 has been added to the list
    2022-02-09T16:17:31.695Z INFO Toolchain v1.7.1 has been added to the list
    2022-02-09T16:17:31.704Z INFO Toolchain v1.8.0 has been added to the list
    2022-02-09T16:17:32.998Z DEBUG Sending usage data...
    2022-02-09T16:17:32.999Z DEBUG Category: pc-nrfconnect-toolchain-manager
    2022-02-09T16:17:32.999Z DEBUG Action: Report locally existing environments
    2022-02-09T16:17:32.999Z DEBUG Label: v1.8.0; west not found
    2022-02-09T16:17:33.002Z DEBUG Usage data has been sent
    2022-02-09T16:17:33.002Z DEBUG Sending usage data...
    2022-02-09T16:17:33.002Z DEBUG Category: pc-nrfconnect-toolchain-manager
    2022-02-09T16:17:33.002Z DEBUG Action: Status of VS Code installation
    2022-02-09T16:17:33.002Z DEBUG Label: Status not checked
    2022-02-09T16:17:33.003Z DEBUG Usage data has been sent
    2022-02-09T16:17:33.003Z DEBUG Sending usage data...
    2022-02-09T16:17:33.003Z DEBUG Category: pc-nrfconnect-toolchain-manager
    2022-02-09T16:17:33.003Z DEBUG Action: Status of nrfjprog installation
    2022-02-09T16:17:33.003Z DEBUG Label: Installed
    2022-02-09T16:17:33.004Z DEBUG Usage data has been sent

  • HI Priyanka - I ended up doing a clean reinstall of NRF Connect, the Toolchain and VS Code and was able to build and flash the Blinky program (with debug options enabled).

    Although I can launch VS Code directly from the system, I am still unable to launch VS Code from the Toolchain Manager (after the first time where it successfully looks for and installs dependencies, on subsequent launch attempts, it spins endlessly looking for dependencies).

    I would encourage the Nordic team to try this out themselves on an M1 Mac with the latest versions and see if it is reproducible. I am unblocked for now. Thanks, Dan.

  • Hi Dan, 

    Really sorry that you are facing this issue and thanks for the input. I will let the team know.

    Regards,

    Priyanka

  • Hi Dan,

    Our team has tried this and they are able to access from Toolchain. It looks like in your log file, it says west is not found. It could be due to not proper installation. I understand that you have tried this, but could you try uninstalling and removing the entire toolchain directory for v1.8.0 and then install it once again? Also, could you share your path where you stored the v1.8.0 file?

    Regards,

    Priyanka

  • Hi Priyanka - since I did a clean reinstall, the toolchain manager log does report that west is found, but it still loops endlessly searching for dependencies and refuses to launch VS Code. I attach my most recent log file output in case it is helpful.

    You asked about the path to the v1.8.0 install. Here it is: /opt/nordic/ncs/v1.8.0

    It contains the following subdirectories:

    bootloader modules nrfxlib toolchain zephyr

    mbedtls nrf test tools

    2022-02-12T00:54:12.740Z INFO Initializing environments...
    2022-02-12T00:54:12.745Z INFO Locally exsisting environment found at /opt/nordic/ncs/v1.8.0/toolchain
    2022-02-12T00:54:12.745Z INFO With version: v1.8.0
    2022-02-12T00:54:12.745Z INFO With west found: yes
    2022-02-12T00:54:12.853Z INFO Application data folder: /Users/me/Library/Application Support/nrfconnect/pc-nrfconnect-toolchain-manager
    2022-02-12T00:54:14.384Z DEBUG iface: en0
    2022-02-12T00:54:14.384Z DEBUG IP4: 10.0.0.32
    2022-02-12T00:54:14.384Z DEBUG IP6: fe80::47e:b741:8448:a9ca
    2022-02-12T00:54:14.384Z DEBUG MAC: f4:d4:88:6c:05:22
    2022-02-12T00:54:14.386Z DEBUG Client Id: 76597f53cc45b3d40b10a4ad54a5f34316332e6e
    2022-02-12T00:54:14.395Z DEBUG Google Analytics for category pc-nrfconnect-toolchain-manager has initialized
    2022-02-12T00:54:14.730Z DEBUG App pc-nrfconnect-toolchain-manager v0.10.3 official
    2022-02-12T00:54:14.730Z DEBUG App path: /Users/me/.nrfconnect-apps/node_modules/pc-nrfconnect-toolchain-manager
    2022-02-12T00:54:14.730Z DEBUG nRFConnect 3.10.0, required by the app is (^3.7.0)
    2022-02-12T00:54:14.730Z DEBUG nRFConnect path: /Applications/nRF Connect for Desktop.app/Contents/Resources/app.asar
    2022-02-12T00:54:14.730Z DEBUG HomeDir: /Users/me
    2022-02-12T00:54:14.730Z DEBUG TmpDir: /var/folders/lh/86j7kz7x3kl3xqd_zsw8vhzh0000gn/T/
    2022-02-12T00:54:14.786Z DEBUG Downloading index json with buffer length: 3848
    2022-02-12T00:54:14.787Z DEBUG Downloading index json with buffer length: 2761
    2022-02-12T00:54:14.788Z DEBUG Index json has been downloaded with result: [
        {
            "version": "v1.4.99-dev1",
            "toolchains": [
                {
                    "version": "20201207",
                    "name": "ncs-toolchain-v1.4.99-dev1-20201207-43d4695.dmg",
                    "sha512": "9eab039a75e8b2003e896b1a5832b642524fd225eb8b4d03fda4593e610785401e7600ac3f63533ea2bfee51bdd52eece0bb52073f79d20978ad3a01e5803d18"
                }
            ]
        },
        {
            "version": "v1.4.1",
            "toolchains": [
                {
                    "version": "20201215",
                    "name": "ncs-toolchain-v1.4.1-20201215-7ecf886.dmg",
                    "sha512": "9f8b07e1074177a3f821dc5b5eeccdf3af6cf7e38531db809ee5e185aeab12e5e7e92bf9ae7096ff2ec5be3d112bfacac90dea17ed02354c416d4404a1981d56"
                }
            ]
        },
        {
            "version": "v1.4.0",
            "toolchains": [
                {
                    "version": "20201030",
                    "name": "ncs-toolchain-v1.4.0-20201030-2750604.dmg",
                    "sha512": "b856df471eb8c05eef6bcadb1df0c8569d68b5da1f2e9f6bd5a7aaf80e35d4d02f615bba7bc10767abb88274d6d65e0e5565ea775831c0228170102d03c943fb"
                }
            ]
        },
        {
            "version": "v1.3.2",
            "toolchains": [
                {
                    "version": "20201012",
                    "name": "ncs-toolchain-v1.3.2-20201012-09b2ade.dmg",
                    "sha512": "2ba77cb1ab4e3f43c44214d653e78efb2b567d95faead5804aebaafeb7bba4691adc432d57f368aad2b8105b489e21cd640a9bd8af98a8697ed53d653f3b9dc1"
                }
            ]
        },
        {
            "version": "v1.3.1",
            "toolchains": [
                {
                    "version": "20200921",
                    "name": "ncs-toolchain-v1.3.1-20200921-509f057.dmg",
                    "sha512": "d02566fcd719b44db2985068e0d190d93876d8d867d53a8e0119de0a6060522a608305f2cf1bc61e3c89c7eb999e4cdfbad5654424e7cda746ff7cbf21438bb6"
                }
            ]
        },
        {
            "version": "v1.3.0",
            "toolchains": [
                {
                    "version": "20200618",
                    "name": "ncs-toolchain-v1.3.0-20200618-509f057.dmg",
                    "sha512": "a17558612678b33afd1b710a96e1ff68c56b7a75e52d63cd48f8781f8b9a8bca700e05e9a855d305d501a080ee930ebbda225df7f1b5575b1a0a8c5bef5f3621"
                }
            ]
        },
        {
            "version": "v1.3.0-rc1",
            "toolchains": [
                {
                    "version": "20200602",
                    "name": "ncs-toolchain-v1.3.0-rc1-20200602-dbcfd6c.dmg",
                    "sha512": "6d43ac2808ba3ba6a17e3f1c31eeb679886aa8a16fca6f3ad4b82077c66c3210e3c46581fc852da5fce07d098f170cc780cc05a41148ddf6a7032a0ff315307d"
                },
                {
                    "version": "20200609",
                    "name": "ncs-toolchain-v1.3.0-rc1-20200609-590da70.dmg",
                    "sha512": "2c58b3b2b4773da95ca95a2cea5e03ed48144b0d2dc0e03e00b06d8f65c56e5091d6b6410d78251ef5aa3bd03c8718cf5a04b5e8c7f3f08eadf1b518129dc708"
                }
            ]
        },
        {
            "version": "v1.4.2",
            "toolchains": [
                {
                    "version": "20210113",
                    "name": "ncs-toolchain-v1.4.2-20210113-7ecf886.dmg",
                    "sha512": "e4b9f8cac9e77305be89e3ea8b90dbcc22415e87379ff34c7c0cb0100c5109498167e22829e8bad5c01a84a84309467f970d7b4b8ecc46bf8b6724ef6f70e8cb"
                }
            ]
        },
        {
            "version": "v1.5.0-rc1",
            "toolchains": [
                {
                    "version": "20210215",
                    "name": "ncs-toolchain-v1.5.0-rc1-20210215-2c30941.dmg",
                    "sha512": "4c8c127c27ca67ac555f6d02c4bee3c50fc53d32fc6989a7158c2c95be87c2fb5b86b0953a8eb99342c6145b3fbfea035cda2e7e13d0b921868c63c7f1f4388f"
                }
            ]
        },
        {
            "version": "v1.5.0",
            "toolchains": [
                {
                    "version": "20210225",
                    "name": "ncs-toolchain-v1.5.0-20210225-607a0e0.dmg",
                    "sha512": "40d395b683c1b7680db30ba167a7d7742d2b756d7f7f8c2b4780091339f8141779b6e2d5f236b6e4ff13eba0ccf67a3240108ec76180950fbe2346a60220d404"
                }
            ]
        },
        {
            "version": "v1.5.1-rc1",
            "toolchains": [
                {
                    "version": "20210409",
                    "name": "ncs-toolchain-v1.5.1-rc1-20210409-96ab6aa.dmg",
                    "sha512": "c4b22656ce6e08b6881cd07fe446e75bb4400582f6dcf9d93e53feb116a1e3819a5d08dc0e87abaaf230054c8a396d5972b3573ad653f9bc5cdf479df336e5bc"
                }
            ]
        },
        {
            "version": "v1.5.1",
            "toolchains": [
                {
                    "version": "20210416",
                    "name": "ncs-toolchain-v1.5.1-20210416-96ab6aa.dmg",
                    "sha512": "b853cb30f76601ea9edefa2faade433280517b2262b1126efacf030c9c5582629b25974dfde4038327a5ffccc5a17a801597aee6e43f43767038abd3b8a89714"
                }
            ]
        },
        {
            "version": "v1.6.0",
            "toolchains": [
                {
                    "version": "20210701",
                    "name": "ncs-toolchain-v1.6.0-20210701-de414c8.dmg",
                    "sha512": "8aab26ffb89ff250882e272b262ddacc38fc1dc4cbec39f4e76468a0bfd899bc571caa1cb60b467e396422765fd207e8b48aaf48b25b0741ea375b39bd52d691"
                }
            ]
        },
        {
            "version": "v1.6.1",
            "toolchains": [
                {
                    "version": "20210907",
                    "name": "ncs-toolchain-v1.6.1-20210907-80db958.dmg",
                    "sha512": "b2e5c2da037e8ce577a799427b4a4bcc4a5d2608126bd152da4c52664e16cd2443528c040426163b7938f65c0c62dc80038ae76d74f72cb7b2e66fe9f254f6db"
                }
            ]
        },
        {
            "version": "v1.7.0",
            "toolchains": [
                {
                    "version": "20210923",
                    "name": "ncs-toolchain-v1.7.0-20210923-4c380d0.dmg",
                    "sha512": "6691fee7190f940e6adfa8fd2881ca14bae2a299671a58e21b8a1727944bf31542f62b97adb8c81c32d1baed03badfb96247de5d71f24052f00fc0f62124d5ec"
                }
            ]
        },
        {
            "version": "v1.7.1",
            "toolchains": [
                {
                    "version": "20211028",
                    "name": "ncs-toolchain-v1.7.1-20211028-4c380d0.dmg",
                    "sha512": "6d567b869613d8722cf542e3d7bea883987958e70dd2e6ba69ac846ad68ff002c676c9b1647bd7dc1197af3ac6c75d56945a8de8f93655dc1656d19391df992a"
                }
            ]
        },
        {
            "version": "v1.8.0",
            "toolchains": [
                {
                    "version": "20220103",
                    "name": "ncs-toolchain-v1.8.0-20220103-7d41729.dmg",
                    "sha512": "fb931ed3773c6745c1eeca4963d30aebe2f1a1b41a4340121fc7999ccb0340a76d671defa50b5bdae1b4317d9e49bd7a08583cc6d210fe30c16b0e0bbcfc736b"
                }
            ]
        }
    ]
    2022-02-12T00:54:14.791Z INFO Toolchain v1.4.99-dev1 has been added to the list
    2022-02-12T00:54:14.798Z INFO Toolchain v1.4.1 has been added to the list
    2022-02-12T00:54:14.803Z INFO Toolchain v1.4.0 has been added to the list
    2022-02-12T00:54:14.830Z INFO Toolchain v1.3.2 has been added to the list
    2022-02-12T00:54:14.840Z INFO Toolchain v1.3.1 has been added to the list
    2022-02-12T00:54:14.849Z INFO Toolchain v1.3.0 has been added to the list
    2022-02-12T00:54:14.902Z INFO Toolchain v1.3.0-rc1 has been added to the list
    2022-02-12T00:54:14.951Z INFO Toolchain v1.4.2 has been added to the list
    2022-02-12T00:54:14.969Z INFO Toolchain v1.5.0-rc1 has been added to the list
    2022-02-12T00:54:15.005Z INFO Toolchain v1.5.0 has been added to the list
    2022-02-12T00:54:15.031Z INFO Toolchain v1.5.1-rc1 has been added to the list
    2022-02-12T00:54:15.053Z INFO Toolchain v1.5.1 has been added to the list
    2022-02-12T00:54:15.066Z INFO Toolchain v1.6.0 has been added to the list
    2022-02-12T00:54:15.070Z INFO Toolchain v1.6.1 has been added to the list
    2022-02-12T00:54:15.074Z INFO Toolchain v1.7.0 has been added to the list
    2022-02-12T00:54:15.085Z INFO Toolchain v1.7.1 has been added to the list
    2022-02-12T00:54:15.092Z INFO Toolchain v1.8.0 has been added to the list
    

  • Hi Dan,

    I have passed on the information to the experts and will get back to you soon.

    Regards,

    Priyanka

Reply Children
No Data
Related