If I go to “Particle: Install Library”, type neopixel
it adds the library to my lib
folder, however this shows the following error in my workspace:
Import line:
#include "neopixel/neopixel.h";
Error:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/nickjonas/Projects/raincheck/src/raincheck.ino).C/C++(1696)
cannot open source file "neopixel/neopixel.h"C/C++(1696)
It however will work with the dotstar library:
#include "dotstar/dotstar.h";
Do I need to update my includePath as the error says, and how do I go about doing that?
Here is the output of an Audit Environment:
{
"username": "xxx@gmail.com",
"workspace": {
"name": "raincheck",
"isWorkspace": false,
"folders": [
{
"location": "/Users/nickjonas/Projects/raincheck",
"hasValidPath": true,
"settings": {
"firmwareName": "deviceOS",
"firmwareVersion": "1.0.1",
"targetDevice": "Raincheck",
"targetPlatform": "photon",
"compileButtonAction": "localAppDeviceOS",
"flashButtonAction": "localAppDeviceOS",
"disableWelcomeScreen": false,
"disableLocalCompilerDirtyCheck": false,
"enableVerboseLocalCompilerLogging": false
},
"files": [
".vscode",
".vscode/launch.json",
".vscode/settings.json",
"README.md",
"lib",
"lib/dotstar",
"lib/neopixel",
"photon_firmware_1567988490450.bin",
"photon_firmware_1567989389602.bin",
"photon_firmware_1568031316178.bin",
"project.properties",
"src",
"src/raincheck.ino",
"target",
"target/obj",
"target/raincheck.map"
]
}
]
},
"cli": {
"binpath": "/Users/nickjonas/.vscode/extensions/particle.particle-vscode-core-1.5.3/src/cli/bin/darwin/amd64/particle",
"ok": true,
"version": "1.46.2",
"installed": 1567987124355
},
"localCompiler": {
"ok": true,
"dependencies": [
{
"id": "deviceOS@1.0.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
}
]
},
"platform": {
"os": "darwin",
"type": "Darwin",
"release": "18.5.0",
"arch": "x64",
"path": {
"key": "PATH",
"value": "/Users/nickjonas/google-cloud-sdk/bin:/Users/nickjonas/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
},
"homeDir": "/Users/nickjonas",
"particleDir": "/Users/nickjonas/.particle",
"localCompilerToolchainDir": "/Users/nickjonas/.particle/toolchains"
},
"env": {
"TMPDIR": "/var/folders/qf/3_5db5454wl5y_nvk_z7l0f40000gn/T/",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"SHELL": "/bin/bash",
"HOME": "/Users/nickjonas",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.ViwmMkXTzi/Listeners",
"Apple_PubSub_Socket_Render": "/private/tmp/com.apple.launchd.xK2gmzBFEM/Render",
"LOGNAME": "nickjonas",
"PATH": "/Users/nickjonas/google-cloud-sdk/bin:/Users/nickjonas/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"XPC_SERVICE_NAME": "com.apple.xpc.launchd.oneshot.0x10000001.Electron",
"COMMAND_MODE": "unix2003",
"USER": "nickjonas",
"SECURITYSESSIONID": "186a8",
"XPC_FLAGS": "0x0",
"VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
"VSCODE_NODE_CACHED_DATA_DIR": "/Users/nickjonas/Library/Application Support/Code/CachedData/3db7e09f3b61f915d03bbfa58e258d6eee843f35",
"VSCODE_LOGS": "/Users/nickjonas/Library/Application Support/Code/logs/20190908T232117",
"VSCODE_IPC_HOOK": "/Users/nickjonas/Library/Application Support/Code/1.38.0-main.sock",
"VSCODE_PID": "512",
"EDITOR": "vim",
"GPG_TTY": "not a tty",
"HISTCONTROL": "ignoreboth",
"HISTFILESIZE": "32768",
"HISTSIZE": "32768",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8",
"LESS_TERMCAP_md": "\u001b[38;5;136m",
"LSCOLORS": "BxBxhxDxfxhxhxhxhxcxcx",
"MANPAGER": "less -X",
"NODE_REPL_HISTORY": "/Users/nickjonas/.node_history",
"NODE_REPL_HISTORY_SIZE": "32768",
"NODE_REPL_MODE": "sloppy",
"PS1": "\\[\\033]0;\\W\\007\\]\\[\u001b[1m\\]\\n\\[\u001b[38;5;166m\\]\\u\\[\u001b[97m\\] at \\[\u001b[38;5;136m\\]\\h\\[\u001b[97m\\] in \\[\u001b[38;5;64m\\]\\w$(prompt_git \"\\[\u001b[97m\\] on \\[\u001b[38;5;61m\\]\" \"\\[\u001b[38;5;33m\\]\")\\n\\[\u001b[97m\\]$ \\[\u001b(B\u001b[m\\]",
"PS2": "\\[\u001b[38;5;136m\\]→ \\[\u001b(B\u001b[m\\]",
"PWD": "/",
"PYTHONIOENCODING": "UTF-8",
"SHLVL": "1",
"TERM": "xterm-256color",
"_": "/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/qf/3_5db5454wl5y_nvk_z7l0f40000gn/T/vscode-ipc-174d1a7a-23de-41de-b4a8-e045e5ff155f.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": "/Applications/Visual Studio Code.app/Contents/Resources/app",
"machineId": "5d462ec3763a5d2ce4536ea9d8bd89ee05ed437efdca647c3989c0a8881c94e4",
"sessionId": "b6506938-b703-446c-a82a-3fa814f66af71567999283675",
"version": "1.38.0"
},
"extensions": [
{
"id": "ms-vscode.node-debug",
"version": "1.38.4"
},
{
"id": "ms-vscode.node-debug2",
"version": "1.33.0"
},
{
"id": "ms-vscode.references-view",
"version": "0.0.30"
},
{
"id": "dkundel.vscode-new-file",
"version": "4.0.2"
},
{
"id": "infeng.vscode-react-typescript",
"version": "1.3.1"
},
{
"id": "marus25.cortex-debug",
"version": "0.3.1"
},
{
"id": "ms-vscode.cpptools",
"version": "0.25.1"
},
{
"id": "ms-vscode.sublime-keybindings",
"version": "4.0.3"
},
{
"id": "particle.particle-vscode-core",
"version": "1.5.3"
},
{
"id": "particle.particle-vscode-pack",
"version": "1.5.3"
},
{
"id": "particle.particle-vscode-snippets",
"version": "1.5.3"
},
{
"id": "particle.particle-vscode-theme",
"version": "1.5.3"
},
{
"id": "Tyriar.shell-launcher",
"version": "0.3.0"
}
]
}