Cloud Compile doesn't work in workbench but works in Particle Build

Cloud compile from workbench seems to be failing and it’s not particularly clear to me where the issue lies. I copy the same code to build and add the same libraries to the project and it works. Here are the places where errors are mentioned during the cloud compile process.

make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/Aloha.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-12-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=12 -DPLATFORM_NAME=argon -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00C -DUSBD_PID_CDC=0xC00C -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DINCLUDE_PLATFORM=1 -DSOFTDEVICE_PRESENT=1 -DS140 -DPRODUCT_ID=12 -DPRODUCT_FIRMWARE_VERSION=65535 -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-config-project.h\" -DENABLE_FEM=1 -DNRF_802154_PROJECT_CONFIG=\"openthread-platform-config.h\" -DRAAL_SOFTDEVICE=1 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=1.4.4 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/argon -I../hal/network/lwip/esp32 -I../hal/src/nRF52840 -I../hal/src/armv7 -I../hal/src/nRF52840 -I../hal/src/nRF52840/lwip -I../hal/src/nRF52840/freertos -I../hal/src/nRF52840/openthread -I../hal/src/nRF52840/mbedtls -I../hal/src/nRF52840/littlefs -I../hal/network/api -I../hal/network/lwip -I../hal/network/lwip/posix -I../hal/network/openthread -I../hal/network/lwip/wiznet -I../hal/network/ncp -I../hal/network/ncp/at_parser -I../third_party/lwip/lwip/src/include -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/GCC/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/CMSIS/nrf52 -I../third_party/openthread/openthread/include -I../third_party/openthread/openthread/src/core -I../third_party/openthread/openthread/examples/platforms -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/hal -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/rsch -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/rsch/raal -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/rsch/raal/softdevice -I../third_party/wiznet_driver/wiznet_driver/Ethernet -I../gsm0710muxer/gsm0710muxer/include -I../platform/shared/inc -I../third_party/nrf5_sdk -I../third_party/nrf5_sdk/nrf5_sdk/components/toolchain/cmsis/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/mdk -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/src/prs -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/util -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/crc32 -I../third_party/nrf5_sdk/nrf5_sdk/integration/nrfx/legacy -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log/src -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/queue -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/mbr/nrf52840/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/strerror -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_flags -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc/acm -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/common -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/nrf_ble_gatt -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/ble_advertising -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/t2t_lib -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/platform -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/message -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/record -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/lauchapp -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/text -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/uri -I../third_party/nrf5_sdk/nrf5_sdk/external/nrf_cc310/include -I../third_party/nrf5_sdk/nrf5_sdk/external/utf_converter -I../third_party/littlefs/littlefs -I../platform/MCU/nRF52840/inc -I../dynalib/inc -Isrc -I./libraries -Ilib/ArduinoJson/src -Ilib/Wiegand/src -Ilib/ModbusMasterWithSetSlave/src -Ilib/CoreLibrary/src -I. -MD -MP -MF ../build/target/user/platform-12-msrc/Aloha.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=ESP32 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0xD4000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,1,1406 -DMODULE
Error: Command failed with exit code 1: /Users/ikebai/.vscode/extensions/particle.particle-vscode-core-1.9.0/src/cli/bin/darwin/amd64/particle cloud compile argon --target 1.4.4 --no-update-check

...

make -C ../../../user 
make[2]: Entering directory '/firmware/user'
Building cpp file: src/Aloha.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p ../build/target/user/platform-12-msrc/
arm-none-eabi-gcc -DSTM32_DEVICE -DnRF52840 -DNRF52840_XXAA -DPLATFORM_THREADING=1 -DPLATFORM_ID=12 -DPLATFORM_NAME=argon -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD00C -DUSBD_PID_CDC=0xC00C -DSPARK_PLATFORM -g3 -gdwarf-2 -Os -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DINCLUDE_PLATFORM=1 -DSOFTDEVICE_PRESENT=1 -DS140 -DPRODUCT_ID=12 -DPRODUCT_FIRMWARE_VERSION=65535 -DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"openthread-config-project.h\" -DENABLE_FEM=1 -DNRF_802154_PROJECT_CONFIG=\"openthread-platform-config.h\" -DRAAL_SOFTDEVICE=1 -D_WIZCHIP_=W5500 -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DLFS_CONFIG=lfs_config.h -DSYSTEM_VERSION_STRING=1.4.4 -DRELEASE_BUILD -I./inc -I../wiring/inc -I../system/inc -I../third_party/miniz/miniz -I../services/inc -I../third_party/nanopb/nanopb -I../communication/inc -I../hal/inc -I../hal/shared -I../hal/src/argon -I../hal/network/lwip/esp32 -I../hal/src/nRF52840 -I../hal/src/armv7 -I../hal/src/nRF52840 -I../hal/src/nRF52840/lwip -I../hal/src/nRF52840/freertos -I../hal/src/nRF52840/openthread -I../hal/src/nRF52840/mbedtls -I../hal/src/nRF52840/littlefs -I../hal/network/api -I../hal/network/lwip -I../hal/network/lwip/posix -I../hal/network/openthread -I../hal/network/lwip/wiznet -I../hal/network/ncp -I../hal/network/ncp/at_parser -I../third_party/lwip/lwip/src/include -I../third_party/freertos/freertos/FreeRTOS/Source/include -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/GCC/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/external/freertos/portable/CMSIS/nrf52 -I../third_party/openthread/openthread/include -I../third_party/openthread/openthread/src/core -I../third_party/openthread/openthread/examples/platforms -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/hal -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/rsch -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/rsch/raal -I../third_party/openthread/openthread/third_party/NordicSemiconductor/drivers/radio/rsch/raal/softdevice -I../third_party/wiznet_driver/wiznet_driver/Ethernet -I../gsm0710muxer/gsm0710muxer/include -I../platform/shared/inc -I../third_party/nrf5_sdk -I../third_party/nrf5_sdk/nrf5_sdk/components/toolchain/cmsis/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/include -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/mdk -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/hal -I../third_party/nrf5_sdk/nrf5_sdk/modules/nrfx/drivers/src/prs -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/util -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/crc32 -I../third_party/nrf5_sdk/nrf5_sdk/integration/nrfx/legacy -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/log/src -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/experimental_section_vars -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/delay -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/queue -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/common -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/mbr/nrf52840/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140 -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers -I../third_party/nrf5_sdk/nrf5_sdk/components/softdevice/s140/headers/nrf52 -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_fifo -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/strerror -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/fstorage -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/atomic_flags -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc -I../third_party/nrf5_sdk/nrf5_sdk/components/libraries/usbd/class/cdc/acm -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/common -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/nrf_ble_gatt -I../third_party/nrf5_sdk/nrf5_sdk/components/ble/ble_advertising -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/t2t_lib -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/platform -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/message -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/generic/record -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/lauchapp -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/text -I../third_party/nrf5_sdk/nrf5_sdk/components/nfc/ndef/uri -I../third_party/nrf5_sdk/nrf5_sdk/external/nrf_cc310/include -I../third_party/nrf5_sdk/nrf5_sdk/external/utf_converter -I../third_party/littlefs/littlefs -I../platform/MCU/nRF52840/inc -I../dynalib/inc -Isrc -I./libraries -Ilib/ArduinoJson/src -Ilib/Wiegand/src -Ilib/ModbusMasterWithSetSlave/src -Ilib/CoreLibrary/src -I. -MD -MP -MF ../build/target/user/platform-12-msrc/Aloha.o.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -Wundef -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -DSPARK_PLATFORM_NET=ESP32 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc  -DLOG_INCLUDE_SOURCE_INFO=1 -DPARTICLE_USER_MODULE -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0xD4000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=6 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,1,1406 -DMODULE
	at makeError (/Users/ikebai/.vscode/extensions/particle.particle-vscode-core-1.9.0/node_modules/execa/lib/error.js:58:11)
	at handlePromise (/Users/ikebai/.vscode/extensions/particle.particle-vscode-core-1.9.0/node_modules/execa/index.js:114:26)

- - - -

Any help much appreciated. Thanks

have you tried using the local compilation tasks?

https://docs.particle.io/tutorials/developer-tools/workbench/#local-build-and-flash

also, reminder that we need this info to help troubleshoot:

Apologies for my delayed response! I didn’t realise there was a reply. Here’s an audit of the environment. Let me know if X’d out any information that was important. In terms of reproducing my issue, it’s just when I do a cloud compile from workbench, it throws the error. If I do a local compile, everything seems fine. I’m not sure if I can provide more information outside of providing source files.


*** WARNING: MAY CONTAIN CONFIDENTIAL INFORMATION - PLEASE SANITIZE BEFORE SHARING ***
To report an issue, visit:
https://community.particle.io/t/information-how-to-report-bugs-and-provide-feedback/44245

{
    "username": "XXXX",
    "workspace": {
        "name": "XXXX",
        "isWorkspace": false,
        "folders": [
            {
                "location": "XXXX",
                "hasValidPath": true,
                "settings": {
                    "firmwareName": "deviceOS",
                    "firmwareVersion": "1.4.4",
                    "targetDevice": "XXXX",
                    "targetPlatform": "argon",
                    "compileButtonAction": "localAppDeviceOS",
                    "flashButtonAction": "localAppDeviceOS",
                    "disableWelcomeScreen": false,
                    "disableLocalCompilerDirtyCheck": false,
                    "enableVerboseLocalCompilerLogging": false,
                    "compileDefines": [],
                    "customDeviceOSLocation": ""
                },
                "files": [
                    ".vscode",
                    ".vscode/launch.json",
                    ".vscode/settings.json",
                    "README.md",
                    "lib",
                    "lib/ArduinoJson",
                    "lib/CoreLibrary",
                    "lib/ModbusMasterWithSetSlave",
                    "lib/Wiegand",
                    "project.properties",
                    "src",
                    "src/XXXX.cpp",
                    "src/XXXX.ino",
                    "target",
                    "target/1.4.4"
                ]
            }
        ]
    },
    "cli": {
        "binpath": "/XXXX/.vscode/extensions/particle.particle-vscode-core-1.10.0/src/cli/bin/darwin/amd64/particle",
        "ok": true,
        "version": "2.2.0",
        "installed": 1582672391992
    },
    "localCompiler": {
        "ok": true,
        "dependencies": [
            {
                "id": "deviceOS@1.4.4",
                "ok": true
            },
            {
                "id": "gcc-arm@5.3.1",
                "ok": true
            },
            {
                "id": "buildtools@1.1.1",
                "ok": true
            },
            {
                "id": "buildscripts@1.9.2",
                "ok": true
            },
            {
                "id": "openocd@0.11.2-adhoc6ea4372.0",
                "ok": true
            },
            {
                "id": "deviceOS@1.1.1",
                "ok": true
            },
            {
                "id": "deviceOS@1.1.0",
                "ok": true
            },
            {
                "id": "deviceOS@1.0.1",
                "ok": true
            },
            {
                "id": "deviceOS@1.0.0",
                "ok": true
            },
            {
                "id": "deviceOS@0.8.0-rc.10",
                "ok": true
            },
            {
                "id": "deviceOS@0.7.0",
                "ok": true
            },
            {
                "id": "deviceOS@0.6.3",
                "ok": true
            },
            {
                "id": "gcc-arm@4.9.3",
                "ok": true
            }
        ]
    },
    "platform": {
        "os": "darwin",
        "type": "Darwin",
        "release": "19.3.0",
        "arch": "x64",
        "path": {
            "key": "PATH",
            "value": "XXXX"
        },
        "homeDir": "XXXX",
        "particleDir": "XXXX",
        "localCompilerToolchainDir": "XXXX"
    },
    "env": {
        "ELECTRON_RUN_AS_NODE": "1",
        "TERM_PROGRAM": "iTerm.app",
        "rvm_bin_path": "/XXXX/.rvm/bin",
        "GEM_HOME": "/XXXX/.rvm/gems/ruby-2.6.3",
        "SHELL": "/bin/bash",
        "TERM": "xterm-256color",
        "TMPDIR": "/var/folders/n8/1zkj1zfn61z7tr9ll9dd62nh0000gn/T/",
        "IRBRC": "/XXXX/.rvm/rubies/ruby-2.6.3/.irbrc",
        "TERM_PROGRAM_VERSION": "3.3.9",
        "TERM_SESSION_ID": "w0t0p0:086EF8D1-F881-45BC-B37B-551351E313D1",
        "MY_RUBY_HOME": "/XXXX/.rvm/rubies/ruby-2.6.3",
        "USER": "XXXX",
        "rvm_path": "/XXXX/.rvm",
        "SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.QEmKZEJ5QO/Listeners",
        "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0xF",
        "rvm_prefix": "XXXX",
        "PATH": "XXXX",
        "PWD": "XXXX",
        "LANG": "en_AU.UTF-8",
        "ITERM_PROFILE": "Default",
        "XPC_FLAGS": "0x0",
        "XPC_SERVICE_NAME": "0",
        "rvm_version": "1.29.9 (latest)",
        "COLORFGBG": "7;0",
        "HOME": "XXXX",
        "SHLVL": "2",
        "LC_TERMINAL_VERSION": "3.3.9",
        "rvm_ruby_string": "ruby-2.6.3",
        "ITERM_SESSION_ID": "w0t0p0:086EF8D1-F881-45BC-B37B-551351E313D1",
        "LOGNAME": "XXXX",
        "GEM_PATH": "XXXX",
        "LC_TERMINAL": "iTerm2",
        "rvm_delete_flag": "0",
        "RUBY_VERSION": "ruby-2.6.3",
        "COLORTERM": "truecolor",
        "_": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "VSCODE_CLI": "1",
        "ELECTRON_NO_ATTACH_CONSOLE": "1",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR": "/XXXX/Library/Application Support/Code/CachedData/fe22a9645b44368865c0ba92e2fb881ff1afce94",
        "VSCODE_LOGS": "/XXXX/Library/Application Support/Code/logs/20200325T115403",
        "VSCODE_IPC_HOOK": "/XXXX/Library/Application Support/Code/1.43.1-main.sock",
        "VSCODE_PID": "1020",
        "AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
        "PIPE_LOGGING": "true",
        "VERBOSE_LOGGING": "true",
        "VSCODE_IPC_HOOK_EXTHOST": "/var/folders/n8/1zkj1zfn61z7tr9ll9dd62nh0000gn/T/vscode-ipc-ea8a91c7-b3f0-45db-a1a4-f53e341aab11.sock",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_LOG_STACK": "false"
    },
    "versions": {
        "node": "12.8.1",
        "v8": "7.8.279.23-electron.0",
        "uv": "1.30.1",
        "zlib": "1.2.11",
        "brotli": "1.0.7",
        "ares": "1.15.0",
        "modules": "75",
        "nghttp2": "1.39.2",
        "napi": "4",
        "llhttp": "1.1.4",
        "http_parser": "2.8.0",
        "openssl": "1.1.0",
        "cldr": "35.1",
        "icu": "64.2",
        "tz": "2019b",
        "unicode": "12.1",
        "electron": "7.1.11"
    },
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
        "machineId": "5662d71a10fc68e2160e82a095559088f6fd3ed9cd94eaf6b58b5a8b79e3f069",
        "sessionId": "423aa1d4-7406-4450-bf53-22be65440e7d1585097668918",
        "version": "1.43.1"
    },
    "extensions": [
        {
            "id": "ms-vscode.node-debug",
            "version": "1.43.2"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.42.1"
        },
        {
            "id": "ms-vscode.references-view",
            "version": "0.0.47"
        },
        {
            "id": "aliariff.vscode-erb-beautify",
            "version": "0.2.0"
        },
        {
            "id": "Dart-Code.dart-code",
            "version": "3.8.1"
        },
        {
            "id": "Dart-Code.flutter",
            "version": "3.8.1"
        },
        {
            "id": "jnbt.vscode-rufo",
            "version": "0.0.1"
        },
        {
            "id": "karunamurti.haml",
            "version": "1.3.0"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.3.5"
        },
        {
            "id": "ms-python.python",
            "version": "2020.3.69010"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "0.27.0-insiders4"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.10.0"
        },
        {
            "id": "particle.particle-vscode-pack",
            "version": "1.10.0"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.10.0"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.10.0"
        },
        {
            "id": "PKief.material-icon-theme",
            "version": "4.0.1"
        },
        {
            "id": "rebornix.ruby",
            "version": "0.27.0"
        },
        {
            "id": "romanrei.material-dark",
            "version": "1.1.0"
        },
        {
            "id": "wingrunr21.vscode-ruby",
            "version": "0.27.0"
        }
    ]
}

*** WARNING: MAY CONTAIN CONFIDENTIAL INFORMATION - PLEASE SANITIZE BEFORE SHARING ***
To report an issue, visit:
https://community.particle.io/t/information-how-to-report-bugs-and-provide-feedback/44245


...when I do a cloud compile from workbench, it throws the error. If I do a local compile, everything seems fine.

try removing the dependencies.* lines from your project.properties file (but save them so you can put them back later), save, and re-try the Particle: Cloud Compile command

You can mark them as comments by adding a hash # symbol before them.

1 Like

Thanks for the suggestion. That didn’t work but it did make me go down the path of troubleshooting what exactly was the problem. I replaced my main code with just the empty void setup() and void loop() functions and it was still failing which made me think it was something to do with the file structure.

In the end, I managed to narrow down the suspect to the Library “Wiegand”. I can compile fine with the default loop and setup on a new project, but when i do Particle: Library Install --> Wiegand, cloud compile will fail afterwards. Unfortunately I’m not savvy enough to troubleshoot further as to why this specific library might be causing problems with cloud compile. I’m also not sure if you’d be able to replicate my problem by making a new project and adding the Wiegand library to it.

Can you show your code?
I tried the library in Web IDE with the inbuilt usage.ino and it doesn’t compile there either.
There are some syntactic and semantic errors in the sample so we’d need to see whether you are making the same mistakes in your project or not.

Another problem with that library is that there is an SKrfid.ino file inside the src folder which may trip the compiler.
And even that SKrfid.ino again contains errors.

Try removing that “rogue” SKrfid.ino along with the respective project.properties file from the library and also the entire examples subfolder and see whether that changes anything.

@m_m or @bsatrom, can you have a look at that library as it doesn’t offer a GitHub link to contact the contributor to file an issue?

1 Like

Thanks @ScruffR, I’ll investigate.

1 Like

I've notified the author of this library, asked them to push a fix, and link the library to a public GitHub repo. Will post updates as they come.

2 Likes

Had a similar issue as above where the local compile was working, but the cloud compile was not. I had altered some of the libraries and what ended up working for me was commenting out some of those project dependencies in the properties file. Thanks for the advice Scruff.

1 Like