Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

expected ';', found 'package' syntax #3082

Closed
kybom opened this issue Mar 3, 2020 · 1 comment
Closed

expected ';', found 'package' syntax #3082

kybom opened this issue Mar 3, 2020 · 1 comment
Labels
upstream-gopls Issue for gopls

Comments

@kybom
Copy link

kybom commented Mar 3, 2020

What version of Go, VS Code & VS Code Go extension are you using?

  • Run go version to get version of Go
    • 1.14
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders
    • 1.42.1
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.13.1
  • Run go env GOOS GOARCH to get the operating system and processor arhcitecture details
    • linux amd64
  • gopls version
    0.3.3

Share the Go related settings you have added/edited

{
"go.useLanguageServer": true
//"editor.parameterHints.enabled": false
//"editor.formatOnSave": true
}

Describe the bug

A go file works well ,but have a syntax error. The error is not always ,and disappears after restarting vscode.

expected ';', found 'package'

Screenshots or recordings

QQ截图20200304012243
QQ截图20200304012301

@stamblerre
Copy link
Contributor

Thanks for the report! I believe that this is the same issue as golang/go#36960, which is tracked upstream. I'll close this in favor of the upstream issue.

@stamblerre stamblerre added the upstream-gopls Issue for gopls label Mar 3, 2020
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream-gopls Issue for gopls
Projects
None yet
Development

No branches or pull requests

2 participants