Intellisense Issues. Cannot open source file "stdint.h" for "Particle.h"

Intellisense: Cannot open source file “stdint.h” for “Particle.h”

Just about ready to lose my mind here. I re-installed the entire VSCode twice now to no success.
I followed m_m instructions pinned at the top and generated a new project from particle menu. There is no code in the project except #include “Particle.h”

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\svnParticleCannon\CannonCode\test\src\test.ino).
Cannot open source file "stdint.h" (dependency of "C:\Users\...\.particle\toolchains\deviceOS\1.4.2\firmware-1.4.2\user\inc\Particle.h")

Here is the audit report:

*** 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": "test",
        "isWorkspace": false,
        "folders": [
            {
                "location": "c:\\svnParticleCannon\\...\\test",
                "hasValidPath": true,
                "settings": {
                    "firmwareName": "deviceOS",
                    "firmwareVersion": "1.4.2",
                    "targetDevice": "",
                    "targetPlatform": "photon",
                    "compileButtonAction": "localAppDeviceOS",
                    "flashButtonAction": "localAppDeviceOS",
                    "disableWelcomeScreen": false,
                    "disableLocalCompilerDirtyCheck": false,
                    "enableVerboseLocalCompilerLogging": false,
                    "customDeviceOSLocation": ""
                },
                "files": [
                    ".vscode",
                    ".vscode\\launch.json",
                    ".vscode\\settings.json",
                    "project.properties",
                    "README.md",
                    "src",
                    "src\\test.ino"
                ]
            }
        ]
    },
    "cli": {
        "binpath": "c:\\Users\\...\\.vscode\\extensions\\particle.particle-vscode-core-1.7.0\\src\\cli\\bin\\windows\\amd64\\particle.exe",
        "ok": true,
        "version": "1.51.0",
        "installed": 1574711224964
    },
    "localCompiler": {
        "ok": true,
        "dependencies": [
            {
                "id": "deviceOS@1.4.2",
                "ok": true
            },
            {
                "id": "gcc-arm@5.3.1",
                "ok": true
            },
            {
                "id": "buildtools@1.1.1",
                "ok": true
            },
            {
                "id": "buildscripts@1.8.0",
                "ok": true
            },
            {
                "id": "openocd@0.11.2-adhoc6ea4372.0",
                "ok": true
            },
            {
                "id": "deviceOS@1.4.0",
                "ok": true
            },
            {
                "id": "deviceOS@1.4.0-rc.1",
                "ok": true
            },
            {
                "id": "deviceOS@1.3.1-rc.1",
                "ok": true
            },
            {
                "id": "deviceOS@1.0.1",
                "ok": true
            }
        ]
    },
    "platform": {
        "os": "windows",
        "type": "Windows_NT",
        "release": "6.1.7601",
        "arch": "x64",
        "path": {
            "key": "Path",
            "value": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files\\Java\\jdk-12.0.1;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\WIDCOMM\\Bluetooth Software\\;C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64;C:\\Program Files (x86)\\AMD\\ATI.ACE\\Core-Static;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf5x\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Java\\jdk1.8.0_221\\bin;C:\\Users\\...\\AppData\\Local\\particle\\bin;C:\\Users\\...\\AppData\\Local\\GitHubDesktop\\bin;C:\\Curl\\curl-7.66.0-win32-mingw\\bin;C:\\Users\\...\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        },
        "homeDir": "C:\\Users\\...",
        "particleDir": "C:\\Users\\...\\.particle",
        "localCompilerToolchainDir": "C:\\Users\\...\\.particle\\toolchains"
    },
    "env": {
        "ACTEL_FOR_ALTIUM_OVERRIDE": " ",
        "ALLUSERSPROFILE": "C:\\ProgramData",
        "ALTERA_FOR_ALTIUM_OVERRIDE": " ",
        "AMD_ENTRYPOINT": "vs/workbench/services/extensions/node/extensionHostProcess",
        "APPDATA": "C:\\Users\\...\\AppData\\Roaming",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "asl.log": "Destination=file",
        "CARBON_MEM_DISABLE": "1",
        "CommonProgramFiles": "C:\\Program Files\\Common Files",
        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
        "CommonProgramW6432": "C:\\Program Files\\Common Files",
        "COMPUTERNAME": "...-PC",
        "ComSpec": "C:\\Windows\\system32\\cmd.exe",
        "ELECTRON_CRASHPAD_PIPE_NAME": "\\\\.\\pipe\\crashpad_11412_ZLUSPWUPPCTXCKWN",
        "ELECTRON_RUN_AS_NODE": "1",
        "FP_NO_HOST_CHECK": "NO",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\...",
        "LOCALAPPDATA": "C:\\Users\\...\\AppData\\Local",
        "LOGONSERVER": "\\\\MARGOSBSE",
        "NRFGOSTUDIOPATH": "C:\\Program Files (x86)\\Nordic Semiconductor\\nRFgo Studio",
        "NUMBER_OF_PROCESSORS": "8",
        "OneDrive": "C:\\OneDrive\\OneDrive - Margo Supplies Ltd",
        "OneDriveCommercial": "C:\\OneDrive\\OneDrive - Margo Supplies Ltd",
        "OneDriveConsumer": "C:\\Users\\...\\OneDrive",
        "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
        "OS": "Windows_NT",
        "Path": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files\\Java\\jdk-12.0.1;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\WIDCOMM\\Bluetooth Software\\;C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64;C:\\Program Files (x86)\\AMD\\ATI.ACE\\Core-Static;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf5x\\bin\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Java\\jdk1.8.0_221\\bin;C:\\Users\\...\\AppData\\Local\\particle\\bin;C:\\Users\\...\\AppData\\Local\\GitHubDesktop\\bin;C:\\Curl\\curl-7.66.0-win32-mingw\\bin;C:\\Users\\...\\AppData\\Local\\Programs\\Microsoft VS Code\\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 42 Stepping 7, GenuineIntel",
        "PROCESSOR_LEVEL": "6",
        "PROCESSOR_REVISION": "2a07",
        "ProgramData": "C:\\ProgramData",
        "ProgramFiles": "C:\\Program Files",
        "ProgramFiles(x86)": "C:\\Program Files (x86)",
        "ProgramW6432": "C:\\Program Files",
        "PSModulePath": "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\",
        "PUBLIC": "C:\\Users\\Public",
        "SESSIONNAME": "Console",
        "SystemDrive": "C:",
        "SystemRoot": "C:\\Windows",
        "TEMP": "C:\\Users\\...\\AppData\\Local\\Temp",
        "TMP": "C:\\Users\\...\\AppData\\Local\\Temp",
        "VERBOSE_LOGGING": "true",
        "VSCODE_CWD": "C:\\Users\\...\\AppData\\Local\\Programs\\Microsoft VS Code",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\04becb695c31160134d187fd61ec5303-1.40.1-main-sock",
        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-633866a0-9f57-4199-a0f9-45aad3b3e290-sock",
        "VSCODE_LOGS": "C:\\Users\\...\\AppData\\Roaming\\Code\\logs\\20191125T145112",
        "VSCODE_LOG_STACK": "false",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\...\\AppData\\Roaming\\Code\\CachedData\\8795a9889db74563ddd43eb0a897a2384129a619",
        "VSCODE_PID": "11412",
        "windir": "C:\\Windows",
        "windows_tracing_flags": "3",
        "windows_tracing_logfile": "C:\\BVTBin\\Tests\\installpackage\\csilogfile.log"
    },
    "versions": {
        "node": "12.4.0",
        "v8": "7.6.303.31-electron.0",
        "uv": "1.29.1",
        "zlib": "1.2.11",
        "brotli": "1.0.7",
        "ares": "1.15.0",
        "modules": "73",
        "nghttp2": "1.38.0",
        "napi": "4",
        "llhttp": "1.1.3",
        "http_parser": "2.8.0",
        "openssl": "1.1.0",
        "cldr": "35.1",
        "icu": "64.2",
        "tz": "2019a",
        "unicode": "12.1",
        "electron": "6.1.2"
    },
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "c:\\Users\\...\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "machineId": "...",
        "sessionId": "...",
        "version": "1.40.1"
    },
    "extensions": [
        {
            "id": "ms-vscode.node-debug",
            "version": "1.40.1"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.39.3"
        },
        {
            "id": "ms-vscode.references-view",
            "version": "0.0.30"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.3.4"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "0.26.2-insiders2"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.7.0"
        },
        {
            "id": "particle.particle-vscode-pack",
            "version": "1.7.0"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.7.0"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.7.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

I did a complete removal, restart, remove all the users/app data, remove all the toolchain stuff and that seems to have fixed it.

ah, sorry for the hassle there. glad you got it working again finally.

should it happen again, here a couple of other things to try / capture:

  1. with your source file open, run the C/C++: Log Diagnostics command and share the output

  2. close VSCode

  3. delete the .vscode-cpptools/ipch/ directory - on windows, it’ll be in C:\Users\<username>\AppData\Local\Microsoft\vscode-cpptools on mac and linux it’ll be in ~/.vscode-cpptools

  4. reopen VSCode and open your source file (or wait for the “busy” indicator - an outlined flame icon

fwiw, i’m discussing this behavior over here:

really hoping to get this ironed out once and for all :crossed_fingers::grimacing::crossed_fingers: