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

[Windows] There is a constant error with gopls, toolchain nor available #21150

Open
1 task done
taimast opened this issue Nov 25, 2024 · 2 comments
Open
1 task done
Labels
bug [core label] go Go programming language support windows

Comments

@taimast
Copy link

taimast commented Nov 25, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Error loading workspace folders (expected 1, got 0)
failed to load view for file:///C:/Users/taima/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.9.windows-amd64/src/log/slog: err: exit status 1: stderr: go: downloading go1.22 (windows/amd64)
go: download go1.22 for windows/amd64: toolchain not available

He is looking for a version that is not listed anywhere
go mod tidy works without problems
there are no problems in vs code either

Environment

Zed: v0.164.0 (Zed Dev 75c545aa1e7a9cb01febf2f6dc00536c7271ff2f)
OS: Windows 10.0.22631
Memory: 63.2 GiB
Architecture: x86_64
GPU: AMD Radeon RX 5600 XT || AMD proprietary driver || 24.10.27.01 (AMD proprietary shader compiler)

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your Zed.log file to this issue.

Zed.log
2024-11-25T05:04:43.3682758+03:00 [ERROR] server stderr: ""
2024-11-25T05:04:43.4123624+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.663522+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\client_test.go"
2024-11-25T05:04:43.6641236+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\client_test.go"
2024-11-25T05:04:43.6645603+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\server.go"
2024-11-25T05:04:43.6649419+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\server.go"
2024-11-25T05:04:43.6661346+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\header_test.go"
2024-11-25T05:04:43.6665315+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\header_test.go"
2024-11-25T05:04:43.6668677+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\client_test.go"
2024-11-25T05:04:43.6672057+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\client_test.go"
2024-11-25T05:04:43.6684306+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\workerpool_test.go"
2024-11-25T05:04:43.6687917+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\workerpool_test.go"
2024-11-25T05:04:43.6691554+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\header_test.go"
2024-11-25T05:04:43.6695284+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\header_test.go"
2024-11-25T05:04:43.6911276+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\server.go"
2024-11-25T05:04:43.6917445+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\server.go"
2024-11-25T05:04:43.6921316+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\workerpool_test.go"
2024-11-25T05:04:43.6925384+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\valyala\\fasthttp@v1.53.0\\workerpool_test.go"
2024-11-25T05:04:43.8721193+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.8807337+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.9046514+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.9099842+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.9110795+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.9112408+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.9114002+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:43.9361137+03:00 [INFO] Creating buffer 0x2101b4f49d0 of size 46480, name 'chunk-5', handle 10
2024-11-25T05:04:44.4700458+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:44.9431526+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:45.3534558+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\gin-gonic\\gin@v1.10.0\\response_writer.go"
2024-11-25T05:04:45.3544606+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\gin-gonic\\gin@v1.10.0\\response_writer_test.go"
2024-11-25T05:04:45.4468207+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:45.9676275+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:45.9692231+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:46.6011743+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:46.7310918+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:47.1483332+03:00 [INFO] Creating buffer 0x212217aa6c0 of size 119616, name 'chunk-9', handle 14
2024-11-25T05:04:48.0383273+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\url\\url_test.go"
2024-11-25T05:04:48.0386144+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\gin-gonic\\gin@v1.10.0\\response_writer.go"
2024-11-25T05:04:48.0397182+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\u2takey\\ffmpeg-go@v0.5.0\\run.go"
2024-11-25T05:04:48.1280887+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\gin-gonic\\gin@v1.10.0\\response_writer_test.go"
2024-11-25T05:04:48.3365344+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\socks_bundle.go"
2024-11-25T05:04:49.1801842+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\transfer_test.go"
2024-11-25T05:04:49.1805151+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\h2_bundle.go"
2024-11-25T05:04:49.6055688+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\h2_bundle.go"
2024-11-25T05:04:49.6057327+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\server.go"
2024-11-25T05:04:49.6058981+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\server.go"
2024-11-25T05:04:49.6060104+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:04:49.6061214+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\transport.go"
2024-11-25T05:04:49.6064733+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\transport.go"
2024-11-25T05:04:49.6066409+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\socks_bundle.go"
2024-11-25T05:04:49.607186+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Program Files\\Go\\src\\net\\http\\transfer_test.go"
2024-11-25T05:04:52.9757208+03:00 [ERROR] missing executable in directory "C:\\Users\\taima\\AppData\\Local\\Zed\\languages\\json-language-server\\node_modules"
2024-11-25T05:05:05.571877+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.5801275+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:05.5802168+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:05.5807591+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:05.5808301+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:05.5818495+03:00 [ERROR] Failed to start language server "json-language-server": failed to execute npm info subcommand:
stdout: "{\n  \"error\": {\n    \"code\": \"E407\",\n    \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n    \"detail\": \"\"\n  }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-11-25T02_04_45_698Z-debug-0.log\n"
2024-11-25T05:05:05.5819222+03:00 [ERROR] server stderr: ""
2024-11-25T05:05:05.5848146+03:00 [ERROR] no views
2024-11-25T05:05:05.5849278+03:00 [ERROR] no views
2024-11-25T05:05:05.5891661+03:00 [ERROR] no views
2024-11-25T05:05:05.5894201+03:00 [ERROR] no views
2024-11-25T05:05:05.5959912+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.5962454+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.5964991+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.5966852+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.5994746+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.5998446+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.5999814+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6005413+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6008195+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6009813+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6011529+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6013228+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6015882+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6017427+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:05.6019919+03:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-11-25T05:05:06.6506558+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:06.6507806+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:06.6524612+03:00 [ERROR] no views
2024-11-25T05:05:06.7494472+03:00 [ERROR] no views
2024-11-25T05:05:06.8064614+03:00 [INFO] Creating buffer 0x212217adbc0 of size 120176, name 'chunk-10', handle 15
2024-11-25T05:05:06.8066794+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-25T05:05:06.8331224+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-25T05:05:06.8600551+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-11-25T05:05:06.8861386+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-11-25T05:05:07.3624524+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:07.3625553+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:07.3630939+03:00 [ERROR] no views
2024-11-25T05:05:07.682694+03:00 [ERROR] no views
2024-11-25T05:05:08.4374162+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\aws\\aws-sdk-go@v1.38.20\\aws\\request\\http_request_copy_test.go"
2024-11-25T05:05:08.4379027+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\aws\\aws-sdk-go@v1.38.20\\aws\\request\\request_retry_test.go"
2024-11-25T05:05:08.5042424+03:00 [WARN] skipping diagnostics update, no worktree found for path "C:\\Users\\taima\\go\\pkg\\mod\\github.com\\aws\\aws-sdk-go@v1.38.20\\aws\\request\\timeout_read_closer_test.go"
2024-11-25T05:05:08.6428211+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:08.6428846+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:08.662434+03:00 [ERROR] no views
2024-11-25T05:05:08.7455153+03:00 [ERROR] no views
2024-11-25T05:05:09.7001269+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:09.7001887+03:00 [WARN] Generic lsp request to gopls failed: no views
2024-11-25T05:05:09.7720315+03:00 [ERROR] no views
2024-11-25T05:05:09.7721243+03:00 [ERROR] no views
@taimast taimast added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Nov 25, 2024
@notpeter notpeter added windows go Go programming language support and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Nov 26, 2024
@notpeter
Copy link
Member

Do you have GOTOOLCHAIN set to go1.22 instead of go1.22.x perhaps?

@taimast
Copy link
Author

taimast commented Nov 26, 2024

Do you have GOTOOLCHAIN set to go1.22 instead of go1.22.x perhaps?

GOTOOLCHAIN=auto

It's just that there is no such problem in vs code, some time ago there was a newer version in go.mod, I changed it back now such an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] go Go programming language support windows
Projects
None yet
Development

No branches or pull requests

2 participants