vscode-tinygo icon indicating copy to clipboard operation
vscode-tinygo copied to clipboard

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

Open s-fairchild opened this issue 2 years ago • 2 comments

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

s-fairchild avatar Dec 22 '22 15:12 s-fairchild

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.

aykevl avatar Jan 11 '23 21:01 aykevl

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

s-fairchild avatar Feb 07 '23 11:02 s-fairchild