On macOS with latest SDK v2.1.0, VS Code and nRF Connect for VS Code extension (See generated info report below, unfortunately from later, after I had worked around the problem), if I add an existing application and happen to have a space character in the apps closing folder name, it will be added OK to the workspace (?Why no error check here?) When I attempt to Build the configuration, it will, of course, fail on the embedded space in the apps' pathname. I can then:
- Do a "Remove Application" to remove the app from the workspace,
- Go outside VS Code to remove any spaces in the pathname/enclosing folder
- Do an "Add an existing application" to add the app to the workspace again.
- Open main.c to verify that VS Code can open that file at the new pathname.
- Try a "Build" which fails, exhibiting the old pathname with internal blanks.
- Quit VS Code and restarted. Problem went away (even though autosave is on)
Looks like some cached info in the extension or VS Code is not getting cleared when I do the Remove Application.
HTH,
Mike
PS: On another note, I find it impossible to enter text in the Tags field of this post below. Suspect an incompatibility with macOS Safari (v16.1). Or is it the case that only pre-exiting tags selected from the popup list are allowed?
[21:21:49] west build --build-dir /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1/build /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1 --pristine --board nrf52832_mdk -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/mike/Nordic/SDK2.1_Apps/lock_on_nRF52840_DK;/Users/mike/Nordic/SDK2.1_Apps/coprocessor_on_nrf52840_DK"
[21:22:32] Failure (code 1).
[21:26:16] west build --build-dir /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution/build /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution --pristine --board nrf52832_mdk -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/mike/Nordic/SDK2.1_Apps/lock_on_nRF52840_DK;/Users/mike/Nordic/SDK2.1_Apps/coprocessor_on_nrf52840_DK"
[21:27:43] Success.
[21:31:04] west build --build-dir /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1/build /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1
[21:31:09] Failure (code 1).
[21:34:31] west build --build-dir /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution/build /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution
[21:34:32] Success.
[21:34:58] west build --build-dir /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution/build /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution
[21:34:59] Success.
[21:34:59] west flash -d /Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution/build --skip-rebuild -r nrfjprog --dev-id 682487810
[21:35:00] Failure (code 1).
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.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64",
"osKernel": "21.6.0",
"vscode": "1.72.0",
"electron": "19.0.17",
"node": "v16.14.2"
},
"system": {
"date": "2022-10-09T04:36:42.984Z",
"vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "00:16:16",
"osUptime": "95:28:42",
"cpu": {
"model": "Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz",
"speed": "2700 MHz",
"count": 4
},
"memory": {
"total": "8.00 GB",
"free": "0.03 GB"
}
},
"workspace": {
"name": "Mikes_NCS_apps (Workspace)",
"workspaceFile": "/Users/mike/Nordic/SDK2.1_Apps/Mikes_NCS_apps.code-workspace",
"folders": [
"/Users/mike/Nordic/SDK2.1_Apps/hello_world",
"/Users/mike/Nordic/SDK2.1_Apps/lock_on_nRF52840_DK",
"/Users/mike/Nordic/SDK2.1_Apps/coprocessor_on_nrf52840_DK",
"/Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1",
"/Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution"
]
},
"extensions": {
"internal": {
"nordic-semiconductor.nrf-connect": {
"version": "2022.10.30",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-connect-2022.10.30-darwin-x64",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2022.10.7",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.10.7",
"isActive": true
},
"nordic-semiconductor.nrf-devicetree": {
"version": "2022.9.11",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2022.9.11",
"isActive": true
},
"nordic-semiconductor.nrf-kconfig": {
"version": "2022.10.7",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2022.10.7",
"isActive": true
}
},
"external": {
"marus25.cortex-debug": "1.6.6",
"ms-vscode.cpptools": "1.12.4",
"ms-vscode.js-debug": "1.72.1",
"ms-vscode.js-debug-companion": "1.0.18",
"ms-vscode.vscode-js-profile-table": "1.0.3",
"trond-snekvik.gnu-mapfiles": "1.1.0",
"twxs.cmake": "0.0.17"
}
},
"tools": {
"/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.14.1",
"/Applications/SEGGER/JLink/JLinkExe": "7.80b",
"/usr/local/bin/nrfjprog": "10.17.3",
"nrfutil": "Not found",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/cmake": "3.20.5",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/west": "0.14.0",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/python3": "3.9.6",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/ninja": "1.10.2",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/gperf": "3.1",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/dtc": "1.6.1",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/gn": "2060",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/git": "2.32.0"
},
"sdks": [
{
"version": "2.1.0",
"path": "/opt/nordic/ncs/v2.1.0"
},
{
"version": "2.0.0",
"path": "/opt/nordic/ncs/v2.0.0"
},
{
"version": "1.9.1",
"path": "/opt/nordic/ncs/v1.9.1"
}
],
"toolchains": [
{
"version": "1.9.1",
"path": "/opt/nordic/ncs/v1.9.1/toolchain"
},
{
"version": "2.0.0",
"path": "/opt/nordic/ncs/toolchains/v2.0.0"
},
{
"version": "2.1.0",
"path": "/opt/nordic/ncs/toolchains/v2.1.0"
}
],
"connectedDevices": [
{
"serialNumber": "682487810"
}
],
"deviceProviders": [
"nrfjprog"
],
"config": {
"nordic-semiconductor.nrf-connect": {
"topdir": "${nrf-connect.sdk:2.1.0}",
"toolchain": {
"path": "${nrf-connect.toolchain:2.1.0}"
},
"ozonePath": "",
"applications": [
"/Users/mike/Nordic/SDK2.1_Apps/hello_world",
"/Users/mike/Nordic/SDK2.1_Apps/lock_on_nRF52840_DK",
"/Users/mike/Nordic/SDK2.1_Apps/coprocessor_on_nrf52840_DK",
"${workspaceFolder:fund_less2_exer1}",
"${workspaceFolder:fund_less2_exer1_solution}"
],
"applicationOptions": {},
"kconfig": {
"interface": "kconfig"
},
"welcome": {
"showOnStartup": true
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"enableTelemetry": true,
"taskBindings": {},
"debugging": {
"backend": "nRF Debug",
"flash": true
},
"activeAppFollowActiveEditor": true
},
"nordic-semiconductor.nrf-terminal": {
"terminalMode": "character"
},
"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,
"registerUseNaturalFormat": true,
"variableUseNaturalFormat": true,
"dbgServerLogfile": null,
"showRTOS": false,
"showDevDebugOutput": "none"
}
},
"environment": {
"westExe": "west",
"westEnv": {
"ELECTRON_RUN_AS_NODE": "1",
"GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/git/2.32.0_1/libexec/git-core",
"HOME": "/Users/mike",
"PATH": "/opt/nordic/ncs/toolchains/v2.1.0/bin:/opt/nordic/ncs/toolchains/v2.1.0/opt/bin:/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/v2.1.0/arm-zephyr-eabi/bin:/usr/local/opt/openssl@3/bin:/usr/local/sbin:/usr/local/opt/ccache/libexec:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/mike/gn",
"ZEPHYR_BASE": "/opt/nordic/ncs/v2.1.0/zephyr",
"GNUARMEMB_TOOLCHAIN_PATH": "/opt/gnuarmemb",
"ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
"ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk",
"USER": "mike"
},
"inherited": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "/Users/mike",
"PATH": "/usr/local/opt/openssl@3/bin:/usr/local/sbin:/usr/local/opt/ccache/libexec:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/mike/gn",
"GNUARMEMB_TOOLCHAIN_PATH": "/opt/gnuarmemb",
"ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
"USER": "mike"
},
"toolchainPath": "/opt/nordic/ncs/toolchains/v2.1.0",
"toolchainBinPath": "/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin",
"toolchainVersion": "2.1.0"
},
"terminal": {
"shell": null,
"defaultProfile": null
}
}
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.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64",
"osKernel": "21.6.0",
"vscode": "1.72.0",
"electron": "19.0.17",
"node": "v16.14.2"
},
"system": {
"date": "2022-10-09T04:37:16.334Z",
"vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
"nrfConnectForDesktopInstalled": true,
"vscodeUptime": "00:16:49",
"osUptime": "95:29:16",
"cpu": {
"model": "Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz",
"speed": "2700 MHz",
"count": 4
},
"memory": {
"total": "8.00 GB",
"free": "0.02 GB"
}
},
"workspace": {
"name": "Mikes_NCS_apps (Workspace)",
"workspaceFile": "/Users/mike/Nordic/SDK2.1_Apps/Mikes_NCS_apps.code-workspace",
"folders": [
"/Users/mike/Nordic/SDK2.1_Apps/hello_world",
"/Users/mike/Nordic/SDK2.1_Apps/lock_on_nRF52840_DK",
"/Users/mike/Nordic/SDK2.1_Apps/coprocessor_on_nrf52840_DK",
"/Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1",
"/Users/mike/Downloads/Nordic_Developer_Academy/fund_less2_exer1_solution"
]
},
"extensions": {
"internal": {
"nordic-semiconductor.nrf-connect": {
"version": "2022.10.30",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-connect-2022.10.30-darwin-x64",
"isActive": true
},
"nordic-semiconductor.nrf-terminal": {
"version": "2022.10.7",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-terminal-2022.10.7",
"isActive": true
},
"nordic-semiconductor.nrf-devicetree": {
"version": "2022.9.11",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2022.9.11",
"isActive": true
},
"nordic-semiconductor.nrf-kconfig": {
"version": "2022.10.7",
"path": "/Users/mike/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2022.10.7",
"isActive": true
}
},
"external": {
"marus25.cortex-debug": "1.6.6",
"ms-vscode.cpptools": "1.12.4",
"ms-vscode.js-debug": "1.72.1",
"ms-vscode.js-debug-companion": "1.0.18",
"ms-vscode.vscode-js-profile-table": "1.0.3",
"trond-snekvik.gnu-mapfiles": "1.1.0",
"twxs.cmake": "0.0.17"
}
},
"tools": {
"/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.14.1",
"/Applications/SEGGER/JLink/JLinkExe": "7.80b",
"/usr/local/bin/nrfjprog": "10.17.3",
"nrfutil": "Not found",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/cmake": "3.20.5",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/west": "0.14.0",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/python3": "3.9.6",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/ninja": "1.10.2",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/gperf": "3.1",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/dtc": "1.6.1",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/gn": "2060",
"/opt/nordic/ncs/toolchains/v2.1.0/bin/git": "2.32.0"
},
"sdks": [
{
"version": "2.1.0",
"path": "/opt/nordic/ncs/v2.1.0"
},
{
"version": "2.0.0",
"path": "/opt/nordic/ncs/v2.0.0"
},
{
"version": "1.9.1",
"path": "/opt/nordic/ncs/v1.9.1"
}
],
"toolchains": [
{
"version": "1.9.1",
"path": "/opt/nordic/ncs/v1.9.1/toolchain"
},
{
"version": "2.0.0",
"path": "/opt/nordic/ncs/toolchains/v2.0.0"
},
{
"version": "2.1.0",
"path": "/opt/nordic/ncs/toolchains/v2.1.0"
}
],
"connectedDevices": [
{
"serialNumber": "682487810"
}
],
"deviceProviders": [
"nrfjprog"
],
"config": {
"nordic-semiconductor.nrf-connect": {
"topdir": "${nrf-connect.sdk:2.1.0}",
"toolchain": {
"path": "${nrf-connect.toolchain:2.1.0}"
},
"ozonePath": "",
"applications": [
"/Users/mike/Nordic/SDK2.1_Apps/hello_world",
"/Users/mike/Nordic/SDK2.1_Apps/lock_on_nRF52840_DK",
"/Users/mike/Nordic/SDK2.1_Apps/coprocessor_on_nrf52840_DK",
"${workspaceFolder:fund_less2_exer1}",
"${workspaceFolder:fund_less2_exer1_solution}"
],
"applicationOptions": {},
"kconfig": {
"interface": "kconfig"
},
"welcome": {
"showOnStartup": true
},
"west": {
"env": {
"$base": "terminal"
}
},
"boardRoots": [],
"enableTelemetry": true,
"taskBindings": {},
"debugging": {
"backend": "nRF Debug",
"flash": true
},
"activeAppFollowActiveEditor": true
},
"nordic-semiconductor.nrf-terminal": {
"terminalMode": "character"
},
"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,
"registerUseNaturalFormat": true,
"variableUseNaturalFormat": true,
"dbgServerLogfile": null,
"showRTOS": false,
"showDevDebugOutput": "none"
}
},
"environment": {
"westExe": "west",
"westEnv": {
"ELECTRON_RUN_AS_NODE": "1",
"GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/v2.1.0/Cellar/git/2.32.0_1/libexec/git-core",
"HOME": "/Users/mike",
"PATH": "/opt/nordic/ncs/toolchains/v2.1.0/bin:/opt/nordic/ncs/toolchains/v2.1.0/opt/bin:/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/v2.1.0/arm-zephyr-eabi/bin:/usr/local/opt/openssl@3/bin:/usr/local/sbin:/usr/local/opt/ccache/libexec:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/mike/gn",
"ZEPHYR_BASE": "/opt/nordic/ncs/v2.1.0/zephyr",
"GNUARMEMB_TOOLCHAIN_PATH": "/opt/gnuarmemb",
"ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
"ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk",
"USER": "mike"
},
"inherited": {
"ELECTRON_RUN_AS_NODE": "1",
"HOME": "/Users/mike",
"PATH": "/usr/local/opt/openssl@3/bin:/usr/local/sbin:/usr/local/opt/ccache/libexec:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/mike/gn",
"GNUARMEMB_TOOLCHAIN_PATH": "/opt/gnuarmemb",
"ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb",
"USER": "mike"
},
"toolchainPath": "/opt/nordic/ncs/toolchains/v2.1.0",
"toolchainBinPath": "/opt/nordic/ncs/toolchains/v2.1.0/opt/zephyr-sdk/arm-zephyr-eabi/bin",
"toolchainVersion": "2.1.0"
},
"terminal": {
"shell": null,
"defaultProfile": null
}
}