Skip to content
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: fillreturns modifies existing returns #38707

Open
stamblerre opened this issue Apr 27, 2020 · 1 comment
Open

x/tools/gopls: fillreturns modifies existing returns #38707

stamblerre opened this issue Apr 27, 2020 · 1 comment
Labels
Milestone

Comments

@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Apr 27, 2020

I added a return value to a function, and observed that hitting save overrode the existing values with nils. (Repro in the file golang.org/x/tools/internal/lsp/source/types_format.go`.)

Screen Shot 2020-04-27 at 3 44 54 PM

@stamblerre stamblerre added this to the gopls/v0.5.0 milestone Apr 27, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented May 13, 2020

Change https://golang.org/cl/233527 mentions this issue: internal/lsp/source: don't mark fillreturns as high confidence

gopherbot pushed a commit to golang/tools that referenced this issue May 13, 2020
It's not ready for the release yet (see golang/go#38707).

Change-Id: I04c1d8ec4ed815efb3e4c2d3c88cba3ec164755e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/233527
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.