-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension is being loaded in non-go projects #2962
Comments
FYI: I de-installed the extension on my Windows Side for now - really curious how it got installed there though as I only installed it when connected to WSL - but maybe it's one of those extensions which needs to be installed on the host side |
Is the repository an open source one? Lines 96 to 111 in d9015c1
|
It happened on all my projects - even just created folders - but I'll check |
Here's the log, I added numbers to the lines - see line 58:
|
Thanks. From the log it is obvious that something was triggering the 'go' type task.
In fact, golang.go isn't the only one. It seems like grunt, gulp, jake, npm, dart, docker extensions that offer default Tasks were all activated. Just golang.go extension's activation became more visible because it requires Looks like microsoft/vscode#192043 is related. |
But the thing is - the above log is on opening of the project - haven't run any tasks yet - for me it happens just on loading of the project, not even started debugging etc |
Something is doing a scan for tasks at startup and I bet this is the culprit - thing is, Extension Bisect didn't find what did it |
Apparently that was caused by Task Explorer extension - but disabling it didn't solve the issue: |
Got it fixed - it was https://marketplace.visualstudio.com/items?itemName=actboy168.tasks |
Thanks @ThaDaVos for sharing your finding with other users. |
Please help by upvoting: microsoft/vscode#192657 |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:22:42.175Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.25941
Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
A clear and concise description of what the bug.
A clear and concise description of what you expected to happen.
When opening VSCode and loading a non-go project, the extension is still being loaded - in my current environment this causes the error "GO binary not found" - rather than installing GO in my windows environment too, I rather have the GO extension not being loaded in non-go projects, I know this is possible as other extensions do it too - so why doesn't this one?
Steps to reproduce the behavior:
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
The text was updated successfully, but these errors were encountered: