Workbench local compile syntax error

try this:

  • Update VSCode - current version is v1.44.2, you are running v1.27.2 (from VSCode’s main menu, select: Help > Check for Updates)
  • Update your Workbench extension - current version is v1.11.0, you are running v1.4.8 (docs)
  • Disable the Arduino extension [id: vsciot-vscode.vscode-arduino] (docs)
  • Delete the ./target directory within your project
  • Confirm your project.properties file does not include dependencies
  • Run the Particle: Reset Environment command (docs)
  • Restart VSCode

then

  1. Open your project (File > Open Folder)
  2. Click the deviceOS@1.2.1-rc.3 entry in the status bar and select a newer version of the Device OS - e.g. v1.5.0 (see screenshot below)
  3. Wait for the update Device OS dependency to install
  4. Run the Particle: Compile application (local) task (Terminal > Run Task, then click the Particle folder, and then select the task)

if that gets things working, you can try re-enabling the Arduino extension and re-compile to see if it causes any issues (it shouldn’t but best to rule it out explicitly).

hope it helps!

1 Like