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

gopls: automated issue report (crash) #3225

Open
SafwanAhmed08 opened this issue Mar 5, 2024 · 4 comments
Open

gopls: automated issue report (crash) #3225

SafwanAhmed08 opened this issue Mar 5, 2024 · 4 comments
Labels
automatedReport Automatically created issues WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@SafwanAhmed08
Copy link

gopls version: v0.15.1/go1.21.6
gopls flags:
update flags: proxy
extension version: 0.41.1
environment: Visual Studio Code win32
initialization error: undefined
issue timestamp: Tue, 05 Mar 2024 19:38:15 GMT
restart history:
Tue, 05 Mar 2024 19:29:27 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

Please attach the stack trace from the crash.
A window with the error message should have popped up in the lower half of your screen.
Please copy the stack trace and error messages from that window and paste it in this issue.

Failed to auto-collect gopls trace: no gopls log.

gopls stats -anon { "DirStats": { "Files": 12, "TestdataFiles": 0, "GoFiles": 12, "ModFiles": 0, "Dirs": 1 }, "GOARCH": "amd64", "GOOS": "windows", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.21.6", "GoplsVersion": "v0.15.1", "InitialWorkspaceLoadDuration": "29.8101ms", "MemStats": { "HeapAlloc": 2650624, "HeapInUse": 5021696, "TotalAlloc": 11654200 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": null } }

OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.

NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.

<OPTIONAL: ATTACH LOGS HERE>

@gopherbot gopherbot added this to the Untriaged milestone Mar 5, 2024
@hyangah
Copy link
Contributor

hyangah commented Mar 5, 2024

Thanks for the report. Can you please share the log you see in the gopls output channel and tell us when you observed this popup (e.g. I was updating gopls, I just opened the vscode, I did refactoring, ...)?
Screen Shot 2021-01-27 at 2 53 49 PM

@hyangah hyangah added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Mar 5, 2024
@SafwanAhmed08
Copy link
Author

SafwanAhmed08 commented Mar 7, 2024 via email

@adonovan
Copy link
Member

adonovan commented Mar 7, 2024

Can you share the output of the following command:

$ go version $(which gopls)

I suggest you restart VS Code and describe what happens. If the problem persists, share the gopls server log as indicates in the post from @hyangah.

@findleyr
Copy link
Contributor

findleyr commented Mar 8, 2024

You may also want to try installing the prerelease of the next gopls version, which fixes a couple crashes:

go install golang.org/x/tools/gopls@v0.15.2-pre.1

@hyangah hyangah added the automatedReport Automatically created issues label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automatedReport Automatically created issues WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants