zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.96k stars 2.95k forks source link

Zed loses saved & unsaved buffers on restart once again #16336

Open brandondrew opened 2 months ago

brandondrew commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I was so happy when Zed began to support bulletproof buffers—which would come back up when restarting, whether saved or not—but this just failed for me when I upgraded to 0.148.0.

In my case (since this was a fairly new feature and I didn't yet trust it to work perfectly) I copied my unsaved buffers into my clipboard, so nothing was actually lost, but it would be really useful to be able to trust this feature to always work.

I don't know whether this is a useful clue or not, but the project that I lost tabs/buffers for was not even in the recent projects dialog after I restarted in the new version of Zed. Perhaps something blew up when attempting to automatically save it, somehow corrupting its record.

Environment

Zed: v0.148.1 (Zed) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64

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.

This form would not allow me to include my whole log, so I filtered out lines with [WARN] Theme, as I figured that all the warnings about themes were probably not relevant, and there were tons of them since I've installed every theme and looked at all of them.

Zed.log

2024-08-16T04:26:11.781298Z [INFO] ========== starting zed ==========
2024-08-16T04:26:11.783365Z [INFO] Opening main db
2024-08-16T04:26:11.786066Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-08-16T04:26:11.953397Z [ERROR] invalid binding value for keystroke cmd-alt-enter, context Some("Editor")

Caused by:
    no action type registered for editor::NewLineAbove
2024-08-16T04:26:11.953567Z [ERROR] invalid binding value for keystroke cmd-n, context Some("ProjectPanel")

Caused by:
    no action type registered for project_panel::NewFolder
2024-08-16T04:26:11.984305Z [ERROR] theme not found: Halcyon
2024-08-16T04:26:11.989012Z [INFO] extensions updated. loading 183, reloading 0, unloading 0
2024-08-16T04:26:12.08518Z [ERROR] invalid binding value for keystroke cmd-alt-enter, context Some("Editor")

Caused by:
    no action type registered for editor::NewLineAbove
2024-08-16T04:26:12.085297Z [ERROR] invalid binding value for keystroke cmd-n, context Some("ProjectPanel")

Caused by:
    no action type registered for project_panel::NewFolder
2024-08-16T04:26:12.087972Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.088311Z [INFO] Opening main db
2024-08-16T04:26:12.088379Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.08854Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.088933Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.089031Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.089119Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.089213Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.08929Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.091884Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.508591Z [INFO] set status on client 0: Authenticating
2024-08-16T04:26:12.510278Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.513692Z [INFO] Opening main db
2024-08-16T04:26:12.513976Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.515623Z [ERROR] theme not found: Halcyon
2024-08-16T04:26:12.516091Z [INFO] set status on client 101649: Connecting
2024-08-16T04:26:12.519307Z [INFO] Node runtime install_if_needed
2024-08-16T04:26:12.520864Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.534027Z [INFO] installing extension exquisite 0.1.3
2024-08-16T04:26:12.537637Z [ERROR] theme not found: Halcyon
2024-08-16T04:26:12.5379Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:12.539477Z [ERROR] theme not found: Halcyon
2024-08-16T04:26:12.539677Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:12.550138Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.552212Z [INFO] Opening main db
2024-08-16T04:26:12.552491Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.553486Z [ERROR] theme not found: Halcyon
2024-08-16T04:26:12.553654Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:12.556338Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.557437Z [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-08-16T04:26:12.561543Z [ERROR] theme not found: Halcyon
2024-08-16T04:26:12.561732Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:12.562956Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.622802Z [ERROR] theme not found: Halcyon
2024-08-16T04:26:12.623029Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:12.625487Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:12.853226Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-16T04:26:13.055059Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/brandon/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-16T04:26:13.136966Z [INFO] add connection to peer
2024-08-16T04:26:13.137027Z [INFO] add_connection;
2024-08-16T04:26:13.137085Z [INFO] waiting for server hello
2024-08-16T04:26:13.1494Z [INFO] got server hello
2024-08-16T04:26:13.149489Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 485, id: 226167 })
2024-08-16T04:26:13.149562Z [INFO] set status on client 101649: Connected { peer_id: PeerId { owner_id: 485, id: 226167 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-08-16T04:26:13.399422Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-16T04:26:13.388Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-08-16T04:26:13.388Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-08-16T04:26:13.399525Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "b45e91e1-7f18-449b-870a-9938dad7d465",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-08-16T04:26:13.61903Z [INFO] set environment variables from shell:/bin/zsh, path:/Users/brandon/.pyenv/shims:/Users/brandon/.nvm/versions/node/v21.5.0/bin:/Users/brandon/.rbenv/shims:/Users/brandon/.config/zplug/repos/zplug/zplug/bin:/Users/brandon/.config/zplug/bin:/opt/homebrew/bin:/Users/brandon/Library/Application Support/edgedb/bin:/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:/Library/Apple/usr/bin:/Users/brandon/bin:/Users/brandon/.pyenv/shims:/Users/brandon/.nvm/versions/node/v21.5.0/bin:/Users/brandon/.rbenv/shims:/Users/brandon/.fig/bin:/Users/brandon/.local/bin:/Applications/ShellHistory.app/Contents/Helpers:/Users/brandon/Source/Roc/latest:/Users/brandon/.cargo/bin:/Applications/ShellHistory.app/Contents/Helpers:/Users/brandon/Source/Roc/latest:/Users/brandon/.cargo/bin
2024-08-16T04:26:13.80446Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-16T04:26:13.801Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-08-16T04:26:13.801Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-08-16T04:26:20.678657Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:20.68026Z [INFO] installing extension gdscript 0.4.0
2024-08-16T04:26:20.68037Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:24.084922Z [INFO] rebuilt extension index in 3.200148791s
2024-08-16T04:26:24.085234Z [INFO] extensions updated. loading 0, reloading 2, unloading 0
2024-08-16T04:26:24.317277Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:24.318666Z [INFO] installing extension halcyon 0.0.2
2024-08-16T04:26:24.318762Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:26.267621Z [INFO] downloaded update. path:"/var/folders/nb/r4vxddvx2sb1316n9ry9j1_w0000gn/T/zed-auto-updatesD2fJe/Zed.dmg"
2024-08-16T04:26:27.552266Z [INFO] rebuilt extension index in 2.887146708s
2024-08-16T04:26:27.552517Z [INFO] extensions updated. loading 0, reloading 2, unloading 0
2024-08-16T04:26:27.688338Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:27.689484Z [INFO] installing extension hex-light-theme 0.0.2
2024-08-16T04:26:27.689754Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:32.436904Z [INFO] rebuilt extension index in 4.321759458s
2024-08-16T04:26:32.437269Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:32.47163Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:32.472991Z [INFO] installing extension lilypond 0.0.3
2024-08-16T04:26:32.474043Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:36.433495Z [INFO] rebuilt extension index in 3.4696725s
2024-08-16T04:26:36.43373Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:36.434258Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:36.435356Z [INFO] installing extension msun-dark 0.0.6
2024-08-16T04:26:36.435505Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:39.974632Z [INFO] rebuilt extension index in 3.031850375s
2024-08-16T04:26:39.974944Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:40.000524Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:40.001836Z [INFO] installing extension one-dark-pro-monokai-darker 0.1.1
2024-08-16T04:26:40.001972Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:43.257887Z [INFO] rebuilt extension index in 2.856972s
2024-08-16T04:26:43.258454Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:43.264236Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:43.265059Z [INFO] installing extension polar-theme 0.6.0
2024-08-16T04:26:43.265411Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:46.841008Z [INFO] rebuilt extension index in 3.093860084s
2024-08-16T04:26:46.841588Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:46.865079Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:46.866069Z [INFO] installing extension ruby 0.1.0
2024-08-16T04:26:46.868089Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:50.443935Z [INFO] rebuilt extension index in 2.929309625s
2024-08-16T04:26:50.444193Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:50.586859Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:50.588379Z [INFO] installing extension tokyo-night 0.3.0
2024-08-16T04:26:50.588517Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:53.947975Z [INFO] rebuilt extension index in 2.9554255s
2024-08-16T04:26:53.948295Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:53.965671Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:53.967579Z [INFO] installing extension tomorrow-theme 0.7.0
2024-08-16T04:26:53.967886Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:26:57.405132Z [INFO] rebuilt extension index in 2.997348959s
2024-08-16T04:26:57.405331Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:26:57.431057Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:26:57.431834Z [INFO] installing extension ultimate-dark-neo 0.0.5
2024-08-16T04:26:57.432191Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:27:00.933585Z [INFO] rebuilt extension index in 3.04919875s
2024-08-16T04:27:00.933941Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:27:00.942375Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:27:00.943006Z [INFO] installing extension vscode-dark-modern 0.0.4
2024-08-16T04:27:00.95347Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:27:04.075923Z [INFO] rebuilt extension index in 2.820001458s
2024-08-16T04:27:04.076116Z [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-08-16T04:27:04.082748Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:27:04.083919Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:06.616423Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:29:06.742944Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:29:06.743104Z [INFO] starting language servers for Markdown: markdown-oxide, marksman, scls, snippet-completion-server
2024-08-16T04:29:06.743178Z [INFO] starting language server "markdown-oxide", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 1
2024-08-16T04:29:06.743271Z [INFO] starting language server "marksman", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 2
2024-08-16T04:29:06.743356Z [INFO] starting language server "scls", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 3
2024-08-16T04:29:06.743462Z [INFO] starting language server "snippet-completion-server", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 4
2024-08-16T04:29:07.159556Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/browserslist/node_modules/.bin/browserslist-lint": No such file or directory (os error 2)
2024-08-16T04:29:07.162324Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/acorn-import-assertions/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:07.177049Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:07.177483Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/terser": No such file or directory (os error 2)
2024-08-16T04:29:07.180815Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:07.181071Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/envinfo": No such file or directory (os error 2)
2024-08-16T04:29:07.18447Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:07.185594Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:07.186887Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-dev-server/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:07.188144Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/update-browserslist-db/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:07.199467Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:07.220418Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:07.220586Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:07.220719Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:07.220835Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:07.221057Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:07.221231Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:08.620378Z [ERROR] failed to start language server "scls": Must install https://github.com/d1y/scls
2024-08-16T04:29:08.620484Z [ERROR] server stderr: Some("")
2024-08-16T04:29:08.620568Z [INFO] retrying installation of language server "scls" in 1s
2024-08-16T04:29:08.939666Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/extensions/work/snippets/simple-completion-language-server-v0.1.1/simple-completion-language-server", working directory: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes", args: []
2024-08-16T04:29:09.06335Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/extensions/work/markdown-oxide/markdown-oxide-v0.23.1/markdown-oxide-v0.23.1-aarch64-apple-darwin/markdown-oxide", working directory: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes", args: []
2024-08-16T04:29:09.236312Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/extensions/work/marksman/marksman-2023-12-09/marksman", working directory: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes", args: ["server"]
2024-08-16T04:29:09.623143Z [INFO] About to spawn test binary
2024-08-16T04:29:09.623244Z [WARN] test binary failed to launch
2024-08-16T04:29:09.6233Z [WARN] test binary check failed
2024-08-16T04:29:09.623355Z [INFO] beginning to reinstall server
2024-08-16T04:29:09.623422Z [INFO] deleting server container
2024-08-16T04:29:09.623758Z [ERROR] server container removal

Caused by:
    No such file or directory (os error 2)
2024-08-16T04:29:09.623863Z [INFO] starting language server "scls", path: "/Users/brandon/Code/Rails/portal", id: 5
2024-08-16T04:29:09.623949Z [INFO] starting language server "scls", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 6
2024-08-16T04:29:10.277089Z [ERROR] oneshot canceled
2024-08-16T04:29:10.277191Z [ERROR] oneshot canceled
2024-08-16T04:29:10.277393Z [ERROR] oneshot canceled
2024-08-16T04:29:10.27963Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:29:10.385608Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/browserslist/node_modules/.bin/browserslist-lint": No such file or directory (os error 2)
2024-08-16T04:29:10.386609Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/acorn-import-assertions/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:10.395875Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:10.396033Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/terser": No such file or directory (os error 2)
2024-08-16T04:29:10.398151Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:10.398273Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/envinfo": No such file or directory (os error 2)
2024-08-16T04:29:10.401471Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:10.401643Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:10.402166Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-dev-server/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:10.402639Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/update-browserslist-db/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:10.406041Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:10.415709Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:10.415873Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:10.41597Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:10.416069Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:10.416168Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:10.416361Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:27.889944Z [INFO] ========== starting zed ==========
2024-08-16T04:29:27.892696Z [INFO] Opening main db
2024-08-16T04:29:27.896002Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-08-16T04:29:28.040216Z [ERROR] invalid binding value for keystroke cmd-alt-enter, context Some("Editor")

Caused by:
    no action type registered for editor::NewLineAbove
2024-08-16T04:29:28.040366Z [ERROR] invalid binding value for keystroke cmd-n, context Some("ProjectPanel")

Caused by:
    no action type registered for project_panel::NewFolder
2024-08-16T04:29:28.066511Z [ERROR] theme not found: Halcyon
2024-08-16T04:29:28.071242Z [INFO] extensions updated. loading 183, reloading 0, unloading 0
2024-08-16T04:29:28.166098Z [ERROR] invalid binding value for keystroke cmd-alt-enter, context Some("Editor")

Caused by:
    no action type registered for editor::NewLineAbove
2024-08-16T04:29:28.166214Z [ERROR] invalid binding value for keystroke cmd-n, context Some("ProjectPanel")

Caused by:
    no action type registered for project_panel::NewFolder
2024-08-16T04:29:28.168173Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.168279Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.168343Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.169049Z [INFO] Opening main db
2024-08-16T04:29:28.169429Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.169525Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.169593Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.169656Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.169718Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.172486Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.176645Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:29:28.177162Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.399454Z [ERROR] theme not found: Halcyon
2024-08-16T04:29:28.400951Z [ERROR] theme not found: Halcyon
2024-08-16T04:29:28.402053Z [ERROR] theme not found: Halcyon
2024-08-16T04:29:28.402253Z [INFO] set status on client 0: Authenticating
2024-08-16T04:29:28.404159Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.406185Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.406363Z [INFO] Opening main db
2024-08-16T04:29:28.406558Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.406662Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.409264Z [ERROR] theme not found: Halcyon
2024-08-16T04:29:28.409815Z [INFO] set status on client 101649: Connecting
2024-08-16T04:29:28.411889Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.421262Z [ERROR] theme not found: Halcyon
2024-08-16T04:29:28.437828Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.451507Z [ERROR] theme not found: Halcyon
2024-08-16T04:29:28.459436Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:28.472156Z [INFO] Node runtime install_if_needed
2024-08-16T04:29:28.548953Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/browserslist/node_modules/.bin/browserslist-lint": No such file or directory (os error 2)
2024-08-16T04:29:28.550615Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/acorn-import-assertions/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:28.560515Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:28.560771Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/terser": No such file or directory (os error 2)
2024-08-16T04:29:28.562394Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:28.56253Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/envinfo": No such file or directory (os error 2)
2024-08-16T04:29:28.564955Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:28.565412Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:28.567089Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-dev-server/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:28.56873Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/update-browserslist-db/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:28.577924Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:28.592422Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:28.59274Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:28.593041Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:28.593148Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:28.593383Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:28.593601Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:28.619494Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-08-16T04:29:28.843223Z [INFO] add connection to peer
2024-08-16T04:29:28.843321Z [INFO] add_connection;
2024-08-16T04:29:28.84339Z [INFO] waiting for server hello
2024-08-16T04:29:28.854143Z [INFO] got server hello
2024-08-16T04:29:28.854263Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 485, id: 227833 })
2024-08-16T04:29:28.854385Z [INFO] set status on client 101649: Connected { peer_id: PeerId { owner_id: 485, id: 227833 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-08-16T04:29:28.937817Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/brandon/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-08-16T04:29:29.397653Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-16T04:29:29.315Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-08-16T04:29:29.315Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-08-16T04:29:29.400834Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "02b7ac28-0b53-44e9-840b-faafd792e161",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-08-16T04:29:29.681703Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-08-16T04:29:29.678Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-08-16T04:29:29.678Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-08-16T04:29:29.888265Z [INFO] set environment variables from shell:/bin/zsh, path:/Users/brandon/.pyenv/shims:/Users/brandon/.nvm/versions/node/v21.5.0/bin:/Users/brandon/.rbenv/shims:/Users/brandon/.config/zplug/repos/zplug/zplug/bin:/Users/brandon/.config/zplug/bin:/opt/homebrew/bin:/Users/brandon/Library/Application Support/edgedb/bin:/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:/Library/Apple/usr/bin:/Users/brandon/bin:/Users/brandon/.pyenv/shims:/Users/brandon/.nvm/versions/node/v21.5.0/bin:/Users/brandon/.rbenv/shims:/Users/brandon/.fig/bin:/Users/brandon/.local/bin:/Applications/ShellHistory.app/Contents/Helpers:/Users/brandon/Source/Roc/latest:/Users/brandon/.cargo/bin:/Applications/ShellHistory.app/Contents/Helpers:/Users/brandon/Source/Roc/latest:/Users/brandon/.cargo/bin
2024-08-16T04:29:33.25997Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:29:35.339563Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:29:48.441343Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:29:48.45916Z [INFO] Opening main db
2024-08-16T04:29:48.570887Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:29:48.57103Z [INFO] starting language servers for Markdown: markdown-oxide, marksman, scls, snippet-completion-server
2024-08-16T04:29:48.571109Z [INFO] starting language server "markdown-oxide", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 1
2024-08-16T04:29:48.571212Z [INFO] starting language server "marksman", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 2
2024-08-16T04:29:48.571314Z [INFO] starting language server "scls", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 3
2024-08-16T04:29:48.571411Z [INFO] starting language server "snippet-completion-server", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 4
2024-08-16T04:29:48.867895Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/browserslist/node_modules/.bin/browserslist-lint": No such file or directory (os error 2)
2024-08-16T04:29:48.874033Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/acorn-import-assertions/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:48.887292Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:48.888399Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/terser": No such file or directory (os error 2)
2024-08-16T04:29:48.892011Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:48.89226Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/envinfo": No such file or directory (os error 2)
2024-08-16T04:29:48.89362Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:48.893778Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:48.896168Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-dev-server/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:48.897606Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/update-browserslist-db/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:48.904127Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:48.917401Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:48.9176Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:48.917917Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:48.918031Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:48.918134Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:48.918233Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:50.350944Z [ERROR] failed to start language server "scls": Must install https://github.com/d1y/scls
2024-08-16T04:29:50.351039Z [ERROR] server stderr: Some("")
2024-08-16T04:29:50.351116Z [INFO] retrying installation of language server "scls" in 1s
2024-08-16T04:29:50.620806Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/extensions/work/snippets/simple-completion-language-server-v0.1.1/simple-completion-language-server", working directory: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes", args: []
2024-08-16T04:29:50.69498Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/extensions/work/markdown-oxide/markdown-oxide-v0.23.1/markdown-oxide-v0.23.1-aarch64-apple-darwin/markdown-oxide", working directory: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes", args: []
2024-08-16T04:29:50.819872Z [INFO] starting language server. binary path: "/Users/brandon/Library/Application Support/Zed/extensions/work/marksman/marksman-2023-12-09/marksman", working directory: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes", args: ["server"]
2024-08-16T04:29:51.361119Z [INFO] About to spawn test binary
2024-08-16T04:29:51.361223Z [WARN] test binary failed to launch
2024-08-16T04:29:51.361281Z [WARN] test binary check failed
2024-08-16T04:29:51.361336Z [INFO] beginning to reinstall server
2024-08-16T04:29:51.3614Z [INFO] deleting server container
2024-08-16T04:29:51.36194Z [ERROR] server container removal

Caused by:
    No such file or directory (os error 2)
2024-08-16T04:29:51.362041Z [INFO] starting language server "scls", path: "/Users/brandon/Code/Rails/portal", id: 5
2024-08-16T04:29:51.362126Z [INFO] starting language server "scls", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 6
2024-08-16T04:29:52.449322Z [ERROR] failed to start language server "scls": Must install https://github.com/d1y/scls
2024-08-16T04:29:52.449476Z [ERROR] server stderr: Some("")
2024-08-16T04:29:52.449543Z [INFO] retrying installation of language server "scls" in 1s
2024-08-16T04:29:53.390302Z [ERROR] failed to start language server "scls": Must install https://github.com/d1y/scls
2024-08-16T04:29:53.39039Z [ERROR] server stderr: Some("")
2024-08-16T04:29:53.390453Z [INFO] retrying installation of language server "scls" in 1s
2024-08-16T04:29:53.455062Z [INFO] About to spawn test binary
2024-08-16T04:29:53.455269Z [WARN] test binary failed to launch
2024-08-16T04:29:53.45534Z [WARN] test binary check failed
2024-08-16T04:29:53.455405Z [INFO] beginning to reinstall server
2024-08-16T04:29:53.455484Z [INFO] deleting server container
2024-08-16T04:29:53.455661Z [ERROR] server container removal

Caused by:
    No such file or directory (os error 2)
2024-08-16T04:29:53.45577Z [INFO] starting language server "scls", path: "/Users/brandon/Code/Rails/portal", id: 7
2024-08-16T04:29:53.455881Z [INFO] starting language server "scls", path: "/Users/brandon/Library/Mobile Documents/iCloud~md~obsidian/Documents/Ideas & Projects/Code Notes/Portal Notes/fix_enrollments_in_portal_data_cleanup.md", id: 8
2024-08-16T04:29:54.197541Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:29:54.359565Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/browserslist/node_modules/.bin/browserslist-lint": No such file or directory (os error 2)
2024-08-16T04:29:54.360851Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/acorn-import-assertions/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:54.368891Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:54.369053Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser-webpack-plugin/node_modules/.bin/terser": No such file or directory (os error 2)
2024-08-16T04:29:54.370126Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:54.370253Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-cli/node_modules/.bin/envinfo": No such file or directory (os error 2)
2024-08-16T04:29:54.371055Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:54.371176Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:54.372086Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/webpack-dev-server/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:54.374655Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/update-browserslist-db/node_modules/.bin/browserslist": No such file or directory (os error 2)
2024-08-16T04:29:54.376528Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/terser/node_modules/.bin/acorn": No such file or directory (os error 2)
2024-08-16T04:29:54.386954Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:54.387133Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:54.387201Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/serve/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:54.387269Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/info/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:54.38732Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack-cli": No such file or directory (os error 2)
2024-08-16T04:29:54.387397Z [ERROR] error processing "/Users/brandon/Code/Rails/portal/node_modules_X/@webpack-cli/configtest/node_modules/.bin/webpack": No such file or directory (os error 2)
2024-08-16T04:29:54.39174Z [INFO] About to spawn test binary
2024-08-16T04:29:54.391809Z [WARN] test binary failed to launch
2024-08-16T04:29:54.391851Z [WARN] test binary check failed
2024-08-16T04:29:54.3986Z [ERROR] oneshot canceled
2024-08-16T04:29:54.398766Z [ERROR] oneshot canceled
2024-08-16T04:29:54.398959Z [ERROR] oneshot canceled
2024-08-16T04:29:57.694273Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:30:12.47947Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-08-16T04:30:12.512722Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:30:12.596495Z [INFO] building git repository, `.git` path in the worktree: "vendor/bundle/ruby/3.0.0/bundler/gems/pdf-writer-7f5bc6c9ce69/.git"
2024-08-16T04:30:12.739162Z [INFO] building git repository, `.git` path in the worktree: "vendor/bundle/ruby/3.1.0/bundler/gems/pdf-writer-7f5bc6c9ce69/.git"
2024-08-16T04:30:12.85735Z [INFO] building git repository, `.git` path in the worktree: "vendor/bundle/ruby/3.3.0/bundler/gems/pdf-writer-7f5bc6c9ce69/.git"
2024-08-16T04:30:12.927653Z [INFO] building git repository, `.git` path in the worktree: "vendor/bundle/ruby/2.7.0/bundler/gems/pdf-writer-7f5bc6c9ce69/.git"
2024-08-16T04:42:23.211862Z [INFO] Initializing default prettier with plugins {}
2024-08-16T04:42:23.230231Z [WARN] request completed with error: failed to connect to the server
2024-08-16T04:42:23.254577Z [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-08-16T04:42:38.238347Z [INFO] open paths ["/Users/brandon/Library/Logs/Zed/Zed.log"]

Moshyfawn commented 2 months ago

I think you mentioned a similar kind of behaviour the other day

mrnugget commented 2 months ago

Hey @brandondrew, sorry to hear that! Let's get to the bottom of this.

  1. You used the feature before the upgrade to 148 and it worked, yes? which version did you upgrade from, do you remember?
  2. When Zed didn't restore the files, it also didn't restore the project, yes?
  3. Do the files you "lost" show up when you run this: sqlite3 ~/Library/Application\ Support/Zed/db/0-stable/db.sqlite 'select path, contents from editors where path is not null or contents is not null;'? (You need to change 0-stable to 0-preview in case you use a preview release) That should give you the path and the contents (if it was dirty) that we saved
  4. If you run this: sqlite3 ~/Library/Application\ Support/Zed/db/0-stable/db.sqlite 'select workspace_id, window_state, window_x, window_y, window_height, window_id from workspaces;' — are there any rows where the window_height and window_width are 0?

My hunch right now is that the new feature (saving buffer contents) isn't broken, but that something existing broke and the workspace itself couldn't be saved/restored and thus the buffers are also not restored.

brandondrew commented 2 months ago
  1. I think it was probably the version immediately prior, but I don't know that with certainty.
  2. As far as I remember that is correct.
  3. It showed a mixture of (a) currently open unsaved content, and (b) paths to content that I have probably had open in Zed in the past, but I didn't see anything that looked like a document that could have been lost
  4. I see several cases where those are null (if I'm reading the output correctly).
1|||||
3|||||
4|||||
5|Fixed|645.0|25.0|875.0|
6|||||
7|||||
8|Maximized||||
9|Fixed|0.0|25.0|875.0|
10|Maximized||||
12|Fixed|0.0|25.0|875.0|
13|Windowed|0.0|25.0|875.0|
14|Fixed|0.0|25.0|875.0|
15|Fixed|0.0|25.0|875.0|
16|||||4294967302
17|||||
19|||||
20|Fixed|0.0|25.0|875.0|
23|||||
24|||||
25|||||
26|||||
27|||||
29|||||
30|Fixed|0.0|25.0|875.0|
31|Fixed|0.0|25.0|875.0|
32|||||
33|Windowed|0.0|25.0|875.0|4294967300
35|Windowed|0.0|25.0|875.0|4294967297
36|Windowed|0.0|25.0|875.0|4294967298
37|Windowed|0.0|25.0|875.0|
38|Windowed|0.0|25.0|875.0|
39|Windowed|0.0|25.0|875.0|4294967299
40|Windowed|0.0|25.0|875.0|4294967307
41|Windowed|0.0|25.0|875.0|4294967301
42|Windowed|0.0|25.0|875.0|4294967303
43|||||
44|Windowed|0.0|25.0|875.0|4294967305
45|Windowed|0.0|25.0|875.0|4294967304
46|||||
47|||||
50|Windowed|0.0|25.0|875.0|4294967306
51|||||
52|Windowed|0.0|25.0|875.0|4294967310
54|Windowed|0.0|25.0|875.0|4294967308
57|||||
58|Windowed|0.0|25.0|875.0|4294967297
59|Windowed|0.0|25.0|875.0|4294967311
60|Windowed|96.0|114.0|700.0|
61|Windowed|203.0|124.0|700.0|
62|||||
65|Windowed|-1.0|25.0|875.0|
66|Windowed|0.0|25.0|875.0|
67|Windowed|0.0|25.0|875.0|
68|Windowed|0.0|25.0|875.0|4294967297
69|||||
70|||||12884901889
71|Windowed|0.0|25.0|875.0|
mrnugget commented 2 months ago

3. It showed a mixture of (a) currently open unsaved content, and (b) paths to content that I have probably had open in Zed in the past, but I didn't see anything that looked like a document that could have been lost

Huh, that's odd. The unsaved-buffer contents and the workspace are serialized/restored separately. So the fact that your workspace doesn't show up in the recent projects made me think that it's the workspace that's corrupted, not the contents.

Let me think about this a little more.

ylluminate commented 2 months ago

What are the config arguments to set to get this to work right? I wonder if it would help to do a sanity check to ensure a config setting is not creating a problem. I'm having trouble getting it to work altogether at this point with or without config settings, so this is of interest to me as well.

mrnugget commented 2 months ago

Setting to save/restore unsaved buffers:

{"session": { "restore_unsaved_buffers": true}} //default
ylluminate commented 1 month ago

I feel like I'm going a bit insane here. Walked away for a bit as I cannot get this to work regardless of what I do - and with what appears to be 100% unequivocally correct settings.

I've gone so far as to rm ~/.config/zed/settings.json (and rm -fr ~/.config/zed) and I still have the behavior of where it prompts me to save the document and does not restore the documents/session.

This is on 0.153.2...

mrnugget commented 1 month ago

Can you record a video of what you're doing? You open Zed, edit a file, then hit cmd-q to close it?

ylluminate commented 1 month ago

Precisely @mrnugget, Zed Preview 0.153.3: https://share.zight.com/Kou8wJ7v

mrnugget commented 1 month ago

Okay, you're using a window without a project. In those windows, storing/restoring unsaved buffers is not supported yet. See my comment here and the whole issue: https://github.com/zed-industries/zed/issues/5258#issuecomment-2259930997

Try opening a project/folder first (cmd-o) and in that one creating a buffer and then saving Zed with cmd-q.

ylluminate commented 1 month ago

Wow, alright... Sorry I didn't see this as associated with that. I tend to use this kind of functionality a lot with Sublime Text and Zed is rather attractive as a replacement in various aspects. Thanks for clarifying and hope that that achieves resolution soon since having projects control this is definitely suboptimal.

brandondrew commented 1 month ago

@mrnugget Sorry this is somewhat tangential, but is there any reason not to implicitly open a project with every window? In other words, if I type zed ~/.ssh/config it could open a project where the root is ~/.ssh. Current behavior (IIRC) is to open in a random (or maybe the first) project despite not belonging to that project's directory.

I'll try to test this later when I've got time (making sure I'm on the latest Zed( and open a separate issue (if none are open already), but the handling of projects seems to affect a lot of different features of Zed, including reopening buffers. I think implicit projects (for lack of a better name) might resolve several surprising or problematic behaviors.

ylluminate commented 1 month ago

I suppose I could live with an implicit defaults "project" like "scratch" that could work as a catchall - or implicit projects could be contextually created per folder... but this seems like it might be counterintuitive and create some problems. Hmmm.

mrnugget commented 1 month ago

@brandondrew yeah, I've had similar thoughts. We do something like that too. If you open a single file, sometimes, the workspace is set to that file. Other times it's an untitled workspace/project. But even if we do that, it wouldn't solve all cases, because a lot of people want to hit cmd-n to open a new window, write something in a buffer, and have that persist — even if you open 5 of those untitled windows. That's how Sublime works and that's how I think it should work in Zed. Just need to figure out how to make it work, but it's a fundamental change that's a bit tricky to get right.

brandondrew commented 1 month ago

@mrnugget I'm not understanding why my suggestion wouldn't work in the cases you described.

I'm not suggesting that there is only one universal "implicit" project, which I think @ylluminate inferred. Instead, every time you hit ⌘-N without a project open in the same Space/Desktop, or ⌘-⇧-N regardless of any open projects, you would get a new project window, which you could save wherever you want.

I'm not sure if that clears up any confusion.

ylluminate commented 1 month ago

Sorry, I thought of it both ways (see the second option after the first thought) - and, frankly, neither sits well with me since I think @mrnugget is right that the behavior that is default in Sublime Text, TextMate, and others should in this regard should be emulated since it has become standard/expected and relied on regularly.

brandondrew commented 1 month ago

Also, although Sublime Text is a very nice editor in many ways, I would recommend TextMate as the model to follow. Although the developer made 2 decisions which IMHO killed TextMate's chances of long-term success (not making it cross-platform, and doing a "big rewrite" that of course took a long time), TextMate got just about everything right when it comes to UX.

I am hoping the Zed is the editor to do everything right, including UX. I think TextMate is a better model to follow than Sublime Text, and far better than VS Code. Zed has already done SO MANY THINGS better than predecessors. It would be a shame to lose the opportunity to surpass all previous editors in every way.

brandondrew commented 1 month ago

@ylluminate maybe I'm not correctly understanding the behavior he's describing.

ylluminate commented 1 month ago

@brandondrew you are 💯x💯 right here about TextMate. Ergonomically it was incredible (I still use it some - and I also still use emacs, just not for everything). I don't like how Sublime Text "feels" in many regards... even though it tries to emulate TextMate.

mrnugget commented 1 month ago

I think we're all talking about the same thing :) I just didn't express myself well. Long story short: we need to persist buffers in windows, even if that window doesn't point to a folder.

brandondrew commented 1 month ago

I think we're all talking about the same thing :) I just didn't express myself well. Long story short: we need to persist buffers in windows, even if that window doesn't point to a folder.

I 100% agree!