Particle: Audit Environment Output:
*** 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": "{REDACTED}",
"workspace": {
"name": "gateway-firmware (Workspace)",
"isWorkspace": true,
"configFile": "gateway-firmware.code-workspace",
"root": "/Users/justicereed/Documents/Engineering/Hardware/gateway-firmware",
"files": [
".DS_Store",
".git",
".git/COMMIT_EDITMSG",
".git/FETCH_HEAD",
".git/HEAD",
".git/ORIG_HEAD",
".git/config",
".git/description",
".git/hooks",
".git/index",
".git/info",
".git/logs",
".git/modules",
".git/objects",
".git/packed-refs",
".git/refs",
".git/sequencer",
".gitignore",
".vscode",
".vscode/settings.json",
"README.md",
"gateway-firmware.code-workspace",
"{REDACTED}",
"lib",
"lib/.DS_Store",
"{REDACTED}",
"project.properties",
"src",
"{REDACTED}",
"src/gateway-firmware.cpp",
"src/gateway-firmware.ino",
"{REDACTED}",
"target",
"target/gateway-firmware.bin",
"target/gateway-firmware.bin.crc_block",
"target/gateway-firmware.bin.no_crc",
"target/gateway-firmware.elf",
"target/gateway-firmware.hex",
"target/gateway-firmware.lst",
"target/gateway-firmware.map",
"target/obj"
]
},
"vscode": {
"appName": "Visual Studio Code",
"appRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
"machineId": "4cc4cb9a12ea10c756da5e4376e9dea6d7c38af8833f85573107faa9b6beb4e8",
"sessionId": "c545e37b-f9a9-405f-a4a7-131567e2b1f31547070536618",
"version": "1.30.2"
},
"cli": {
"binpath": "/Users/justicereed/.vscode/extensions/particle.particle-vscode-core-1.0.0-alpha.6/src/cli/bin/darwin/amd64/particle",
"ok": true,
"version": "1.36.3"
},
"localCompiler": {
"dependencies": [
"deviceOS@0.6.4",
"gcc-arm@4.9.3",
"buildtools@1.0.1",
"buildscripts@1.0.0"
]
},
"platform": {
"os": "darwin",
"type": "Darwin",
"release": "18.0.0",
"arch": "x64",
"path": {
"key": "PATH",
"value": "/Users/justicereed/.nvm/versions/node/v8.9.4/bin:/Users/justicereed/Library/Python/3.6/bin:/Users/justicereed/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin"
},
"homeDir": "/Users/justicereed",
"particleDir": "/Users/justicereed/.particle",
"localCompilerToolchainDir": "/Users/justicereed/.particle/toolchains"
},
"env": {
"TMPDIR": "/var/folders/60/_39c6nf109v28rbbvzcwwxnh0000gn/T/",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"SHELL": "/bin/bash",
"HOME": "/Users/justicereed",
"Apple_PubSub_Socket_Render": "/private/tmp/com.apple.launchd.d5yGv5hPUK/Render",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.CEQc881I3b/Listeners",
"PATH": "/Users/justicereed/.nvm/versions/node/v8.9.4/bin:/Users/justicereed/Library/Python/3.6/bin:/Users/justicereed/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin",
"LOGNAME": "justicereed",
"XPC_SERVICE_NAME": "com.microsoft.VSCode.1508",
"USER": "justicereed",
"XPC_FLAGS": "0x0",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_NODE_CACHED_DATA_DIR": "/Users/justicereed/Library/Application Support/Code/CachedData/61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8",
"VSCODE_LOGS": "/Users/justicereed/Library/Application Support/Code/logs/20190109T154855",
"VSCODE_IPC_HOOK": "/Users/justicereed/Library/Application Support/Code/1.30.2-main.sock",
"VSCODE_PID": "13903",
"NVM_BIN": "/Users/justicereed/.nvm/versions/node/v8.9.4/bin",
"NVM_CD_FLAGS": "",
"NVM_DIR": "/Users/justicereed/.nvm",
"PWD": "/",
"SHLVL": "1",
"_": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"AMD_ENTRYPOINT": "vs/workbench/node/extensionHostProcess",
"PIPE_LOGGING": "true",
"VERBOSE_LOGGING": "true",
"VSCODE_IPC_HOOK_EXTHOST": "/var/folders/60/_39c6nf109v28rbbvzcwwxnh0000gn/T/vscode-ipc-0f6abdc8-516b-4717-b868-af2baa0fa80c.sock",
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
"VSCODE_LOG_STACK": "false",
"VSCODE_LOG_LEVEL": "undefined",
"VSCODE_PREVENT_FOREIGN_INSPECT": "true",
"CRASH_REPORTER_START_OPTIONS": "{\"companyName\":\"Microsoft\",\"productName\":\"VSCode\",\"submitURL\":\"https://rink.hockeyapp.net/api/2/apps/21a48a66799e47fea4f52c0ff81e803d/crashes/upload\",\"extra\":{\"vscode_version\":\"1.30.2\",\"vscode_commit\":\"61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8\",\"vscode_sessionId\":\"c545e37b-f9a9-405f-a4a7-131567e2b1f31547070536618\",\"processName\":\"extensionHost\"},\"crashesDirectory\":\"/var/folders/60/_39c6nf109v28rbbvzcwwxnh0000gn/T\"}",
"ELECTRON_RUN_AS_NODE": "1",
"APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true"
},
"versions": {
"http_parser": "2.7.0",
"node": "8.9.3",
"v8": "6.1.534.41",
"uv": "1.15.0",
"zlib": "1.2.11",
"ares": "1.10.1-DEV",
"modules": "57",
"nghttp2": "1.25.0",
"openssl": "1.0.2n"
},
"extensions": [
{
"id": "ms-vscode.node-debug",
"version": "1.30.4"
},
{
"id": "ms-vscode.node-debug2",
"version": "1.30.3"
},
{
"id": "ms-vscode.references-view",
"version": "0.0.18"
},
{
"id": "marus25.cortex-debug",
"version": "0.1.21"
},
{
"id": "ms-vscode.cpptools",
"version": "0.20.1"
},
{
"id": "particle.particle-vscode-core",
"version": "1.0.0-alpha.6"
},
{
"id": "particle.particle-vscode-snippets",
"version": "1.0.0-alpha.6"
},
{
"id": "particle.particle-vscode-theme",
"version": "1.0.0-alpha.6"
}
]
}
*** 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
Regarding the normal compilation process, I believe it to be a separate issue. I ran into it before, and it seemed to be a problem with not being able to properly link library header files. I remember fixing it months ago, but of course not how I did! 
Here’s the output from the verbose compilation for particle compile:
bash-3.2$ particle compile electron --target 0.6.4 -v
Compiling code for electron
Targeting version: 0.6.4
Including:
{REDACTED}
project.properties
attempting to compile firmware
undefined
Compile failed: Compiler encountered an error
VError: Compile failed: Compiler encountered an error
at /Users/justicereed/.particle/node_modules/particle-cli/dist/cmd/cloud.js:320:10
at process._tickCallback (node.js:401:9)
caused by: Error: Compiler encountered an error
at /Users/justicereed/.particle/node_modules/particle-cli/dist/cmd/cloud.js:336:11
at process._tickCallback (node.js:401:9)