-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/tools/gopls: address formatting issues with [email protected] #45732
Comments
Change https://golang.org/cl/315852 mentions this issue: |
I considered having gopls not initialize at all, but VS Code Go intercepts those error messages and they get buried. We should probably fix that in VS Code Go, but for now just show a warning. Updates golang/go#45732 Change-Id: I214974e5a96231c96b1583af8ac245de03cea5d8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/315852 Trust: Rebecca Stambler <[email protected]> Run-TryBot: Rebecca Stambler <[email protected]> Reviewed-by: Robert Findley <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]>
I don't think there's anything to do here. All that remains is waiting for sergi/go-diff#120 to be merged. |
What's the correct way to install x/tools/gopls? |
See https://github.com/golang/tools/tree/master/gopls#installation
|
The VS Code Go Extension has started complaining about a bad gopls installation, linking to this issue. I tried running the command suggested by VS Code to fix it (same as above) but it says:
If I run Any idea what to do? Lots of stuff seems to be misbehaving. When I have the
However, this library must be installed as the code compiles fine (and yaml functions work). If I disable the language server the warning goes away. Here's my settings.json file.
I've tried uninstalling Go and reinstalling it from scratch and this has not solved the problem. I've spent ages trying to get Go to work properly on my Mac with VS Code, but am close to giving up and trying Goland. Any suggestions? |
@OscarVanL: Please take a look at the Troubleshooting guide and open a new issue if that doesn't help you solve the problem. |
Why does he needs to open a new issue?? |
In #45648, we discovered that gopls has formatting bugs when built with github.com/sergi/[email protected]. Unfortunately, there are probably many users that get this version due to installing with
go get -u
.Until sergi/go-diff#115 is fixed, or we find some other solution, we should at least warn users when built with [email protected].
CC @stamblerre @heschi
The text was updated successfully, but these errors were encountered: