-
|
The v0.14.1 docs mention for But in my VSCode/gopls setup, I run into this:
Navigating into giu's
Maybe it's related to my The best part: it builds and runs just fine 😁 Maybe gopls cannot properly handle certain CGO projects.. guess I can live with it, but if anyone knows a workaround / fix, I'm interested =) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
It sounds like your gopls setup doesn't support cgo (CGO_ENABLED must be set to one) Edit make sure you have C and c++ compiler installed |
Beta Was this translation helpful? Give feedback.


Oh I sure have C/C++ installed, like I said my program builds and runs fine. Will doublecheck gopls setup =)
Update: indeed I had a
"go.toolsEnvVars": { "CGO_ENABLED": "0" }from the past lying in my settings, gone & fixed.