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

Zed fails to open on Mac (apple silicon, MacOS sonoma 14.5) #16496

Closed
1 task done
shiftagain opened this issue Aug 19, 2024 · 4 comments
Closed
1 task done

Zed fails to open on Mac (apple silicon, MacOS sonoma 14.5) #16496

shiftagain opened this issue Aug 19, 2024 · 4 comments
Labels
defect [core label] support User support (non-defect troubleshooting, documentation, etc) workspace Feedback for workspace management, layout, interactions, etc

Comments

@shiftagain
Copy link

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

I install the app. I click to open it, and it appears in the dock as if it was running, but no window opens.

IIRC, I tried experimenting with Zed around a year ago and had the same issue. So, could be related to some global config thing that doesn't get cleared when I delete and reinstall the app? (If so, how do I clear that?)

This reddit user/post seems to have the same issue: https://www.reddit.com/r/ZedEditor/comments/1ddtaag/zed_wont_open/

Environment

Can't do this since the app window doesn't open. Let me know how to retrieve this otherwise.

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

No response

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

Zed.log (i removed personal data)

2024-08-19T23:40:08.739641Z [INFO] ========== starting zed ==========
2024-08-19T23:40:08.740638Z [INFO] Opening main db
2024-08-19T23:40:08.743806Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-08-19T23:40:08.859653Z [INFO] set environment variables from shell:/bin/zsh, path:/usr/local/share/python:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/share/dotnet
2024-08-19T23:40:08.873353Z [INFO] extensions updated. loading 1, reloading 0, unloading 0
2024-08-19T23:40:08.908604Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.911037Z [INFO] Opening main db
2024-08-19T23:40:08.911142Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.911446Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.911783Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.911852Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.911907Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.911962Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.915152Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.915567Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.91565Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.917238Z [INFO] building git repository, .git path in the worktree: “[removed]/.git"
2024-08-19T23:40:08.91802Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.91833Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.918672Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.918956Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.919271Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.919521Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.920898Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.923561Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.924568Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.929122Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.931117Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.943539Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.944925Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.945369Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.948784Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.951208Z [ERROR] failed to retrieve next drawable, drawable size: Size { 0 px (device) × 0 px (device) }
2024-08-19T23:40:08.951584Z [ERROR] error processing "[removed]/settings.py": No such file or directory (os error 2)
2024-08-19T23:40:08.95323Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.954935Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.9554Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.955809Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.957137Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.958533Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.958604Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.959485Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.961188Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.961453Z [ERROR] Error { code: -9, klass: 4, message: "reference 'refs/heads/main' not found" }
2024-08-19T23:40:08.961598Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.962657Z [INFO] building git repository, .git path in the worktree: "[removed]/.git"
2024-08-19T23:40:08.978417Z [INFO] Opening main db
2024-08-19T23:40:08.98381Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:08.999781Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:09.045847Z [WARN] request completed with error: failed to connect to the server
2024-08-19T23:40:09.218093Z [INFO] Node runtime install_if_needed
2024-08-19T23:40:09.319792Z [INFO] starting language server. binary path: "/Users/[removed]/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/[removed]/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-19T23:40:09.535762Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T23:40:09.533Z] Agent service starting",
"metadataStr": "[DEBUG] [agent] [2024-08-19T23:40:09.533Z]",
"extra": [
"Agent service starting"
]
}
2024-08-19T23:40:09.536887Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
"registrations": [
{
"id": "656569d8-93df-4e6c-8db0-5b66663c8582",
"method": "workspace/didChangeWorkspaceFolders",
"registerOptions": {}
}
]
}
2024-08-19T23:40:09.562657Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
"level": 0,
"message": "[DEBUG] [agent] [2024-08-19T23:40:09.540Z] Telemetry initialized",
"metadataStr": "[DEBUG] [agent] [2024-08-19T23:40:09.540Z]",
"extra": [
"Telemetry initialized"
]
}

@shiftagain shiftagain added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Aug 19, 2024
@maxdeviant
Copy link
Member

@shiftagain You could try removing the database folder located here:

~/Library/Application Support/Zed/db/

@notpeter notpeter added workspace Feedback for workspace management, layout, interactions, etc support User support (non-defect troubleshooting, documentation, etc) and removed admin read Pending admin review triage Maintainer needs to classify the issue labels Aug 20, 2024
@Moshyfawn Moshyfawn added the needs info / awaiting response Issue that needs more information from the user label Aug 20, 2024
@jonee
Copy link

jonee commented Aug 20, 2024

Or try to install from homebrew.

@shiftagain
Copy link
Author

@shiftagain You could try removing the database folder located here:

~/Library/Application Support/Zed/db/

Thanks, this fixed it. Can close this issue if we want, but maybe this fix should be added to the docs somewhere, or somehow automated so that it doesn't have to be figured out manually.

@JosephTLyons JosephTLyons removed the needs info / awaiting response Issue that needs more information from the user label Oct 13, 2024
@JosephTLyons
Copy link
Collaborator

I'm going to close this issue since it seems to be a one-off. Something strange must've happened to your database and killing it fixed it. If you hit it again, please open another issue, as maybe its something that can still occur in the latest Zed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] support User support (non-defect troubleshooting, documentation, etc) workspace Feedback for workspace management, layout, interactions, etc
Projects
None yet
Development

No branches or pull requests

6 participants