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

Go project stuck with "Setting up workspace: Loading packages..." #25381

Open
narqo opened this issue Feb 22, 2025 · 3 comments
Open

Go project stuck with "Setting up workspace: Loading packages..." #25381

narqo opened this issue Feb 22, 2025 · 3 comments
Labels
go Go programming language support

Comments

@narqo
Copy link
Contributor

narqo commented Feb 22, 2025

Summary

When I open a Go project, Zed shows the Setting up workspace: Loading packages... message in the status bar, without an indication of any progress (see attached screenshot).

Image

That is, the spinner is spinning for the past 20 minutes. Clicking on the status bar message doesn't do anything but shows a hint with the same "Setting up workspace" message.

I cannot tell if this is a UI bug, or something is wrong with the LSP (gopls; version golang.org/x/tools/gopls v0.18.0). The basic features, like "Rename symbol", "Go to definition" and "Show help for a thing under the cursor" work.

In the logs, that I'm aware of, I don't see any error messages:

Zed.log
› tail -f ~/Library/Logs/Zed/Zed.log
2025-02-22T10:21:45.370869+01:00 [INFO] Opening main db
2025-02-22T10:21:45.378613+01:00 [INFO] Opening main db
2025-02-22T10:21:45.394685+01:00 [INFO] attempting to start language server "gopls", path: "/Users/varankinv/Documents/Code/playground-go/net-inmem-listener", id: 1
2025-02-22T10:21:45.394859+01:00 [INFO] using project environment variables from CLI. PATH="<··>"
2025-02-22T10:21:45.39495+01:00 [INFO] found user-installed language server for gopls. path: "/Users/varankinv/.local/bin/gopls", arguments: ["-mode=stdio"]
2025-02-22T10:21:45.395039+01:00 [INFO] starting language server process. binary path: "/Users/varankinv/.local/bin/gopls", working directory: "/Users/varankinv/Documents/Code/playground-go/net-inmem-listener", args: ["-mode=stdio"]
2025-02-22T10:21:45.586593+01:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2025-02-22T10:21:46.055699+01:00 [INFO] add_connection;
2025-02-22T10:21:46.056039+01:00 [INFO] set status on client 145054: Connected { ··· }
2025-02-22T10:21:46.222027+01:00 [INFO] using project environment variables from CLI. PATH="<··>"

Steps to trigger the problem:

  1. Open a Go project in Zed.

Actual Behaviour:

Zed permanently shows the "Setting up workspace" message.

Expected Behaviour:

n/a

Zed Version and System Specs

Zed: v0.175.3 (Zed Preview)
OS: macOS 15.3.1
Memory: 16 GiB
Architecture: aarch64

@nesokad
Copy link

nesokad commented Feb 23, 2025

I have same bug and we have same specs:

Zed: v0.175.3 (Zed Preview)
OS: macOS 15.3.1
Memory: 16 GiB
Architecture: aarch64

Go 1.24 project

@xgfone
Copy link

xgfone commented Feb 24, 2025

I have met with the trouble.

Zed: v0.176.0 (Zed Dev ee280b0d058af3fc5705133d6531f8860c73498a) 
OS: Windows 10.0.26100
Memory: 31.6 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics || Intel Corporation || 101.6127

@beniaminzagan beniaminzagan added the go Go programming language support label Feb 24, 2025
@lgrote
Copy link

lgrote commented Feb 24, 2025

Same Issue here. The "Zed Preview" process consumes 50% constantly. So I assume it's not just a UI bug.

Image

Zed: v0.175.3 (Zed Preview)
OS: macOS 15.3.1
Memory: 36GiB
Architecture: aarch64

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

No branches or pull requests

5 participants