-
Notifications
You must be signed in to change notification settings - Fork 648
Document and maintain standard library development setup #3165
Comments
Definitely agree that we need to add documentation for this use case. I have a few more questions inline.
When you say "mostly" - are there features that don't work? If so, it would be good to know about so we can address the issues.
What breakages are you referring to specifically? AFAIK, we've never respected the
Out of curiosity, why do you disable import organization? |
I've noticed the occasional minor issue, but sometimes it's hard to tell if the tree is in a bad state, or if it's something gopls can fix. I'll pay more attention and open issues referencing this one when I do in the future. I also do some development on the dev.boringcrypto branch, which I totally don't expect you to support, so I wonder how much breakage I was seeing because of that. I now have a separate worktree for that.
Not sure how, but it somewhat worked for me until recently even if I always opened GOROOT and did not set
Imports in the standard library are not grouped (that is, Relatedly, sometimes (maybe when the packages are new?) new imports get added with the |
Thanks for the clarifications! Please file issues when you see something that's not working, since we want to make sure that And, yeah I don't think |
@katiehockman filed a similar issue in the upstream repository, so I'm going to close this issue in favor of that one: golang/go#38603. |
FWIW, I think the docs should be about how to make the whole vscode-go work for standard library development, not just gopls. |
Happened to skim this bug. |
vscode-go and gopls mostly work on the standard library, which is awesome, but it takes some setup and it broke a few times recently. It would be great to document a supported setup, and maintain it such that it doesn't break over time.
Here's what I have so far in
~/go/src/.vscode/settings.json
.The following issues affect standard library development, and should be mentioned in the docs.
gopls.env.PATH
needs to be set as well asgo.alternateTools.go
Infinite Getting code actions from ''Go', 'Go', 'Go'' on save #3105: saving files in certain packages, like crypto/x509, can take tens of seconds(this might be an issue with a different extension)
The text was updated successfully, but these errors were encountered: