I’m trying to recompile some code that worked fine on Workbench several months ago. Now, cloud compile is failing as it can’t find header files:
I’ve gone through advice on similar topics, created new projects using Particle Workbench, checked settings.json files for "C_Cpp.default.configurationProvider": "particle.particle-vscode-core"
everything seems in order.
I’ve uninstalled Particle Workbench and Visual Studio and reinstalled from scratch – same issue. I targeted different firmware (1.0.0 rather than 1.3.1) and got different header files reported as missing (!).
My Environment Audit is below, any suggestions would be gratefully received…
{
"workspace": {
"name": "nfc5",
"isWorkspace": false,
"folders": [
{
"location": "/Users/tim/Dropbox/Projects/Innovatise/Technical/Particle/WorkbenchProjects/nfc5",
"hasValidPath": true,
"settings": {
"firmwareName": "deviceOS",
"firmwareVersion": "1.3.1-rc.1",
"targetDevice": "",
"targetPlatform": "argon",
"compileButtonAction": "localAppDeviceOS",
"flashButtonAction": "localAppDeviceOS",
"disableWelcomeScreen": false,
"disableLocalCompilerDirtyCheck": false,
"enableVerboseLocalCompilerLogging": false
},
"files": [
".DS_Store",
".vscode",
".vscode/launch.json",
".vscode/settings.json",
"README.md",
"argon_firmware_1566596491689.bin",
"argon_firmware_1566596542375.bin",
"project.properties",
"src",
"src/TOTP.cpp",
"src/TOTP.h",
"src/epd2in9.cpp",
"src/epd2in9.h",
"src/epdif.cpp",
"src/epdif.h",
"src/epdpaint.cpp",
"src/epdpaint.h",
"src/font12.cpp",
"src/font16.cpp",
"src/font20.cpp",
"src/font24.cpp",
"src/font8.cpp",
"src/fontIcon12.c",
"src/fonts.h",
"src/gfxfont.h",
"src/imagedata.cpp",
"src/imagedata.h",
"src/nfc5.ino",
"src/qrcode.cpp",
"src/qrcode.h",
"src/qrtest.h",
"src/sha1.cpp",
"src/sha1.h"
]
}
]
},
"cli": {
"binpath": "/Users/tim/.vscode/extensions/particle.particle-vscode-core-1.5.1/src/cli/bin/darwin/amd64/particle",
"ok": true,
"version": "1.43.3",
"installed": 1566593506306
},
"localCompiler": {
"ok": true,
"dependencies": [
{
"id": "deviceOS@1.3.1-rc.1",
"ok": true
},
{
"id": "gcc-arm@5.3.1",
"ok": true
},
{
"id": "buildtools@1.1.0",
"ok": true
},
{
"id": "buildscripts@1.6.1",
"ok": true
},
{
"id": "openocd@0.11.1-adhoc6ea4372.0",
"ok": true
},
{
"id": "deviceOS@1.0.1",
"ok": true
},
{
"id": "deviceOS@1.0.0",
"ok": true
}
]
},
"platform": {
"os": "darwin",
"type": "Darwin",
"release": "18.7.0",
"arch": "x64",
"path": {
"key": "PATH",
"value": "/Users/tim/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
},
"homeDir": "/Users/tim",
"particleDir": "/Users/tim/.particle",
"localCompilerToolchainDir": "/Users/tim/.particle/toolchains"
},
"env": {
"TMPDIR": "/var/folders/vp/65z0cht53q3ghb31c02y1nk80000gn/T/",
"__CF_USER_TEXT_ENCODING": "0x1F5:0:2",
"SHELL": "/bin/bash",
"HOME": "/Users/tim",
"Apple_PubSub_Socket_Render": "/private/tmp/com.apple.launchd.MXdacoULjU/Render",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.8fHw5o746e/Listeners",
"PATH": "/Users/tim/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"LOGNAME": "tim",
"XPC_SERVICE_NAME": "com.microsoft.VSCode.22960",
"USER": "tim",
"XPC_FLAGS": "0x0",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-gb\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_NODE_CACHED_DATA_DIR": "/Users/tim/Library/Application Support/Code/CachedData/f06011ac164ae4dc8e753a3fe7f9549844d15e35",
"VSCODE_LOGS": "/Users/tim/Library/Application Support/Code/logs/20190823T223512",
"VSCODE_IPC_HOOK": "/Users/tim/Library/Application Support/Code/1.37.1-main.sock",
"VSCODE_PID": "872",
"PWD": "/",
"SHLVL": "1",
"_": "/Users/tim/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
"PIPE_LOGGING": "true",
"VERBOSE_LOGGING": "true",
"VSCODE_IPC_HOOK_EXTHOST": "/var/folders/vp/65z0cht53q3ghb31c02y1nk80000gn/T/vscode-ipc-f4fb2ca5-700d-4526-a99f-0fa3667b9046.sock",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_LOG_STACK": "false",
"VSCODE_PREVENT_FOREIGN_INSPECT": "true",
"ELECTRON_RUN_AS_NODE": "1",
"APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true"
},
"versions": {
"http_parser": "2.8.0",
"node": "10.11.0",
"v8": "6.9.427.31-electron.0",
"uv": "1.23.0",
"zlib": "1.2.11",
"ares": "1.14.0",
"modules": "69",
"nghttp2": "1.33.0",
"napi": "3",
"openssl": "1.1.0",
"icu": "62.2",
"unicode": "11.0",
"cldr": "33.1",
"tz": "2019a"
},
"vscode": {
"appName": "Visual Studio Code",
"appRoot": "/Users/tim/Applications/Visual Studio Code.app/Contents/Resources/app",
"machineId": "6c9d2bc8f91b89624add29c0abeae7fb42bf539fa1cdb2e3e57cd668fa9bcead",
"sessionId": "e5b0c02e-ed9f-4b5e-a4fe-b06cb99c1e341566596362200",
"version": "1.37.1"
},
"extensions": [
{
"id": "ms-vscode.node-debug",
"version": "1.35.3"
},
{
"id": "ms-vscode.node-debug2",
"version": "1.33.0"
},
{
"id": "ms-vscode.references-view",
"version": "0.0.29"
},
{
"id": "marus25.cortex-debug",
"version": "0.3.1"
},
{
"id": "ms-vscode.cpptools",
"version": "0.25.0"
},
{
"id": "particle.particle-vscode-core",
"version": "1.5.1"
},
{
"id": "particle.particle-vscode-pack",
"version": "1.5.1"
},
{
"id": "particle.particle-vscode-snippets",
"version": "1.5.1"
},
{
"id": "particle.particle-vscode-theme",
"version": "1.5.1"
}
]
}