tinygo-org / vscode-tinygo

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

GOROOT or something is incorrect when opening terminal #9

Open sago35 opened 1 year ago

sago35 commented 1 year ago

After using TinyGo extension, GOROOT or something is incorrect when opening terminal.

image

Probably due to the environment variables set below. https://github.com/tinygo-org/vscode-tinygo/blob/96d460ad5e3b8480e85c5bd6a8b9e9061e338972/src/extension.ts#L96-L99

aykevl commented 1 year ago

This is intentional. Why is this a problem?

sago35 commented 1 year ago

In my case, for example, I write udp server and usbcdc apps in go. And these applications are often managed along with microcontroller-side sources written in tinygo.

In such a case, I would want to build from the vscode terminal.

In other cases, when writing wasm, we often set up the server with go.