Cloud flash failed because path must be a string

I am having problems trying to cloud flash argon and xenon. Both are connected to a mesh network with the argon as the hub. Both publish to the cloud but only every 3 minutes (infrequently). When I do a cloud flash, I get an error that a string is expected.

I have removed all the example projects and the duplicate library header files but still no luck.

I am using Visual Studio code with the latest Particle plug-in (v.1.13.8). I am also logged into my account.

Here is the output when trying to flash:


Targeting version: 1.4.4

Including:
    lib\Adafruit_MAX31855\src\Adafruit_MAX31855.h
    lib\RunningAverage\src\RunningAverage.h
    src\jsonBuilder.h
    src\jsonParser.h
    src\temp-sense-hub.ino
    lib\Adafruit_MAX31855\src\Adafruit_MAX31855.cpp
    lib\RunningAverage\src\RunningAverage.cpp
    src\jsonBuilder.cpp
    src\jsonParser.cpp
    src\temp-sense-hub.cpp
    project.properties

attempting to flash firmware to your device temp_sense_hub-argon
Failed to flash temp_sense_hub-argon: Path must be a string. Received { filepath: 'lib\\Adafruit_MAX31855\\src\\Adafruit_MAX31855.h' }
Error: Command failed with exit code 1: c:\Users\mpete\.vscode\extensions\particle.particle-vscode-core-1.13.8\src\cli\bin\windows\amd64\particle.exe cloud flash temp_sense_hub-argon --target 1.4.4 --no-update-check
Targeting version: 1.4.4

Including:
    lib\Adafruit_MAX31855\src\Adafruit_MAX31855.h
    lib\RunningAverage\src\RunningAverage.h
    src\jsonBuilder.h
    src\jsonParser.h
    src\temp-sense-hub.ino
    lib\Adafruit_MAX31855\src\Adafruit_MAX31855.cpp
    lib\RunningAverage\src\RunningAverage.cpp
    src\jsonBuilder.cpp
    src\jsonParser.cpp
    src\temp-sense-hub.cpp
    project.properties

attempting to flash firmware to your device temp_sense_hub-argon
Failed to flash temp_sense_hub-argon: Path must be a string. Received { filepath: 'lib\\Adafruit_MAX31855\\src\\Adafruit_MAX31855.h' }
	at makeError (c:\Users\mpete\.vscode\extensions\particle.particle-vscode-core-1.13.8\node_modules\execa\lib\error.js:59:11)
	at handlePromise (c:\Users\mpete\.vscode\extensions\particle.particle-vscode-core-1.13.8\node_modules\execa\index.js:114:26)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

- - - -


if you haven’t already, please run through the troubleshooting steps here:

I got part way though the steps (up to disabling the VS code extensions). I wanted to verify that the issue was limited to v.1.4.4. So I plugged in a different Argon that I was able to use last week with local flash. When I tried to start the serial monitor I get a similar warning:

Polling for available serial device...
Opening serial monitor for com port: "undefined"
"path" is not defined: undefined

I did uninstall some tool chain versions. Did I disrupt some critical variables somewhere?

My device (Argon (com11)) shows up in the device manager. It doesn’t show any errors there.

I got part way though the steps

keep going - ultimately, the audit log tends to be the most helpful step :+1:

I completed the suggested steps and still have the issue.

  1. Windows virus software and firewall were both off.
  2. Unused VS Code extensions are globally disabled.
  3. No USB cable required for cloud flashing. I checked the USB cable for the serial monitor, it is okay.
  4. No USB hub, no cloud drive, no custom shell commands.
  5. latest versions of VS Code (1.56.0) and Particle extension workbench core (1.13.8)
  6. I am logged in to Particle
  7. for the serial monitor issue, the device manager shows my Argon connected to com11

The two symptoms I am seeing are:

  1. cloud flash fails with an error “path must be a string”
  2. seral monitor won’t start with error “path is not defined”

Since it was last working 2 weeks ago, I uninstalled 3 tool chain versions. Now I only have 1.4.4 (required for mesh networking) and 2.0.1 installed.

Here is the environment audit report.

{
    "username": "mpeterson@theiatech.com",
    "workspace": {
        "name": "temp_sense_hub",
        "isWorkspace": false,
        "folders": [
            {
                "location": "c:\\Users\\mpete\\Documents\\Drive\\Particle\\Smart_home\\temp_sense_hub",
                "hasValidPath": true,
                "settings": {
                    "firmwareName": "deviceOS",
                    "firmwareVersion": "1.4.4",
                    "targetDevice": "temp_sense_hub-argon",
                    "targetPlatform": "argon",
                    "compileButtonAction": "localAppDeviceOS",
                    "flashButtonAction": "localAppDeviceOS",
                    "disableWelcomeScreen": true,
                    "disableDeviceOSOutdatedCheck": true,
                    "disableLocalCompilerDirtyCheck": true,
                    "enableVerboseLocalCompilerLogging": false,
                    "compileDefines": [],
                    "customDeviceOSLocation": "",
                    "maxAllowedToolchains": 4
                },
                "files": [
                    ".vscode",
                    ".vscode\\launch.json",
                    ".vscode\\settings.json",
                    "Archive",
                    "Archive\\Temp_sense_hub v.1.11.8.zip",
                    "Archive\\temp_sense_hub v.1.12.0.zip",
                    "Archive\\temp_sense_hub v.1.13.0.zip",
                    "Archive\\temp_sense_hub v.1.13.1.zip",
                    "Archive\\temp_sense_hub v.1.13.2.zip",
                    "Archive\\temp_sense_hub v.1.14.0.zip",
                    "Archive\\temp_sense_hub v.1.14.1.zip",
                    "Archive\\temp_sense_hub v.1.14.3.zip",
                    "Archive\\temp_sense_hub v.1.15.0.zip",
                    "Archive\\temp_sense_hub v.1.15.2.zip",
                    "Archive\\temp_sense_hub v.1.15.3.zip",
                    "Archive\\temp_sense_hub v.1.16.0.zip",
                    "Archive\\temp_sense_hub v.1.16.1.zip",
                    "Archive\\temp_sense_hub v.1.16.2.zip",
                    "Data",
                    "Data\\High fire trigger study 201228.xlsx",
                    "lib",
                    "lib\\Adafruit_MAX31855",
                    "lib\\RunningAverage",
                    "project.properties",
                    "README.md",
                    "src",
                    "src\\jsonBuilder.cpp",
                    "src\\jsonBuilder.h",
                    "src\\jsonParser.cpp",
                    "src\\jsonParser.h",
                    "src\\temp-sense-hub.cpp",
                    "src\\temp-sense-hub.ino",
                    "target",
                    "target\\1.4.4"
                ]
            }
        ]
    },
    "cli": {
        "binpath": "c:\\Users\\mpete\\.vscode\\extensions\\particle.particle-vscode-core-1.13.8\\src\\cli\\bin\\windows\\amd64\\particle.exe",
        "ok": true,
        "version": "2.11.0",
        "installed": 1620275128444
    },
    "localCompiler": {
        "ok": true,
        "dependencies": [
            {
                "id": "deviceOS@2.1.0",
                "ok": true
            },
            {
                "id": "gcc-arm@9.2.1",
                "ok": true
            },
            {
                "id": "buildtools@1.1.1",
                "ok": true
            },
            {
                "id": "buildscripts@1.10.0",
                "ok": true
            },
            {
                "id": "openocd@0.11.2-adhoc6ea4372.0",
                "ok": true
            },
            {
                "id": "deviceOS@1.4.4",
                "ok": true
            },
            {
                "id": "gcc-arm@5.3.1",
                "ok": true
            }
        ]
    },
    "platform": {
        "os": "windows",
        "type": "Windows_NT",
        "release": "10.0.19041",
        "arch": "x64",
        "path": {
            "key": "Path",
            "value": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Mu\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files\\Breault Research Organization\\APEX 2019\\Application;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\mpete\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mpete\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\curl;C:\\Users\\mpete\\AppData\\Roaming\\npm;C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\mpete\\AppData\\Roaming\\Python\\Python37\\Scripts;C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Users\\mpete\\AppData\\Local\\Programs\\ExifTool;C:\\Users\\mpete\\AppData\\Local\\GitHubDesktop\\bin",
            "entries": [
                "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath",
                "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common",
                "C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler",
                "C:\\Windows\\system32",
                "C:\\Windows",
                "C:\\Windows\\System32\\Wbem",
                "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\",
                "C:\\Windows\\System32\\OpenSSH\\",
                "C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn\\",
                "C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\",
                "C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\",
                "C:\\Program Files\\PuTTY\\",
                "C:\\Program Files\\nodejs\\",
                "C:\\Program Files\\Mu\\bin",
                "C:\\WINDOWS\\system32",
                "C:\\WINDOWS",
                "C:\\WINDOWS\\System32\\Wbem",
                "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\",
                "C:\\WINDOWS\\System32\\OpenSSH\\",
                "C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\",
                "C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\",
                "C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin",
                "C:\\Program Files (x86)\\QuickTime\\QTSystem\\",
                "C:\\Program Files\\Breault Research Organization\\APEX 2019\\Application",
                "C:\\Program Files\\Git\\cmd",
                "C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL",
                "C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\",
                "C:\\Users\\mpete\\AppData\\Local\\Microsoft\\WindowsApps",
                "C:\\Users\\mpete\\AppData\\Local\\particle\\bin",
                "C:\\OpenSSL-Win32\\bin",
                "C:\\curl",
                "C:\\Users\\mpete\\AppData\\Roaming\\npm",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
                "C:\\Users\\mpete\\AppData\\Roaming\\Python\\Python37\\Scripts",
                "C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\bin",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\ExifTool",
                "C:\\Users\\mpete\\AppData\\Local\\GitHubDesktop\\bin"
            ]
        },
        "homeDir": "C:\\Users\\mpete",
        "particleDir": "C:\\Users\\mpete\\.particle",
        "particleToolchainDir": "C:\\Users\\mpete\\.particle\\toolchains"
    },
    "env": {
        "ALLUSERSPROFILE": "C:\\ProgramData",
        "APPDATA": "C:\\Users\\mpete\\AppData\\Roaming",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "CARBON_MEM_DISABLE": "1",
        "CHROME_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_19064_OHBPZNXUIQSEAVES",
        "CommonProgramFiles": "C:\\Program Files\\Common Files",
        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
        "CommonProgramW6432": "C:\\Program Files\\Common Files",
        "COMPUTERNAME": "MARK-PC5",
        "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
        "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
        "ELECTRON_RUN_AS_NODE": "1",
        "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer",
        "FPS_BROWSER_USER_PROFILE_STRING": "Default",
        "GENICAM_GENTL32_PATH": "C:\\Program Files (x86)\\Common Files\\Sentech\\GenTL\\",
        "GENICAM_GENTL64_PATH": "C:\\Program Files\\Common Files\\Sentech\\GenTL\\",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\mpete",
        "INTEL_DEV_REDIST": "C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",
        "LOCALAPPDATA": "C:\\Users\\mpete\\AppData\\Local",
        "LOGONSERVER": "\\\\MARK-PC5",
        "MIC_LD_LIBRARY_PATH": "C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",
        "NUMBER_OF_PROCESSORS": "12",
        "OneDrive": "C:\\Users\\mpete\\OneDrive",
        "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
        "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
        "OS": "Windows_NT",
        "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Mu\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files\\Breault Research Organization\\APEX 2019\\Application;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\mpete\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mpete\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\curl;C:\\Users\\mpete\\AppData\\Roaming\\npm;C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\mpete\\AppData\\Roaming\\Python\\Python37\\Scripts;C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Users\\mpete\\AppData\\Local\\Programs\\ExifTool;C:\\Users\\mpete\\AppData\\Local\\GitHubDesktop\\bin",
        "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
        "PROCESSOR_ARCHITECTURE": "AMD64",
        "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 158 Stepping 10, GenuineIntel",
        "PROCESSOR_LEVEL": "6",
        "PROCESSOR_REVISION": "9e0a",
        "ProgramData": "C:\\ProgramData",
        "ProgramFiles": "C:\\Program Files",
        "ProgramFiles(x86)": "C:\\Program Files (x86)",
        "ProgramW6432": "C:\\Program Files",
        "PSModulePath": ";C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\platform\\PowerShell",
        "PUBLIC": "C:\\Users\\Public",
        "SESSIONNAME": "Console",
        "SystemDrive": "C:",
        "SystemRoot": "C:\\WINDOWS",
        "TEMP": "C:\\Users\\mpete\\AppData\\Local\\Temp",
        "TMP": "C:\\Users\\mpete\\AppData\\Local\\Temp",
        "USERDOMAIN": "MARK-PC5",
        "USERDOMAIN_ROAMINGPROFILE": "MARK-PC5",
        "USERNAME": "mpete",
        "USERPROFILE": "C:\\Users\\mpete",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
        "VSCODE_CWD": "C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\0b2477e192bd9b06de6a11c271c48560-1.56.0-main-sock",
        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-1e78469b-8b46-4f1d-b90a-4c9749417bc0-sock",
        "VSCODE_LOG_NATIVE": "false",
        "VSCODE_LOG_STACK": "false",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\mpete\\AppData\\Roaming\\Code\\CachedData\\cfa2e2181003230...",
        "VSCODE_PID": "19064",
        "VSCODE_PIPE_LOGGING": "true",
        "VSCODE_VERBOSE_LOGGING": "true",
        "VXIPNPPATH": "C:\\Program Files (x86)\\IVI Foundation\\VISA\\",
        "VXIPNPPATH64": "C:\\Program Files\\IVI Foundation\\VISA\\",
        "windir": "C:\\WINDOWS",
        "ZES_ENABLE_SYSMAN": "1"
    },
    "versions": {
        "node": "14.16.0",
        "v8": "8.9.255.24-electron.0",
        "uv": "1.40.0",
        "zlib": "1.2.11",
        "brotli": "1.0.9",
        "ares": "1.16.1",
        "modules": "87",
        "nghttp2": "1.41.0",
        "napi": "7",
        "llhttp": "2.1.3",
        "openssl": "1.1.1",
        "cldr": "38.0",
        "icu": "68.1",
        "tz": "2021a",
        "unicode": "13.0",
        "electron": "12.0.4"
    },
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "c:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "machineId": "4a8aab23823879a...",
        "sessionId": "e938a019-3a30-4f5...",
        "version": "1.56.0"
    },
    "extensions": [
        {
            "id": "ms-vscode-remote.remote-wsl-recommender",
            "version": "0.0.9"
        },
        {
            "id": "ms-vscode.js-debug",
            "version": "1.56.2"
        },
        {
            "id": "ms-vscode.js-debug-companion",
            "version": "1.0.13"
        },
        {
            "id": "ms-vscode.node-debug",
            "version": "1.44.27"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.42.6"
        },
        {
            "id": "ms-vscode.references-view",
            "version": "0.0.80"
        },
        {
            "id": "ms-vscode.vscode-js-profile-table",
            "version": "0.0.18"
        },
        {
            "id": "austin.code-gnu-global",
            "version": "0.2.2"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.3.12"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "1.3.1"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.13.8"
        },
        {
            "id": "particle.particle-vscode-pack",
            "version": "1.13.8"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.13.8"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.13.8"
        },
        {
            "id": "whizkydee.material-palenight-theme",
            "version": "2.0.1"
        }
    ]
}

I don’t see any missing paths in the audit log. All paths appear to be plausible.

let’s try from a new Particle project:

  1. run the Particle: Create Project command and follow the prompts
  2. after your new project loads, open the src/<name>.ino file
  3. run the Particle: Configure Project for Device command and follow the prompts
  4. run the Particle: Cloud Compile command

if you get an error, please share that error and its logs here. then run the Particle: Audit Environment command and share that report here as well.

Unfortunately still getting the same error. I tried cloud compiling with versions 1.4.4, 2.1.0, and 3.0.0 and they all give the same error (the later 2 I changed the device to Argon).

Compiling code for xenon
Targeting version: 1.4.4

Including:
    src\temp_sense_hub2.ino
    project.properties

attempting to compile firmware
Compile failed: Path must be a string. Received { filepath: 'src\\temp_sense_hub2.ino' }
Error: Command failed with exit code 1: c:\Users\mpete\.vscode\extensions\particle.particle-vscode-core-1.13.8\src\cli\bin\windows\amd64\particle.exe cloud compile xenon --target 1.4.4 --no-update-check

Compiling code for xenon
Targeting version: 1.4.4

Including:
    src\temp_sense_hub2.ino
    project.properties

attempting to compile firmware
Compile failed: Path must be a string. Received { filepath: 'src\\temp_sense_hub2.ino' }
	at makeError (c:\Users\mpete\.vscode\extensions\particle.particle-vscode-core-1.13.8\node_modules\execa\lib\error.js:59:11)
	at handlePromise (c:\Users\mpete\.vscode\extensions\particle.particle-vscode-core-1.13.8\node_modules\execa\index.js:114:26)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)

- - - -

And the environment audit for the first test with v.1.4.4 and Xenon board shows:

{
    "username": "mpeterson@theiatech.com",
    "workspace": {
        "name": "temp_sense_hub2",
        "isWorkspace": false,
        "folders": [
            {
                "location": "c:\\Users\\mpete\\Documents\\Drive\\Particle\\Smart_home\\temp_sense_hub2",
                "hasValidPath": true,
                "settings": {
                    "firmwareName": "deviceOS",
                    "firmwareVersion": "1.4.4",
                    "targetDevice": "temp_sense_remote_1",
                    "targetPlatform": "xenon",
                    "compileButtonAction": "localAppDeviceOS",
                    "flashButtonAction": "localAppDeviceOS",
                    "disableWelcomeScreen": true,
                    "disableDeviceOSOutdatedCheck": true,
                    "disableLocalCompilerDirtyCheck": true,
                    "enableVerboseLocalCompilerLogging": false,
                    "compileDefines": [],
                    "customDeviceOSLocation": "",
                    "maxAllowedToolchains": 4
                },
                "files": [
                    ".vscode",
                    ".vscode\\launch.json",
                    ".vscode\\settings.json",
                    "project.properties",
                    "README.md",
                    "src",
                    "src\\temp_sense_hub2.ino"
                ]
            }
        ]
    },
    "cli": {
        "binpath": "c:\\Users\\mpete\\.vscode\\extensions\\particle.particle-vscode-core-1.13.8\\src\\cli\\bin\\windows\\amd64\\particle.exe",
        "ok": true,
        "version": "2.11.0",
        "installed": 1620275128444
    },
    "localCompiler": {
        "ok": true,
        "dependencies": [
            {
                "id": "deviceOS@2.1.0",
                "ok": true
            },
            {
                "id": "gcc-arm@9.2.1",
                "ok": true
            },
            {
                "id": "buildtools@1.1.1",
                "ok": true
            },
            {
                "id": "buildscripts@1.10.0",
                "ok": true
            },
            {
                "id": "openocd@0.11.2-adhoc6ea4372.0",
                "ok": true
            },
            {
                "id": "deviceOS@1.4.4",
                "ok": true
            },
            {
                "id": "gcc-arm@5.3.1",
                "ok": true
            }
        ]
    },
    "platform": {
        "os": "windows",
        "type": "Windows_NT",
        "release": "10.0.19041",
        "arch": "x64",
        "path": {
            "key": "Path",
            "value": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Mu\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files\\Breault Research Organization\\APEX 2019\\Application;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\mpete\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mpete\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\curl;C:\\Users\\mpete\\AppData\\Roaming\\npm;C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\mpete\\AppData\\Roaming\\Python\\Python37\\Scripts;C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Users\\mpete\\AppData\\Local\\Programs\\ExifTool;C:\\Users\\mpete\\AppData\\Local\\GitHubDesktop\\bin",
            "entries": [
                "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath",
                "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common",
                "C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler",
                "C:\\Windows\\system32",
                "C:\\Windows",
                "C:\\Windows\\System32\\Wbem",
                "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\",
                "C:\\Windows\\System32\\OpenSSH\\",
                "C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn\\",
                "C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\",
                "C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\",
                "C:\\Program Files\\PuTTY\\",
                "C:\\Program Files\\nodejs\\",
                "C:\\Program Files\\Mu\\bin",
                "C:\\WINDOWS\\system32",
                "C:\\WINDOWS",
                "C:\\WINDOWS\\System32\\Wbem",
                "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\",
                "C:\\WINDOWS\\System32\\OpenSSH\\",
                "C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\",
                "C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\",
                "C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin",
                "C:\\Program Files (x86)\\QuickTime\\QTSystem\\",
                "C:\\Program Files\\Breault Research Organization\\APEX 2019\\Application",
                "C:\\Program Files\\Git\\cmd",
                "C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL",
                "C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\",
                "C:\\Users\\mpete\\AppData\\Local\\Microsoft\\WindowsApps",
                "C:\\Users\\mpete\\AppData\\Local\\particle\\bin",
                "C:\\OpenSSL-Win32\\bin",
                "C:\\curl",
                "C:\\Users\\mpete\\AppData\\Roaming\\npm",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\bin",
                "C:\\Users\\mpete\\AppData\\Roaming\\Python\\Python37\\Scripts",
                "C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\bin",
                "C:\\Users\\mpete\\AppData\\Local\\Programs\\ExifTool",
                "C:\\Users\\mpete\\AppData\\Local\\GitHubDesktop\\bin"
            ]
        },
        "homeDir": "C:\\Users\\mpete",
        "particleDir": "C:\\Users\\mpete\\.particle",
        "particleToolchainDir": "C:\\Users\\mpete\\.particle\\toolchains"
    },
    "env": {
        "ALLUSERSPROFILE": "C:\\ProgramData",
        "APPDATA": "C:\\Users\\mpete\\AppData\\Roaming",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "CARBON_MEM_DISABLE": "1",
        "CHROME_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_19064_OHBPZNXUIQSEAVES",
        "CommonProgramFiles": "C:\\Program Files\\Common Files",
        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
        "CommonProgramW6432": "C:\\Program Files\\Common Files",
        "COMPUTERNAME": "MARK-PC5",
        "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
        "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
        "ELECTRON_RUN_AS_NODE": "1",
        "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer",
        "FPS_BROWSER_USER_PROFILE_STRING": "Default",
        "GENICAM_GENTL32_PATH": "C:\\Program Files (x86)\\Common Files\\Sentech\\GenTL\\",
        "GENICAM_GENTL64_PATH": "C:\\Program Files\\Common Files\\Sentech\\GenTL\\",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\mpete",
        "INTEL_DEV_REDIST": "C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",
        "LOCALAPPDATA": "C:\\Users\\mpete\\AppData\\Local",
        "LOGONSERVER": "\\\\MARK-PC5",
        "MIC_LD_LIBRARY_PATH": "C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",
        "NUMBER_OF_PROCESSORS": "12",
        "OneDrive": "C:\\Users\\mpete\\OneDrive",
        "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
        "ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
        "OS": "Windows_NT",
        "Path": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Microsoft SQL Server\\80\\Tools\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Mu\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files\\Breault Research Organization\\APEX 2019\\Application;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\mpete\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\mpete\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\mpete\\AppData\\Local\\particle\\bin;C:\\OpenSSL-Win32\\bin;C:\\curl;C:\\Users\\mpete\\AppData\\Roaming\\npm;C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\mpete\\AppData\\Roaming\\Python\\Python37\\Scripts;C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Users\\mpete\\AppData\\Local\\Programs\\ExifTool;C:\\Users\\mpete\\AppData\\Local\\GitHubDesktop\\bin",
        "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
        "PROCESSOR_ARCHITECTURE": "AMD64",
        "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 158 Stepping 10, GenuineIntel",
        "PROCESSOR_LEVEL": "6",
        "PROCESSOR_REVISION": "9e0a",
        "ProgramData": "C:\\ProgramData",
        "ProgramFiles": "C:\\Program Files",
        "ProgramFiles(x86)": "C:\\Program Files (x86)",
        "ProgramW6432": "C:\\Program Files",
        "PSModulePath": ";C:\\Users\\mpete\\AppData\\Local\\Google\\Cloud SDK\\google-cloud-sdk\\platform\\PowerShell",
        "PUBLIC": "C:\\Users\\Public",
        "SESSIONNAME": "Console",
        "SystemDrive": "C:",
        "SystemRoot": "C:\\WINDOWS",
        "TEMP": "C:\\Users\\mpete\\AppData\\Local\\Temp",
        "TMP": "C:\\Users\\mpete\\AppData\\Local\\Temp",
        "USERDOMAIN": "MARK-PC5",
        "USERDOMAIN_ROAMINGPROFILE": "MARK-PC5",
        "USERNAME": "mpete",
        "USERPROFILE": "C:\\Users\\mpete",
        "VSCODE_AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
        "VSCODE_CWD": "C:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\0b2477e192bd9b06de6a11c271c48560-1.56.0-main-sock",
        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-2c75ea48-8ea0-41a2-83e7-8ae61f4f4afe-sock",
        "VSCODE_LOG_NATIVE": "false",
        "VSCODE_LOG_STACK": "false",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\mpete\\AppData\\Roaming\\Code\\CachedData\\cfa2e218100323074ac1948c885448fdf4de2a7f",
        "VSCODE_PID": "19064",
        "VSCODE_PIPE_LOGGING": "true",
        "VSCODE_VERBOSE_LOGGING": "true",
        "VXIPNPPATH": "C:\\Program Files (x86)\\IVI Foundation\\VISA\\",
        "VXIPNPPATH64": "C:\\Program Files\\IVI Foundation\\VISA\\",
        "windir": "C:\\WINDOWS",
        "ZES_ENABLE_SYSMAN": "1"
    },
    "versions": {
        "node": "14.16.0",
        "v8": "8.9.255.24-electron.0",
        "uv": "1.40.0",
        "zlib": "1.2.11",
        "brotli": "1.0.9",
        "ares": "1.16.1",
        "modules": "87",
        "nghttp2": "1.41.0",
        "napi": "7",
        "llhttp": "2.1.3",
        "openssl": "1.1.1",
        "cldr": "38.0",
        "icu": "68.1",
        "tz": "2021a",
        "unicode": "13.0",
        "electron": "12.0.4"
    },
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "c:\\Users\\mpete\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "machineId": "4a8aab23823879a0ceded5...",
        "sessionId": "d780e13b-910d-4849-8c...",
        "version": "1.56.0"
    },
    "extensions": [
        {
            "id": "ms-vscode-remote.remote-wsl-recommender",
            "version": "0.0.9"
        },
        {
            "id": "ms-vscode.js-debug",
            "version": "1.56.2"
        },
        {
            "id": "ms-vscode.js-debug-companion",
            "version": "1.0.13"
        },
        {
            "id": "ms-vscode.node-debug",
            "version": "1.44.27"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.42.6"
        },
        {
            "id": "ms-vscode.references-view",
            "version": "0.0.80"
        },
        {
            "id": "ms-vscode.vscode-js-profile-table",
            "version": "0.0.18"
        },
        {
            "id": "austin.code-gnu-global",
            "version": "0.2.2"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.3.12"
        },
        {
            "id": "ms-python.vscode-pylance",
            "version": "2021.5.1"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "1.3.1"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.13.8"
        },
        {
            "id": "particle.particle-vscode-pack",
            "version": "1.13.8"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.13.8"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.13.8"
        },
        {
            "id": "whizkydee.material-palenight-theme",
            "version": "2.0.1"
        }
    ]
}

I tried a local compile with v. 3.0.0 and Argon device and basically empty sketch. This was my first ever 3.0.0 compile and it took a really long time but it was successful. Maybe that’s normal.

The serial monitor connected with USB to an Argon board still gives me the path error as well.

the mystery deepens.

This was my first ever 3.0.0 compile and it took a really long time but it was successful

that is normal on windows and indicates your setup is otherwise working fine. Workbench uses the Particle CLI under the hood to facilitate cloud interactions. let’s try using the Particle CLI directly:

  1. using the same new, empty project (temp_sense_hub2)
  2. run the Particle: Launch CLI command
  3. in the terminal pane that launches, run particle cloud compile xenon --target 1.4.4

does that fail in the same way? if so, let’s try resetting your CLI installation:

Compiling from the CLI gave the same error.

I tried resetting the CLI following the instructions. I deleted the files listed in the post including the node_v12 folder. Resetting the CLI worked. :grinning:

spark/flash/status	success	temp_sense_remote_1	5/11/21 at 9:11:02 am

I am able to cloud flash again. Thank you for your help. I love the Particle environment.

1 Like

Resetting the CLI worked

ah, well i’m glad you’re back in action but obviously we have some work to do still in getting Particle CLI a bit more reliable.

thanks for your patience and persistence :pray: :heart: