Automatically open project.properties?

When I compile/flash my projects I’m always asked to open “project.properties”.
Is there anyway to automate the process?
It’s kind of a pain to always select the file even when its already an open tab.

1 Like

If you tell us how you are compiling/flashing we might be able to advise.

1 Like

So I’m using the workspace environment in VS code. I’m able to compile and flash my photon over the cloud no problem.

When I do compile/flash, I’m always prompted to open the applicable project.properties file. I would just like to know if there is a way to automatically call this properties file.

Here is my workspace configuration

{
	"folders": [
		{
			"path": "PATH"
		}
	],
	"settings": {
		"extensions.ignoreRecommendations": true,
		"files.associations": {
			"*.ino": "cpp"
		}
	}
}

Sorry, I’m new to this. Not sure what other information you need from me.

There is something not right in your Workbench setup (I’m assuming when you say “VS Code” you mean VS Code with the Particle Workbench extensions). I have pinged the Workbench development team on it, but tomorrow is a Particle holiday so we might not hear back until Tuesday. But I use WB on a daily basis and I have never been prompted to open that file.

Now, that said, I don’t typically use workspaces (although I do have one set up that has two projects in it, one for Argon and one for Xenon); I just use folders. So maybe it has something to do with how the workspace is configured.

hey there :wave:

thanks for trying workbench :+1:

can you run the Particle: Audit Environment command and share the non-sensitive portions of the report it generates here? can you also please provide the steps required to reproduce the issue as described over here: Information: How to report bugs and provide feedback

for future reference, we have a category dedicated to the Particle Workbench over here: https://community.particle.io/c/particle-workbench

I do mean VS code with the Particle Workbench extension.
I just installed this extension a day before posting this thread, so I’m assuming I have the latest version.
There isn’t much more I can say about recreating the issue other than when I do the command: Particle: Cloud Compile and then Particle: Cloud Flash I’ll get that prompt

[AUDIT OUTPUT]

{
    "username": "username",
    "workspace": {
        "name": "siren_workspace (Workspace)",
        "isWorkspace": true,
        "folders": []
    },
    "cli": {
        "binpath": "C:\\Users\\me\\.vscode\\extensions\\particle.particle-vscode-core-1.2.0\\src\\cli\\bin\\windows\\amd64\\particle.exe",
        "ok": true,
        "version": "1.38.0",
        "installed": 1550334973803
    },
    "localCompiler": {
        "dependencies": [
            "deviceOS@1.0.1-rc.1",
            "gcc-arm@5.3.1",
            "buildtools@1.0.1",
            "buildscripts@1.2.0",
            "openocd@0.10.0-particle.1",
            "deviceOS@1.0.0"
        ]
    },
    "platform": {
        "os": "windows",
        "type": "Windows_NT",
        "release": "10.0.17134",
        "arch": "x64",
        "path": {
            "key": "Path",
            "value": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Xoreax\\IncrediBuild;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\MATLAB\\R2017b\\bin;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Python\\Python 3.7;C:\\Program Files (x86)\\Kensington\\TrackballWorks;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files\\nodejs\\;C:\\Users\\me\\AppData\\Roaming\\npm;C:\\Users\\me\\AppData\\Local\\particledev\\bin;C:\\Users\\me\\AppData\\Local\\Programs\\Microsoft VS Code\\bin"
        },
        "homeDir": "C:\\Users\\me",
        "particleDir": "C:\\Users\\me\\.particle",
        "localCompilerToolchainDir": "C:\\Users\\me\\.particle\\toolchains"
    },
    "env": {
        "ALLUSERSPROFILE": "C:\\ProgramData",
        "AMD_ENTRYPOINT": "vs/workbench/node/extensionHostProcess",
        "APPDATA": "C:\\Users\\me\\AppData\\Roaming",
        "APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
        "CommonProgramFiles": "C:\\Program Files\\Common Files",
        "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files",
        "CommonProgramW6432": "C:\\Program Files\\Common Files",
        "COMPUTERNAME": "COMMAND-CENTER",
        "ComSpec": "C:\\WINDOWS\\system32\\cmd.exe",
        "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData",
        "ELECTRON_RUN_AS_NODE": "1",
        "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer",
        "FPS_BROWSER_USER_PROFILE_STRING": "Default",
        "HOME": "C:\\Users\\me\\AppData\\Roaming\\SPB_Data",
        "HOMEDRIVE": "C:",
        "HOMEPATH": "\\Users\\me",
        "LOCALAPPDATA": "C:\\Users\\me\\AppData\\Local",
        "NUMBER_OF_PROCESSORS": "6",
        "OPENSSL_CONF": "C:\\OpenSSL-Win32\\bin\\openssl.cfg",
        "OS": "Windows_NT",
        "Path": "C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Xoreax\\IncrediBuild;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\110\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Windows Kits\\8.1\\Windows Performance Toolkit\\;C:\\Program Files\\MATLAB\\R2017b\\bin;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Python\\Python 3.7;C:\\Program Files (x86)\\Kensington\\TrackballWorks;C:\\Program Files (x86)\\PuTTY\\;C:\\Program Files\\nodejs\\;C:\\Users\\me\\AppData\\Roaming\\npm;C:\\Users\\me\\AppData\\Local\\particledev\\bin;C:\\Users\\me\\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 158 Stepping 10, GenuineIntel",
        "PROCESSOR_LEVEL": "6",
        "PROCESSOR_REVISION": "9e0a",
        "ProgramData": "C:\\ProgramData",
        "ProgramFiles": "C:\\Program Files",
        "ProgramFiles(x86)": "C:\\Program Files (x86)",
        "ProgramW6432": "C:\\Program Files",
        "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\Tools\\PowerShell\\Modules\\",
        "PUBLIC": "C:\\Users\\Public",
        "SESSIONNAME": "Console",
        "SystemDrive": "C:",
        "SystemRoot": "C:\\WINDOWS",
        "TEMP": "C:\\Users\\me\\AppData\\Local\\Temp",
        "TMP": "C:\\Users\\me\\AppData\\Local\\Temp",
        "USERNAME": "me",
        "USERPROFILE": "C:\\Users\\me",
        "VERBOSE_LOGGING": "true",
        "VSCODE_CWD": "C:\\Users\\me\\AppData\\Local\\Programs\\Microsoft VS Code",
        "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
        "VSCODE_IPC_HOOK": "\\\\.\\pipe\\bdb1e25977e859cd2b23e4685e381afd-1.29.1-main-sock",
        "VSCODE_IPC_HOOK_EXTHOST": "\\\\.\\pipe\\vscode-ipc-4d62642b-2102-4002-a8f2-733e4a767c8c-sock",
        "VSCODE_LOGS": "C:\\Users\\me\\AppData\\Roaming\\Code\\logs\\20190216T103026",
        "VSCODE_LOG_LEVEL": "undefined",
        "VSCODE_LOG_STACK": "undefined",
        "VSCODE_NLS_CONFIG": "{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}",
        "VSCODE_NODE_CACHED_DATA_DIR": "C:\\Users\\me\\AppData\\Roaming\\Code\\CachedData\\bc24f98b5f70467bc689abf41cc5550ca637088e",
        "VSCODE_PID": "2112",
        "windir": "C:\\WINDOWS"
    },
    "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"
    },
    "vscode": {
        "appName": "Visual Studio Code",
        "appRoot": "c:\\Users\\me\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
        "machineId": "9f0a8975f5c38d51ae0afee29f7b2ed6589b095eaae85adf783048d1ec4355f4",
        "sessionId": "bc530d90-43cb-4e9c-8fec-058fc1998d921550369550552",
        "version": "1.29.1"
    },
    "extensions": [
        {
            "id": "ms-vscode.node-debug",
            "version": "1.29.2"
        },
        {
            "id": "ms-vscode.node-debug2",
            "version": "1.29.5"
        },
        {
            "id": "ms-vscode.references-view",
            "version": "0.0.8"
        },
        {
            "id": "marus25.cortex-debug",
            "version": "0.2.3"
        },
        {
            "id": "ms-python.anaconda-extension-pack",
            "version": "1.0.1"
        },
        {
            "id": "ms-python.python",
            "version": "2019.1.0"
        },
        {
            "id": "ms-vscode.cpptools",
            "version": "0.21.0"
        },
        {
            "id": "particle.particle-vscode-core",
            "version": "1.2.0"
        },
        {
            "id": "particle.particle-vscode-pack",
            "version": "1.2.0"
        },
        {
            "id": "particle.particle-vscode-snippets",
            "version": "1.2.0"
        },
        {
            "id": "particle.particle-vscode-theme",
            "version": "1.2.0"
        },
        {
            "id": "redhat.vscode-yaml",
            "version": "0.2.1"
        },
        {
            "id": "tushortz.pygame-snippets",
            "version": "0.0.1"
        },
        {
            "id": "vsciot-vscode.vscode-arduino",
            "version": "0.2.25"
        }
    ]
}

this section of the above audit report tells me that your project structure is off:

"workspace": {
        "name": "siren_workspace (Workspace)",
        "isWorkspace": true,
        "folders": []
    },

i would expect to see entries in the folders array.

so, with that in mind, let’s try a simple test project: run the Particle: Create Project command (from VSCode’s main menu, select “View > Command Palette” then type Particle:) and follow the prompts. upon completion, your new, empty project will load. after that, try running Particle: Configure Workspace for Device and then Particle: Cloud Compile and the contents of ./src should compile without error.

if you haven’t seen them already, docs for creating projects can be found here along with some other helpful info.