-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: support features (diagnostics, etc.) for open files inside of vendor directories #42527
Comments
I have resolved this issue, maybe you can try it?
|
Thank you for looking into this issue, @Mutated1994. Unfortunately, I think we will have to spend some more time understanding how we can support features in vendored packages without marking them as workspace packages--since we diagnose all packages in the workspace. |
Gotcha! |
Thanks @stamblerre for linking me here. In my case, some features are already working inside the vendor directory. I'm able to get references, implementations, definitions for few types. It's just not clear what works and what doesn't. |
Noting that I ran into issues because I had created an package internal to my project with a path like |
There should be some kind of message maybe in the gopls (server) output stating that a message wasn't recorded to PROBLEMS because it is from a file inside a "vendor" folder.
Also, maybe errors should be reported to PROBLEMS if you open code inside a folder which is a subfolder of vendor since you're probably developing in the vendored project itself.
The text was updated successfully, but these errors were encountered: