-
Notifications
You must be signed in to change notification settings - Fork 646
Output pane keeps opening to show errors while typing when language server is enabled #1662
Comments
Seeing a similar problem in an existing Golang project today. vscode-go version is 0.6.79. |
I've also noticed that a lot of times after a bunch of errors in the output my cmd+click will no longer work, and I have to close/re-open VSCode for it to start working again. After these errors I was no longer able to cmd+click to go to the definition of anything in my file (even if the variable was defined a few lines up)
After restarting VSCode it works again |
This also happens when I hover on key name in keyed variable instantiation. For example, consider the following code snippet: v := MyStruct{
Message: "value",
} If I hover on
This did not bother me much earlier but now the My {
"go.useLanguageServer": true,
"go.toolsGopath": "~/installs/go-tools",
"go.gopath": "~/dev/go",
"go.autocompleteUnimportedPackages": true,
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.testFlags": ["-v"],
"go.liveErrors": {
"enabled": true,
"delay": 500
}
} Is there some editor setting which will prevent opening the output section on error? |
This just started happening to me too. It's horribly annoying.
As far as I can tell it is caused by the language server. Turning it off seems to have stopped this from happening. |
I had to turn off go.useLanguageServer |
@ramya-rao-a while this is a langserver issue, it doesn't happen with Also check #1667 |
@OneOfOne How is #1667 which is a formatting issue related to the language server or this current issue? I cannot repro this in the older version of the Go extension either. Also I noticed that the errors are appearing in the "Output" pane not "Problems" pane, so I've deleted my earlier comment. Will look into this more and get back soon |
In the latest update to the Go extension, we updated the version of vscode-languageclient we use from 2.5.0 to 4.1.3 which somehow causes this issue. This is why, this issue is not repro-able in the older version of the Go extension @dbaeumer Between versions 3.0.1-alpha.14 and 3.0.2-beta.1, some change was introduced in the language client that for every error coming from the language server, the output panel comes into view even after repeated hiding. Do you recall any feature request or bug fix that might have caused this? Can this be fixed from the language client's side or is there something that we need to do from the language server's side to fix this? Others, |
This got changed to make errors more visible to the user. However it can be control by the language client using the |
Thanks @dbaeumer, I've added the Others, To get this fix before I release an update sometime later this week, you can
|
I can confirm that fixes the issue, thanks! |
This bug is now fixed in the latest update to the Go extension (0.6.80) |
I'm starting a new Go project and I'm constantly getting any errors (even while I'm in the middle of typing) pop open the output terminal.
Here is an example of what happens when starting to assign a new variable. As I type it decides that the code isn't valid (which it is not, but I'd rather the linter just underline the curly brace [which it does] than the terminal open up).
Here are the logs the output terminal is showing me
Here are the settings I use for VSCode Go
I haven't had this happen to me before while using Go with VSCode so I'm a bit confused about what's happening.
VSCode version: 1.23.0
vscode-go version: 0.6.79
The text was updated successfully, but these errors were encountered: