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 (initialization) #3375

Open
robertsdpg opened this issue May 2, 2024 · 1 comment
Open

gopls: automated issue report (initialization) #3375

robertsdpg opened this issue May 2, 2024 · 1 comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@robertsdpg
Copy link

gopls version: v0.15.3/go1.22.2
gopls flags:
update flags: proxy
extension version: 0.41.4
environment: Visual Studio Code win32
initialization error: Error: invalid WorkspaceFolder.URI: DocumentURI scheme is not 'file': gitlens://7b22726566223a2230613364373137326539326630626232393363323937363334613861653063623332306338643532222c227265706f50617468223a22633a2f55736572732f726f6265722f4f6e6544726976652f446f63756d656e74732f6c6c616d6133227d/c:/Users/rober/OneDrive/Documents/llama3%3F{"ref":"0a3d717"}
issue timestamp: Thu, 02 May 2024 22:44:46 GMT
restart history:
Thu, 02 May 2024 22:44:37 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": 49, "TestdataFiles": 0, "GoFiles": 0, "ModFiles": 0, "Dirs": 20 }, "GOARCH": "amd64", "GOOS": "windows", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.2", "GoplsVersion": "v0.15.3", "InitialWorkspaceLoadDuration": "433.9225ms", "MemStats": { "HeapAlloc": 2485888, "HeapInUse": 4931584, "TotalAlloc": 10385608 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.2", "AllPackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "WorkspacePackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "Diagnostics": 0 } ] } }

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 May 2, 2024
@hyangah
Copy link
Contributor

hyangah commented May 3, 2024

Thanks for the report @robertsdpg

Can you teach us how you configured your workspace? Do you have any Go files or Go project folders in your workspace?

It looks like GitLens' virtual folder is registered as a vscode workspace folder, but I don't know what functionality of GitLens enables this setup.

I think our extension and the language server should be prepared and defensive about virtual workspace folder.
This is the same issue as #3368

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

No branches or pull requests

4 participants