-
Notifications
You must be signed in to change notification settings - Fork 645
Analysis Tools Missing warning is shown incorrectly when multi-workspace GOPATH is used #19
Comments
There should be loop checking for each path in |
hi, i'm currently working on a docker-container (vsc, somthing like atocker) which bundles all binaries in the container and starts vscode. The It would be great to fix this bug to support multiple Imho it would be more better to have all the build-tools in the |
@ulrichSchreiner When this is fixed you can always install them globally manually. |
@mishak87 I don't think so. All the tools are referenced via GOPATH entries in the |
@ulrichSchreiner Gotcha! I will try to make pull request over weekend to get this fixed. |
@ulrichSchreiner and @mishak87 Good scenario. Would love a PR to support this. Feel free to open another issue as well if you'd like to continue to track this. @ulrichSchreiner To your first point, we preferred GOPATH/bin over PATH just because we saw a number of developer setups where PATH was not configured to include GOPATH/bin. That said, perhaps it makes sense to search PATH as well when looking for the tools? Probably as a fallback after looking in the workspaces GOPATH/bin. There's another approach to all of this which is just to have the VS Code Go extension install it's own known copies to a seperate location and use them from there instead of relying on PATH/GOPATH. Tracking that suggestion in #5, thoughts on that welcome. |
The logic for determining whether all tools are available is not taking into account that GOPATH may contain multiple workspaces.
See discussion in #10.
The text was updated successfully, but these errors were encountered: