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: parse error after cut + paste of same content #38865

atombender opened this issue May 5, 2020 · 2 comments

x/tools/gopls: parse error after cut + paste of same content #38865

atombender opened this issue May 5, 2020 · 2 comments


Copy link

@atombender atombender commented May 5, 2020

What did you do?

  1. Selected entire file in VSCode
  2. Cmd-X to cut it
  3. Cmd-V to paste it back

What did you expect to see?

No errors

What did you see instead?

Error reported on last line of file that doesn't go away until I restart gopls:

expected declaration, found 'package'



Build info master h1:CAqIXUMd9mH3t2O1DRj2IWu0Zh75A4fWPA+YjJOmXdE= h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= h1:KU7oHjnv3XNWfa5COkzUifxZmxp1TyI7ImMXqFxLwvQ= h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY= h1:8emZwJTManptbFnp36i5fbhO/1vUs3rfnh5e3Th8HEQ= h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= h1:sXmLre5bzIR6ypkjXCDI3jHPssRhc8KD/Ome589sc3U= h1:KaMb5GLhlcSX+e+qhbRJODnUUBvlw01jt4yrjFIHAuA=

Go info

go version go1.14 darwin/amd64

@gopherbot gopherbot added this to the Unreleased milestone May 5, 2020
@gopherbot gopherbot added the Tools label May 5, 2020
Copy link

@gopherbot gopherbot commented May 5, 2020

Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here.

@gopherbot gopherbot added the gopls label May 5, 2020
Copy link

@stamblerre stamblerre commented May 5, 2020

Duplicate of #38424

@stamblerre stamblerre marked this as a duplicate of #38424 May 5, 2020
@stamblerre stamblerre closed this May 5, 2020
@golang golang locked and limited conversation to collaborators May 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants