-
Notifications
You must be signed in to change notification settings - Fork 18k
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: show diagnostic for for circular dependency #33085
Comments
Good catch, thank you for noticing this. You are right, |
I would like to claim this one ;) |
Great! Let me know if you need any advice on how to tackle it, or please feel free to reach out to me directly on Gophers Slack. |
As @stamblerre suggested I will take something easier for first task. Leaving this for now. |
Change https://golang.org/cl/209857 mentions this issue: |
After #35964 gets fixed. We need to adjust/write the diagnostic tests inside (tools/internal/lsp/testdata/circular/) to test the behavior and ensure that it is working. |
This change will provide a more useful error when you are self importing a package. It has TODOs in place to propagate the "import cycle not allowed" error from go list to the user. Updates golang/go#33085 Change-Id: Ia868a7c688b0f0a7a9689cfda5ea8cea8ae1faff Reviewed-on: https://go-review.googlesource.com/c/tools/+/209857 Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
Change https://golang.org/cl/210942 mentions this issue: |
VS Code. Say, we have a circular dependency. In this case
go vet
would warn that it's not allowed. However it seems thatgopls
doesn't check this and just stops working (not providing hover outputs, references, what so ever) with these non-informative errors in output:The text was updated successfully, but these errors were encountered: