MordFustang21 / ide-gopls

Atom integration with the Go language server (gopls)
MIT License
13 stars 5 forks source link

When I use this plug-in, I always find some hints. But I don't know how to cancel it #4

Closed zhaoyufei11011 closed 4 years ago

zhaoyufei11011 commented 4 years ago

When I use this plug-in, I always find some hints. But I don't know how to cancel it

The message is as follows

Your workspace root is D:\code\, but your module root is D:\code\test. Please add D:\code\test as a workspace folder.

i don't know how to add workspace floder in Atom i need you help

stamblerre commented 4 years ago

When you use gopls, you have to open Atom to the root of your module. So if D:\code\test contains a go.mod file, you have to open that directory. That should stop the warning from coming up.

zhaoyufei11011 commented 4 years ago

I've done that, but I still do. Like the following picture QQ截图20200113140219

stamblerre commented 4 years ago

Thanks for following up - that is definitely a bug. I've actually been working on improvements to that error message in https://golang.org/cl/214420 already, so that should fix this issue. I'm not sure when it will be released in a tagged version, but if you'd like to try it when it's merged, you can download gopls at master by running GO111MODULE=on go get golang.org/x/tools/gopls@master golang.org/x/tools@master.

zhaoyufei11011 commented 4 years ago

ok i know this。thanks for you help