Hi All,
I'm having the following error with Workbench - this issue will occur as I am trying to create a new project, or do most any other Particle Workbench action. I use the Create New Project command and I see the error below. How should I proceed to correct?
I've looked thru the forums and find a similar instance, but no comment or solution came up.
I've restarted the Mac I'm using, updated VSC and Particle Workbench extensions with no effect. I deleted VSC and reinstalled from scratch using the Particle Workbench installation instructions found in Documents, but still seeing the same issue. Worked fine two days ago, and for years...
Below in the environment, I see that Username is blank... This is a fresh install now, and If i try Particle:login I will get the same error as when I try to start a new project.
I don't know what else to try.
particle: Installing plugins... done
ERROR: runtime error: invalid memory address or nil pointer dereference
Error: Command failed with exit code 1: /Users/XXXX/.vscode/extensions/particle.particle-vscode-core-1.16.1/src/cli/bin/darwin/amd64/particle project create --name Test /Users/XXXX/Particle --no-update-check
particle: Installing plugins... done
ERROR: runtime error: invalid memory address or nil pointer dereference
at makeError (/Users/XXXX/.vscode/extensions/particle.particle-vscode-core-1.16.1/node_modules/execa/lib/error.js:59:11)
at handlePromise (/Users/XXXX/.vscode/extensions/particle.particle-vscode-core-1.16.1/node_modules/execa/index.js:114:26)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /Users/XXXX/.vscode/extensions/particle.particle-vscode-core-1.16.1/src/commands/lib/create-project.js:55:11
Environment:
{
"username": null,
"workspace": {
"name": "",
"isWorkspace": false,
"folders":
},
"cli": {
"binpath": "/Users/xxxxxx/.vscode/extensions/particle.particle-vscode-core-1.16.1/src/cli/bin/darwin/amd64/particle",
"ok": true,
"version": "particle: Installing plugins... done\nERROR: runtime error: invalid memory address or nil pointer dereference",
"installed": 1683244261388
},
"localCompiler": {
"ok": true,
"dependencies": [
{
"id": "deviceOS@5.3.0",
"ok": true
},
{
"id": "gcc-arm@10.2.1",
"ok": true
},
{
"id": "buildtools@1.1.1",
"ok": true
},
{
"id": "buildscripts@1.11.0",
"ok": true
},
{
"id": "openocd@0.11.0-particle.4",
"ok": true
},
{
"id": "deviceOS@4.0.2",
"ok": true
},
{
"id": "deviceOS@4.0.1",
"ok": true
},
{
"id": "deviceOS@4.0.0",
"ok": true
}
]
},
"platform": {
"os": "darwin",
"type": "Darwin",
"release": "22.3.0",
"arch": "x64",
"path": {
"key": "PATH",
"value": "/Users/xxxx/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin",
"entries": [
"/Users/xxxx/bin",
"/usr/local/bin",
"/System/Cryptexes/App/usr/bin",
"/usr/bin",
"/bin",
"/usr/sbin",
"/sbin",
"/Applications/VMware Fusion.app/Contents/Public",
"/Library/Apple/usr/bin"
]
},
"homeDir": "/Users/xxxx",
"particleDir": "/Users/xxxx/.particle",
"particleToolchainDir": "/Users/xxxx/.particle/toolchains"
},
"env": {
"COMMAND_MODE": "unix2003",
"HOME": "/Users/xxxx",
"LOGNAME": "xxxx",
"MallocNanoZone": "0",
"ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
"PATH": "/Users/xxxx/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/Apple/usr/bin",
"PWD": "/",
"SHELL": "/bin/bash",
"SHLVL": "1",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.bPgvih4UEZ/Listeners",
"TMPDIR": "/var/folders/z1/9z1ztfms6x5f5l_rl8t67kqm0000gn/T/",
"USER": "xxxxxxxx",
"VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
"VSCODE_CODE_CACHE_PATH": "/Users/xxxx/Library/Application Support/Code/CachedData/b3e4e68a0bc097f0ae7907b217c1119af9e03435",
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
"VSCODE_CRASH_REPORTER_SANDBOXED_HINT": "1",
"VSCODE_CWD": "/",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_IPC_HOOK": "/Users/xxxx/Library/Application Support/Code/1.78-main.sock",
"VSCODE_NLS_CONFIG": "{"locale":"en-us","osLocale":"en-us","availableLanguages":{},"languagePackSupport":true}",
"VSCODE_PID": "2901",
"XPC_FLAGS": "0x0",
"XPC_SERVICE_NAME": "application.com.microsoft.VSCode.61296067.61296073",
"": "/Users/xxxxxxx/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"__CFBundleIdentifier": "com.microsoft.VSCode",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"ELECTRON_RUN_AS_NODE": "1"
},
"versions": {
"node": "16.17.1",
"v8": "10.8.168.25-electron.0",
"uv": "1.43.0",
"zlib": "1.2.12.1-motley",
"brotli": "1.0.9",
"ares": "1.18.1",
"modules": "110",
"nghttp2": "1.47.0",
"napi": "8",
"llhttp": "6.0.9",
"openssl": "1.1.1",
"cldr": "41.0",
"icu": "71.1",
"tz": "2023a",
"unicode": "14.0",
"electron": "22.5.2",
"microsoft-build": "20762381",
"chrome": "108.0.5359.215"
},
"vscode": {
"appName": "Visual Studio Code",
"appRoot": "/Users/xxxx/Applications/Visual Studio Code.app/Contents/Resources/app",
"machineId": "xxxx",
"sessionId": "5606095b-a94d-4467-949a-309462e466c31685122737226",
"version": "1.78.2"
},
"extensions": [
{
"id": "ms-vscode.js-debug",
"version": "1.78.0"
},
{
"id": "ms-vscode.js-debug-companion",
"version": "1.0.18"
},
{
"id": "ms-vscode.vscode-js-profile-table",
"version": "1.0.3"
},
{
"id": "marus25.cortex-debug",
"version": "1.10.0"
},
{
"id": "mcu-debug.debug-tracker-vscode",
"version": "0.0.15"
},
{
"id": "mcu-debug.memory-view",
"version": "0.0.20"
},
{
"id": "mcu-debug.rtos-views",
"version": "0.0.6"
},
{
"id": "ms-vscode.cmake-tools",
"version": "1.14.31"
},
{
"id": "ms-vscode.cpptools",
"version": "1.15.4"
},
{
"id": "ms-vscode.cpptools-extension-pack",
"version": "1.3.0"
},
{
"id": "ms-vscode.cpptools-themes",
"version": "2.0.0"
},
{
"id": "particle.particle-vscode-core",
"version": "1.16.1"
},
{
"id": "particle.particle-vscode-pack",
"version": "1.16.1"
},
{
"id": "particle.particle-vscode-snippets",
"version": "1.16.1"
},
{
"id": "particle.particle-vscode-theme",
"version": "1.16.1"
},
{
"id": "twxs.cmake",
"version": "0.0.17"
}
]
}