Not finding path to library files

References to any library gives a file not found error. For example, ‘application.h’ or ‘Particle.h’ shows file not found.

Is there a path setting or configuration setting I can set?

I tried unloading the extensions and re-installing to no avail. It works fine on another box.

Any suggestions appreciated.

Have you created a project via Ctrl+Shift+P Particle: Create New Project?
This should set the correct toolchain which then knows all these files.

Yes, I have. Set the project, configured for device. I tried adding folder to workspace. Unloaded the extensions and reloaded.

It works on my other machine. Something seems to be messed up on this one.

Thanks

Does Particle: Uninstall Local Compiler and Particle: Install Local Compiler change anyting?
Is the correct target device stated in the status bar
e.g. image
Can you post a screenshot of your project structure?

1 Like

@deanblank try sharing the non-sensitive output produced by running the Particle: Audit Environment command. also fyi: Information: How to report bugs and provide feedback

Will try this evening and feedback.

Thanks

1 Like

Using 0.8.0 rc27 I think - from memory, so dangerous. Yes, device name selected. I was able to do all of this on my other laptop.

Thanks

Uninstall/reinstall didn’t help.

image

Hello @m_m, thanks for the feedback.

I’ve been able to successfully compile and flash on a couple other machines. Unfortunately, not my box I want to use for particle.

Here’s the audit output (hopefully not sharing something I shouldn’t):

*** 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": "",
   "workspace": {
       "name": "test05",
       "isWorkspace": false,
       "folders": [
           {
               "location": "c:\\Users\\dean\\source\\repos\\particle\\workbench\\test05",
               "settings": {
                   "firmwareName": "deviceOS",
                   "firmwareVersion": "0.9.0",
                   "targetDevice": "ct-mesh-xenon-001",
                   "targetPlatform": "xenon",
                   "compileButtonAction": "localAppDeviceOS",
                   "flashButtonAction": "localAppDeviceOS",
                   "disableWelcomeScreen": false,
                   "disableLocalCompilerDirtyCheck": false
               },
               "files": [
                   ".vscode",
                   ".vscode\\launch.json",
                   ".vscode\\settings.json",
                   "project.properties",
                   "README.md",
                   "src",
                   "src\\test05.cpp",
                   "src\\test05.ino",
                   "target",
                   "target\\obj",
                   "target\\test05.bin",
                   "target\\test05.bin.crc_block",
                   "target\\test05.bin.no_crc",
                   "target\\test05.elf",
                   "target\\test05.hex",
                   "target\\test05.lst",
                   "target\\test05.map"
               ]
           }
       ]
   },
   "cli": {
       "binpath": "C:\\Users\\dean\\.vscode\\extensions\\particle.particle-vscode-core-1.2.2\\src\\cli\\bin\\windows\\amd64\\particle.exe",
       "ok": true,
       "version": "1.39.0",
       "installed": 1549085095960
   },
   "localCompiler": {
       "dependencies": [
           "deviceOS@1.0.1",
           "gcc-arm@5.3.1",
           "buildtools@1.0.1",
           "buildscripts@1.2.0",
           "openocd@0.10.0-particle.1",
           "deviceOS@1.0.0",
           "deviceOS@0.9.0",
           "deviceOS@0.8.0-rc.27",
           "deviceOS@0.8.0-rc.26",
           "deviceOS@0.8.0-rc.25",
           "deviceOS@0.7.0"
       ]
   },
   "platform": {
       "os": "windows",
       "type": "Windows_NT",
       "release": "10.0.17134",
       "arch": "x64",
       "path": {
           "key": "Path",
           "value": "C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;s\\Azure\\CLI2\\wbin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files\\Microsoft MPI\\Bin\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\DLLShared\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\10.0\\DLLShared\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\curl\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Amazon\\AWSCLI\\;C:\\Users\\dean\\AppData\\Roaming\\Python\\Python37\\Scripts\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey\\bin;C:\\Users\\dean\\AppData\\Roaming\\Python\\Python37\\Scripts;C:\\Users\\dean\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\dean\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\dean\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\dean\\AppData\\Roaming\\npm;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\dean\\.dotnet\\tools;C:\\Program Files\\LLVM\\bin;C:\\Hugo\\bin;C:\\OpenSSL-Win32\\bin;C:\\Users\\dean\\AppData\\Local\\particle\\bin"
       },
       "homeDir": "C:\\Users\\dean",
       "particleDir": "C:\\Users\\dean\\.particle",
       "localCompilerToolchainDir": "C:\\Users\\dean\\.particle\\toolchains"
   },
   "env": {
       "ALLUSERSPROFILE": "C:\\ProgramData",
       "AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
       "APPDATA": "C:\\Users\\dean\\AppData\\Roaming",
       "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
       "CARBON_MEM_DISABLE": "1",
       "ChocolateyInstall": "C:\\ProgramData\\chocolatey",
       "ChocolateyLastPathUpdate": "Wed Jan 16 21:14:57 2019",
       "CommonProgramFiles": "C:\\Program Files\\Common Files",
       "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
       "CommonProgramW6432": "C:\\Program Files\\Common Files",
       "COMPUTERNAME": "HP-DESKTOP",
       "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
       "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
       "ELECTRON_RUN_AS_NODE": "1",
       "GTK_BASEPATH": "C:\\Program Files (x86)\\GtkSharp\\2.12\\",
       "HOMEDRIVE": "C:",
       "HOMEPATH": "\\Users\\dean",
       "LOCALAPPDATA": "C:\\Users\\dean\\AppData\\Local",
       "LOGONSERVER": "\\\\HP-DESKTOP",
       "MSMPI_BIN": "C:\\Program Files\\Microsoft MPI\\Bin\\",
       "NUMBER_OF_PROCESSORS": "16",
       "OneDrive": "C:\\Users\\dean\\OneDrive",
       "OneDriveConsumer": "C:\\Users\\dean\\OneDrive",
       "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
       "OS": "Windows_NT",
       "Path": "C:\\ProgramData\\DockerDesktop\\version-bin;C:\\Program Files\\Docker\\Docker\\Resources\\bin;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files\\Oculus\\Support\\oculus-runtime;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files\\Microsoft MPI\\Bin\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\DLLShared\\;C:\\Program Files (x86)\\Common Files\\Roxio Shared\\10.0\\DLLShared\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\GtkSharp\\2.12\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\curl\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStudio\\;C:\\Program Files\\Amazon\\AWSCLI\\;C:\\Users\\dean\\AppData\\Roaming\\Python\\Python37\\Scripts\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\bin;C:\\Program Files\\Git\\cmd;C:\\ProgramData\\chocolatey\\bin;C:\\Users\\dean\\AppData\\Roaming\\Python\\Python37\\Scripts;C:\\Users\\dean\\AppData\\Local\\Programs\\Python\\Python37-32\\Scripts\\;C:\\Users\\dean\\AppData\\Local\\Programs\\Python\\Python37-32\\;C:\\Users\\dean\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\dean\\AppData\\Roaming\\npm;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\dean\\.dotnet\\tools;C:\\Program Files\\LLVM\\bin;C:\\Hugo\\bin;C:\\OpenSSL-Win32\\bin;C:\\Users\\dean\\AppData\\Local\\particle\\bin",
       "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
       "PIPE_LOGGING": "true",
       "PROCESSOR_ARCHITECTURE": "AMD64",
       "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 26 Stepping 5, GenuineIntel",
       "PROCESSOR_LEVEL": "6",
       "PROCESSOR_REVISION": "1a05",
       "ProgramData": "C:\\ProgramData",
       "ProgramFiles": "C:\\Program Files",
       "ProgramFiles(x86)": "C:\\Program Files (x86)",
       "ProgramW6432": "C:\\Program Files",
       "PSModulePath": "C:\\Program Files (x86)\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files (x86)\\AWS Tools\\PowerShell\\;C:\\Program Files (x86)\\Google\\Cloud SDK\\google-cloud-sdk\\platform\\PowerShell",
       "PUBLIC": "C:\\Users\\Public",
       "SESSIONNAME": "Console",
       "SystemDrive": "C:",
       "SystemRoot": "C:\\WINDOWS",
       "TEMP": "C:\\Users\\dean\\AppData\\Local\\Temp",
       "TMP": "C:\\Users\\dean\\AppData\\Local\\Temp",
       "VERBOSE_LOGGING": "true",
       "VSCODE_CWD": "C:\\Program Files\\Microsoft VS Code",
       "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
       "VSCODE_IPC_HOOK": "\\\\.\\pipe\\3e03963b7cbbe95a8e1dbe320264c35e-1.31.1-main-sock",
       "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-4a478986-b484-4762-99f0-a0e23bd7dc2e-sock",
       "VSCODE_LOGS": "C:\\Users\\dean\\AppData\\Roaming\\Code\\logs\\20190223T000801",
       "VSCODE_LOG_STACK": "false",
       "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
       "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\dean\\AppData\\Roaming\\Code\\CachedData\\1b8e8302e405050205e69b59abb3559592bb9e60",
       "VSCODE_PID": "14980",
       "VSCODE_PREVENT_FOREIGN_INSPECT": "true",
       "windir": "C:\\WINDOWS"
   },
   "versions": {
       "http_parser": "2.8.0",
       "node": "10.2.0",
       "v8": "6.6.346.32",
       "uv": "1.20.3",
       "zlib": "1.2.11",
       "ares": "1.14.0",
       "modules": "64",
       "nghttp2": "1.29.0",
       "napi": "3",
       "openssl": "1.1.0h"
   },
   "vscode": {
       "appName": "Visual Studio Code",
       "appRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
       "machineId": "3028c12cef49704cf5dce0fa59d699c4c3555e29b7327e7d7c4f968761b935d4",
       "sessionId": "6854cc5f-5711-43e2-bc95-bad3d8ecaa5b1550902083566",
       "version": "1.31.1"
   },
   "extensions": [
       {
           "id": "ms-vscode.node-debug",
           "version": "1.31.2"
       },
       {
           "id": "ms-vscode.node-debug2",
           "version": "1.31.6"
       },
       {
           "id": "ms-vscode.references-view",
           "version": "0.0.24"
       },
       {
           "id": "akamud.vscode-theme-onedark",
           "version": "2.1.0"
       },
       {
           "id": "austin.code-gnu-global",
           "version": "0.2.2"
       },
       {
           "id": "bierner.emojisense",
           "version": "0.4.1"
       },
       {
           "id": "DavidAnson.vscode-markdownlint",
           "version": "0.24.0"
       },
       {
           "id": "dbaeumer.vscode-eslint",
           "version": "1.8.0"
       },
       {
           "id": "dphans.micropython-ide-vscode",
           "version": "0.0.1"
       },
       {
           "id": "dracula-theme.theme-dracula",
           "version": "2.16.0"
       },
       {
           "id": "eg2.tslint",
           "version": "1.0.43"
       },
       {
           "id": "esbenp.prettier-vscode",
           "version": "1.8.1"
       },
       {
           "id": "formulahendry.code-runner",
           "version": "0.9.7"
       },
       {
           "id": "gnhuy91.theme-oceanicnext-sublime",
           "version": "1.2.1"
       },
       {
           "id": "joshpeng.sublime-babel-vscode",
           "version": "0.2.10"
       },
       {
           "id": "llvm-vs-code-extensions.vscode-clangd",
           "version": "0.0.11"
       },
       {
           "id": "marus25.cortex-debug",
           "version": "0.2.3"
       },
       {
           "id": "mitaki28.vscode-clang",
           "version": "0.2.3"
       },
       {
           "id": "ms-azuretools.vscode-azurefunctions",
           "version": "0.15.0"
       },
       {
           "id": "ms-azuretools.vscode-azurestorage",
           "version": "0.7.0"
       },
       {
           "id": "ms-python.python",
           "version": "2019.1.0"
       },
       {
           "id": "ms-vscode.azure-account",
           "version": "0.8.0"
       },
       {
           "id": "ms-vscode.cpptools",
           "version": "0.21.0"
       },
       {
           "id": "ms-vscode.csharp",
           "version": "1.17.1"
       },
       {
           "id": "ms-vsts.team",
           "version": "1.144.1"
       },
       {
           "id": "msjsdiag.debugger-for-chrome",
           "version": "4.11.2"
       },
       {
           "id": "particle.particle-vscode-core",
           "version": "1.2.2"
       },
       {
           "id": "particle.particle-vscode-snippets",
           "version": "1.2.2"
       },
       {
           "id": "particle.particle-vscode-theme",
           "version": "1.2.2"
       },
       {
           "id": "sldobri.bunker",
           "version": "1.1.6"
       },
       {
           "id": "SolarLiner.linux-themes",
           "version": "1.0.1"
       },
       {
           "id": "Unity.unity-debug",
           "version": "2.6.6"
       },
       {
           "id": "vsciot-vscode.azure-iot-toolkit",
           "version": "2.3.0"
       },
       {
           "id": "vsciot-vscode.vscode-arduino",
           "version": "0.2.25"
       },
       {
           "id": "vsciot-vscode.vscode-iot-workbench",
           "version": "0.2.4"
       },
       {
           "id": "whizkydee.material-palenight-theme",
           "version": "1.9.4"
       },
       {
           "id": "zhuangtongfa.Material-theme",
           "version": "2.18.2"
       }
   ]
}

*** 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

Thanks for your help,

Dean

regarding how to report a bug, the step: Does your issue occur when all extensions are disabled? (Launch with code --disable-extensions to check.)

How can I test the particle extension with extensions disabled? What am I missing?

Step to reproduce:

  • Create a project
  • Open parent folder
  • Name project
  • ok
  • Configure workspace for device
  • deviceOS@0.9.0
  • xenon
  • Device name empty (but i’ve tried both ways)
  • Particle compile application local
  • in .ino file, in setup(), add: pinMode(D7,OUTPUT);
  • at this point am getting squigglies suggesting an issue - use of undeclared identifier
  • .cpp file #include “application.h” has squiggly - file not found

Up until today this is where I stopped. Workbench is reporting problems and I’ve got the squigglies.

Today I went ahead and compiled again and flashed to a Xenon and I got a blinking led. So it appears to be more a problem with Workbench or VSCode misreporting problems.

Any thoughts on how to resolve? I don’t see that on my other boxes.

Many thanks

That is not unknown - IntelliSense sometimes gets a bit superstitious :wink:
but the compiler is usually less thin-skinned.

1 Like

It still seems like it just couldn’t find the include file in the ide. All the errors were for references in the application.h file.

I got it resolved now. I wound up uninstalling particle workbench and particle and even VS Code - and all the folders I could find that related to them - iteratively - then reinstalled everything. Pretty drastic measures - lost all my other extensions - but at least it’s working now. Fortunately extensions install pretty easy in VS Code.

I wish we could have tracked down the cause though.

Thanks