Cannot open source file "bits/gthr.h"

I’m getting this error in Workbench:

cannot open source file "bits/gthr.h" (dependency of "C:\Users\{user}\.particle\toolchains\deviceOS\0.7.0\firmware-0.7.0\user\inc\Particle.h")

I can find the file in various directories on my computer, but not sure why the compiler can’t fine it. Anyone encountered this?

Can you share more details about your setup using the new Audit feature described here (make sure to sanitize sensitive info)?

Also, does you see this in a brand new project or one you imported?

I made a new project workspace and copied my code into the workspace 1 file at a time.

Im pretty sure this is “sanitized” as best i could…

{
    "username": null,
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "c:\\Program Files\\Microsoft VS Code\\resources\\app",
        "machineId": "SANITIZED",
        "sessionId": "SANITIZED",
        "version": "1.28.2"
    "cli": {
        "binpath": "C:\\Users\\sanitized\\.vscode\\extensions\\particle.particle-vscode-core-1.0.0-alpha.4\\src\\cli\\bin\\windows\\amd64\\particle.exe",
        "ok": true,
        "version": "1.35.1"
    },
    "localCompiler": {
        "dependencies": [
            "deviceOS@0.7.0",
            "gcc-arm@5.3.1",
            "buildtools@1.0.0",
            "buildscripts@1.0.0"
        ]
    },
    "platform": {
        "os": "windows",
        "type": "Windows_NT",
        "release": "10.0.17134",
        "arch": "x64",
        "path": {
            "key": "Path",
            "value": "C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows Live;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Java\\jdk1.6.0_25\\bin;C:\\Program Files\\Microsoft\\Web Platform Installer\\;C:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET Web Pages\\v1.0\\;C:\\Program Files (x86)\\Windows Kits\\8.0\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;c:\\Program Files (x86)\\Microsoft SQL Server\\110\\Tools\\Binn\\;c:\\Program Files\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files\\Statgraphics\\STATGRAPHICS Centurion XVI.II\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Python27;C:\\Python27\\Scripts;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Anaconda3;C:\\Anaconda3\\Scripts;C:\\Anaconda3\\Library\\bin;C:\\CooCox\\CoIDE_V2Beta\\bin;C:\\Python27;C:\\Python27\\Lib;C:\\Python27\\DLLs;C:\\Python27\\Lib\\site-packages;C:\\Python27\\Lib\\lib-tk;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\sanitized\\AppData\\Local\\Programs\\Python\\Python35-32\\Scripts\\;C:\\Users\\sanitized\\AppData\\Local\\Programs\\Python\\Python35-32\\;C:\\Users\\sanitized\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\sanitized\\AppData\\Local\\particle\\bin;C:\\Users\\sanitized\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Program Files\\Heroku\\bin;C:\\Users\\sanitized\\AppData\\Roaming\\npm"
        },
        "homeDir": "C:\\Users\\sanitized",
        "particleDir": "C:\\Users\\sanitized\\.particle",
        "localCompilerToolchainDir": "C:\\Users\\sanitized\\.particle\\toolchains"
    },
    "env": {
        "ALLUSERSPROFILE": "C:\\ProgramData",
        "AMD_ENTRYPOINT": "vs/workbench/node/extensionHostProcess",
        "APPDATA": "C:\\Users\\sanitized\\AppData\\Roaming",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "asl.log": "Destination=file",
        "CommonProgramFiles": "C:\\Program Files\\Common Files",
        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
        "CommonProgramW6432": "C:\\Program Files\\Common Files",
        "COMPUTERNAME": "SANITIZED",
        "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
        "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
        "ELECTRON_RUN_AS_NODE": "1",
        "FPPUILang": "en-US",
        "FP_NO_HOST_CHECK": "NO",
        "GOOGLE_API_KEY": "SANITIZED",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\sanitized",
        "LOCALAPPDATA": "C:\\Users\\sanitized\\AppData\\Local",
        "LOGONSERVER": "\\\\SANITIZED",
        "NUMBER_OF_PROCESSORS": "8",
        "OneDrive": "C:\\Users\\sanitized\\OneDrive",
        "OnlineServices": "Online Services",
        "OOBEUILang": "en-US",
        "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
        "OS": "Windows_NT",
        "Path": "C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Program Files\\Common Files\\Microsoft Shared\\Windows Live;C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows Live;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Java\\jdk1.6.0_25\\bin;C:\\Program Files\\Microsoft\\Web Platform Installer\\;C:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET Web Pages\\v1.0\\;C:\\Program Files (x86)\\Windows Kits\\8.0\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\110\\Tools\\Binn\\;c:\\Program Files (x86)\\Microsoft SQL Server\\110\\Tools\\Binn\\;c:\\Program Files\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files\\Statgraphics\\STATGRAPHICS Centurion XVI.II\\;C:\\Program Files (x86)\\QuickTime\\QTSystem\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Python27;C:\\Python27\\Scripts;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Anaconda3;C:\\Anaconda3\\Scripts;C:\\Anaconda3\\Library\\bin;C:\\CooCox\\CoIDE_V2Beta\\bin;C:\\Python27;C:\\Python27\\Lib;C:\\Python27\\DLLs;C:\\Python27\\Lib\\site-packages;C:\\Python27\\Lib\\lib-tk;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files (x86)\\Windows Live\\Shared;C:\\Program Files\\LLVM\\bin;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\nodejs\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\sanitized\\AppData\\Local\\Programs\\Python\\Python35-32\\Scripts\\;C:\\Users\\sanitized\\AppData\\Local\\Programs\\Python\\Python35-32\\;C:\\Users\\sanitized\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\sanitized\\AppData\\Local\\particle\\bin;C:\\Users\\sanitized\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Program Files\\Heroku\\bin;C:\\Users\\sanitized\\AppData\\Roaming\\npm",
        "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",
        "PCBRAND": "Pavilion",
        "PIPE_LOGGING": "true",
        "PROCESSOR_ARCHITECTURE": "AMD64",
        "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 58 Stepping 9, GenuineIntel",
        "PROCESSOR_LEVEL": "6",
        "PROCESSOR_REVISION": "3a09",
        "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\\;c:\\Program Files (x86)\\Microsoft SQL Server\\110\\Tools\\PowerShell\\Modules\\",
        "PUBLIC": "C:\\Users\\Public",
        "PYTHONPATH": "C:\\Python27\\Lib;C:\\Python27\\DLLs;C:\\Python27\\Lib\\site-packages;C:\\Python27\\Lib\\lib-tk",
        "PY_HOME": "C:\\Python27",
        "SystemDrive": "C:",
        "SystemRoot": "C:\\WINDOWS",
        "TEMP": "C:\\Users\\sanitized~1\\AppData\\Local\\Temp",
        "TMP": "C:\\Users\\sanitized~1\\AppData\\Local\\Temp",
        "USERDOMAIN": "SANITIZED",
        "USERDOMAIN_ROAMINGPROFILE": "SANITIZED",
        "USERNAME": "sanitized",
        "USERPROFILE": "C:\\Users\\sanitized",
        "VERBOSE_LOGGING": "true",
        "VS110COMNTOOLS": "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\Tools\\",
        "VSCODE_CWD": "C:\\Program Files\\Microsoft VS Code",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\8b489f44b491aaf179daa9d96eac8bc1-1.28.2-main-sock",
        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-5ae7f8db-632d-4ba6-8c24-f232f62cf479-sock",
        "VSCODE_LOGS": "C:\\Users\\sanitized\\AppData\\Roaming\\Code\\logs\\20181031T203105",
        "VSCODE_LOG_LEVEL": "undefined",
        "VSCODE_LOG_STACK": "false",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR_17900": "C:\\Users\\sanitized\\AppData\\Roaming\\Code\\CachedData\\7f3ce96ff4729c91352ae6def877e59c561f4850",
        "VSCODE_PID": "17900",
        "windir": "C:\\WINDOWS",
        "windows_tracing_flags": "3",
        "windows_tracing_logfile": "C:\\BVTBin\\Tests\\installpackage\\csilogfile.log",
        "__COMPAT_LAYER": "Installer"
    },
    "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.28.2"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.28.3"
        },
        {
            "id": "austin.code-gnu-global",
            "version": "0.2.2"
        },
        {
            "id": "DavidAnson.vscode-markdownlint",
            "version": "0.21.0"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.1.21"
        },
        {
            "id": "mitaki28.vscode-clang",
            "version": "0.2.3"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "0.20.0"
        },
        {
            "id": "ms-vscode.jscs",
            "version": "0.1.9"
        },
        {
            "id": "ms-vscode.typescript-javascript-grammar",
            "version": "0.0.46"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.0.0-alpha.4"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.0.0-alpha.4"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.0.0-alpha.4"
        },
        {
            "id": "vsciot-vscode.vscode-arduino",
            "version": "0.2.22"
        }
    ]
}

@bbeardmore where are you seeing this error? are you able to run the local compilation tasks? (menu: Terminal > Run Task…)

Yes I can do local compile and my project compiled but with 24 errors. This is the only file it says it can’t find… the first error in the list… so I think the other 23 errors are due to this.

ah, ok. this is almost certainly due to some wonky configuration settings we’re generating at the moment. it’s annoying (sorry about that) but shouldn’t have any larger impact.

thanks for reporting :pray: