tinygo-org / vscode-tinygo

TinyGo support for Visual Studio Code
BSD 3-Clause "New" or "Revised" License
27 stars 3 forks source link

If `settings.json` already exists picking tinygo target fails #10

Open s-fairchild opened 1 year ago

s-fairchild commented 1 year ago

If settings.json already exists using the command pallet to pick tinygo target fails with the message in the screenshot below.

Screenshot from 2022-12-22 10-37-22

An example workflow that causes this

  1. .vscode is checked into a remote git repo.
  2. Repo is cloned on a 2nd computer
  3. There is no tinygo target selected when vscode is opened
  4. Picking a target results in
    Command 'TinyGo target' resulted in an error (command 'vscode-tinygo.selectTarget not found)

Commenting out the settings created by this extension results in the same error. Deleting settings.json allows the extension to pick a target and create a new settings.json

aykevl commented 1 year ago

Does this also cause an error message on startup? Because I've seen something like that after updating Go or TinyGo and running tingyo clean.

s-fairchild commented 1 year ago

@aykevl No error on startup, only when selecting a tinygo target.