-
Notifications
You must be signed in to change notification settings - Fork 648
Issues with VS Code 1.1 #322
Comments
I do have one (and only one, that I can see) green underline, suggesting that the exported method should have a comment or be unexported. If I add a comment to that method, the next method above it that is lacking a comment is then underlined, and so on. In other words, there are a number of public methods lacking comments in this file, but only the last one gets a green underline. |
CC @jrieken did we change anything in the area of diagnostics and linting between 1.0 and 1.1? |
things have changed wrt to being able to read the diagnostics in the extension host but nothing else. Since those changes have great self host coverage I am confident. Debugging this, I see that the extension computes an empty array of errors: |
Linting and format won't fire on save if there are no changes in the file. I found this annoying, that to lint a file for a code review, I had to edit it and save it... This was even before 1.1 was released. I thought it was expected behavior. |
@jrieken any clue on how to debug this issue? I'd be glad to give a hand |
I'm noticing the same behavior and would be happy to help resolve it. This issue makes VSCode nearly unusable for Go development. I've had to fallback to IntelliJ and using fmt.Println() statements for debugging since the Go plugin for IntelliJ doesn't work with debugging on the Mac. |
@jrieken I don't think you previous note is right. The No matter what the original source of the errors, VS Code is only ever displaying the first item of the array passed to I'll open an issue in the |
Fixes microsoft#322. Works around microsoft/vscode#6373.
Fixes microsoft#322. Works around microsoft/vscode#6373.
@mattetti nsf/gocode#305 (comment) that's a gocode bug with go 1.7, either use < go 1.7 or apply the patch to your git tree. |
@OneOfOne thanks a lot, I went back to VSCode 1.0 and still saw the error. I'm indeed on 1.7 and not planning on going back ;) |
@mattetti no problem, gocode got fixed and the patch isn't needed anymore. |
@lukehoban after upgrading vscode to 1.1.1 have the same - code errors and warnings notification seems to be entirely broken. Whether the plugin to be updated too? |
Same as @tchoomak on 1.1.1, I still don't get any errors inside VS Code, for example when a package import is missing. Works without problems on 1.0.0. |
@lukehoban Yes, Ultimately, the grouping here which was also in a way the root cause for this (#328) won't be needed anymore which I believe will yield in more easy to use API. |
vscode-go update released and works as expected. Thank you! |
Same issue now with latest go code and plugin, can no longer use vs code for go dev, until this is fixed |
@stevematdavies you might want to try updating gocode.
|
@gargamelius Ive done that, and reinstalled the tools, now nothing works, no linting, formatting etc |
Switched to vim for now, working very well. |
@mirza-s this solved the problem, thank you |
After upgrading to Visual Studio Code 1.1, some important features of this plugin don't seem to work properly:
The text was updated successfully, but these errors were encountered: