I’m struggling with this as well. I have spent hours looking for something that resembles the .code-workspace within VS. the closest I found were the workspace settings but when I put in
I’m obviously not editing the correct file but I’m lost. I have 20 Borons sitting in my office waiting for me to figure out how to flash my code with my libraries that I can’t seem to upload to the particle Web IDE. I don’t know why they won’t load. And the Boron is not supported by the Dev IDE.
Any help would be awesome. Thanks.
Update:
As usual all I have to do is ask and at least part of the answer is revealed. I was having trouble creating a new project in VS Code. I don’t really understand the work flow so after a few more stabs in the dark I got a project created with the NAME_OF_PROJECT.code-workspace file to show up. I entered the platform and firmware edits and am still getting errors. I’ll take another stab tomorrow.
How do you create a new workspace? I don’t see any menu item to do that. When I click on the “Create a Project” link in the welcome page, it says to open the folder that will contain your project. What needs to be in this folder, an empty one doesn’t seem to work? Is there a tutorial yet for how to use Workbench?
Do you know if the introduction of Workbench means that Dev is going away?
Yeah, I did the installation, but I still don’t know how to create a new project. The post about the features of Workbench says, “You can initialize a new project with the command, Particle: Create New Project. Doing so will open a new a Visual Studio Code Workspace…”. This gives me the same message I mentioned above about opening a folder, so it doesn’t create a new workspace for me.
I don’t know if there is something wrong with my installation. I didn’t download VS Code specifically for Workbench. I had downloaded it recently for Python development (within the last month). It is version 1.29.1
Created an empty folder in a finder (Mac), then Open that empty folder in VS Code. Then create the new particle project from the Command Palette. The Particle Welcome “create” seems to have a glitch.
Thanks, that worked. Definitely not intuitive. So, I guess that you then need to edit the settings file to look like Kenneth’s, or is there some other simpler way to get the required data in there? This is what I get by default,
I set the device, firmware, and platform using the command pallet then went in a changed the specifics within the project_name.code-workspace file within the project.
This worked for me and I was able to compile using the command pallet Particle: Cloud Compilethe blink example. I haven’t tried flashing my device yet… baby steps.
I edited mine to be like Kenneths but changed my platform to “argon” instead of “xenon” as I was using the argon. It still shows a warning but it still worked.
Seems from other posts, that because the Workbench is so early on that a lot of features for mesh are still in the pipe.
We are indeed in the process of adding support for 3rd Gen devices to Particle Workbench and will notify individuals on the Developer Preview list when we have a new release candidate. Given that we’ve recently started fulfilling our 3rd Gen hardware, it’s high on our priority list.