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
50.86k stars 3.15k forks source link

Closed project reopens on every startup #7759

Open noinfo opened 9 months ago

noinfo commented 9 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I have downloaded zed and opened a folder as a project. When I close the project I habe zed in the state that I want it in on startup. However whenever I start up zed it opens the closed project again.

I can not close the project and have it stay closed. It always reopens on its own.

Environment

Zed: v0.121.7 (Zed) OS: macOS 14.3.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 ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

zed.log
2024-01-25T12:03:57 [INFO] ========== starting zed ==========
2024-01-25T12:03:57 [INFO] Opening main db
2024-01-25T12:03:57 [ERROR] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
2024-01-25T12:03:57 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-25T12:03:57 [INFO] Opening main db
2024-01-25T12:03:58 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/52631_1706184237660/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-25T12:03:59 [INFO] Node runtime install_if_needed
2024-01-25T12:04:03 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-25T12:04:03.424Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-01-25T12:04:03.424Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-01-25T12:04:03 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "3876c0ed-5bc6-4bb0-8546-2aad16bc7491",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-01-25T12:04:03 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-25T12:04:03.436Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-01-25T12:04:03.436Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-01-25T12:04:27 [ERROR] /Users/administrator/actions-runner-2/_work/zed/zed/crates/install_cli/src/install_cli.rs:20: Os { code: 2, kind: NotFound, message: "No such file or directory" }
2024-01-25T12:04:27 [ERROR] /Users/administrator/actions-runner-2/_work/zed/zed/crates/install_cli/src/install_cli.rs:23: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
2024-01-25T12:04:40 [INFO] open paths []
2024-01-25T12:05:13 [INFO] Opening main db
2024-01-25T12:05:39 [ERROR] crates/gpui/src/window.rs:376: window not found
2024-01-25T12:05:56 [INFO] build git repository ".git"
2024-01-25T12:06:19 [INFO] Initializing default prettier with plugins {}
2024-01-25T12:06:19 [INFO] starting language server "typescript-language-server", path: "/Users/fmeyer/code/eddyson-monorepo-apps", id: 1
2024-01-25T12:06:19 [INFO] starting language server "eslint", path: "/Users/fmeyer/code/eddyson-monorepo-apps", id: 2
2024-01-25T12:06:19 [INFO] Node runtime install_if_needed
2024-01-25T12:06:23 [INFO] Node runtime install_if_needed
2024-01-25T12:06:24 [INFO] Node runtime install_if_needed
2024-01-25T12:06:26 [INFO] Node runtime install_if_needed
2024-01-25T12:06:27 [INFO] Node runtime install_if_needed
2024-01-25T12:06:28 [INFO] 1 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Using Typescript version (user-setting) 5.3.3 from path \"/Users/fmeyer/code/eddyson-monorepo-apps/node_modules/typescript/lib/tsserver.js\""
}
2024-01-25T12:06:28 [INFO] 1 unhandled notification $/typescriptVersion:
{
  "version": "5.3.3",
  "source": "user-setting"
}
2024-01-25T12:06:49 [ERROR] unexpected item event after pane was dropped
2024-01-25T12:07:06 [ERROR] crates/lsp/src/lsp.rs:615: oneshot canceled
2024-01-25T12:07:06 [ERROR] timed out waiting on app_will_quit
2024-01-25T12:07:09 [INFO] ========== starting zed ==========
2024-01-25T12:07:09 [INFO] Opening main db
2024-01-25T12:07:09 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-25T12:07:09 [INFO] Opening main db
2024-01-25T12:07:09 [INFO] build git repository ".git"
2024-01-25T12:07:09 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/53477_1706184429319/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-26T08:18:36 [INFO] ========== starting zed ==========
2024-01-26T08:18:36 [INFO] Opening main db
2024-01-26T08:18:36 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-26T08:18:36 [INFO] Opening main db
2024-01-26T08:18:36 [INFO] build git repository ".git"
2024-01-26T08:18:37 [INFO] Node runtime install_if_needed
2024-01-26T08:18:37 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/5743_1706257116772/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-26T08:18:37 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-26T08:18:37.995Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-01-26T08:18:37.995Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-01-26T08:18:38 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "77c9dc1b-2a3a-45b5-a7d6-1a57627bc61c",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-01-26T08:18:38 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-26T08:18:38.005Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-01-26T08:18:38.005Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-01-26T08:18:48 [INFO] Opening main db
2024-01-26T08:18:48 [INFO] Initializing default prettier with plugins {}
2024-01-26T08:18:48 [INFO] starting language server "yaml-language-server", path: "/Users/fmeyer/code/eddyson-monorepo-apps", id: 1
2024-01-26T08:18:48 [INFO] Node runtime install_if_needed
2024-01-26T08:18:50 [INFO] Node runtime install_if_needed
2024-01-26T08:18:53 [INFO] Node runtime install_if_needed
2024-01-26T08:18:57 [INFO] Opening main db
2024-01-26T08:19:02 [ERROR] crates/ai/src/providers/open_ai/completion.rs:232: NotPresent
2024-01-26T08:19:15 [INFO] open paths ["/Users/fmeyer/.config/zed/settings.json"]
2024-01-26T08:19:15 [INFO] Initializing default prettier with plugins {}
2024-01-26T08:19:15 [INFO] Initializing default prettier with plugins {}
2024-01-26T08:19:15 [INFO] starting language server "json-language-server", path: "/Users/fmeyer/.config/zed/settings.json", id: 2
2024-01-26T08:19:16 [INFO] Node runtime install_if_needed
2024-01-26T08:19:17 [INFO] Node runtime install_if_needed
2024-01-26T08:19:19 [INFO] Node runtime install_if_needed
2024-01-26T08:19:37 [INFO] Waiting for default prettier to install
2024-01-26T08:19:37 [INFO] Starting prettier at path "/Users/fmeyer/Library/Application Support/Zed/prettier"
2024-01-26T08:19:37 [ERROR] Default prettier instance failed to spawn: default prettier spawn: Prettier dir "/Users/fmeyer/Library/Application Support/Zed/prettier" is not a directory
2024-01-26T08:19:37 [INFO] Initializing default prettier with plugins {}
2024-01-26T08:19:37 [INFO] Initializing default prettier with plugins {}
2024-01-26T08:19:40 [ERROR] crates/lsp/src/lsp.rs:615: oneshot canceled
2024-01-26T08:19:40 [INFO] Initializing default prettier with plugins {}
2024-01-26T08:19:46 [INFO] set status on client 0: Authenticating
2024-01-26T08:20:35 [INFO] Initializing default prettier with plugins {"prettier-plugin-tailwindcss"}
2024-01-26T08:20:35 [INFO] starting language server "typescript-language-server", path: "/Users/fmeyer/code/eddyson-monorepo-apps", id: 4
2024-01-26T08:20:35 [INFO] starting language server "eslint", path: "/Users/fmeyer/code/eddyson-monorepo-apps", id: 5
2024-01-26T08:20:35 [INFO] starting language server "tailwindcss-language-server", path: "/Users/fmeyer/code/eddyson-monorepo-apps", id: 6
2024-01-26T08:20:35 [INFO] Node runtime install_if_needed
2024-01-26T08:20:35 [INFO] Node runtime install_if_needed
2024-01-26T08:20:35 [INFO] Node runtime install_if_needed
2024-01-26T08:20:36 [INFO] Node runtime install_if_needed
2024-01-26T08:20:37 [INFO] Node runtime install_if_needed
2024-01-26T08:20:37 [INFO] Node runtime install_if_needed
2024-01-26T08:20:38 [INFO] 4 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "Using Typescript version (user-setting) 5.3.3 from path \"/Users/fmeyer/code/eddyson-monorepo-apps/node_modules/typescript/lib/tsserver.js\""
}
2024-01-26T08:20:38 [INFO] 4 unhandled notification $/typescriptVersion:
{
  "version": "5.3.3",
  "source": "user-setting"
}
2024-01-26T08:20:39 [INFO] Node runtime install_if_needed
2024-01-26T08:20:40 [INFO] Node runtime install_if_needed
2024-01-26T08:20:42 [INFO] Node runtime install_if_needed
2024-01-26T08:20:42 [INFO] 5 unhandled notification window/logMessage:
{
  "type": 3,
  "message": "ESLint server running in node v18.15.0"
}
2024-01-26T08:20:43 [INFO] 5 unhandled notification eslint/status:
{
  "uri": "file:///Users/fmeyer/code/eddyson-monorepo-apps/tools/code-gen/openapi-services/generate-openapi.js",
  "state": 1
}
2024-01-26T08:21:01 [INFO] Initializing default prettier with plugins {}
2024-01-26T08:21:01 [INFO] 5 unhandled notification eslint/status:
{
  "uri": "file:///Users/fmeyer/code/eddyson-monorepo-apps/apps/custom-db/src/app/can-activate-operator.guard.ts",
  "state": 1
}
2024-01-26T08:21:23 [ERROR] crates/lsp/src/lsp.rs:615: oneshot canceled
2024-01-26T08:21:23 [ERROR] crates/lsp/src/lsp.rs:615: oneshot canceled
2024-01-26T08:21:23 [ERROR] crates/lsp/src/lsp.rs:615: oneshot canceled
2024-01-26T08:21:23 [ERROR] crates/lsp/src/lsp.rs:615: oneshot canceled
2024-01-26T09:11:57 [INFO] ========== starting zed ==========
2024-01-26T09:11:57 [INFO] Opening main db
2024-01-26T09:11:57 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-26T09:11:57 [INFO] Opening main db
2024-01-26T09:11:57 [INFO] build git repository ".git"
2024-01-26T09:11:57 [INFO] Opening main db
2024-01-26T09:11:57 [INFO] Node runtime install_if_needed
2024-01-26T09:11:58 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/12556_1706260317254/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-26T09:11:58 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-26T09:11:58.647Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-01-26T09:11:58.647Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-01-26T09:11:58 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "95c24107-4d66-4a1d-a341-9c9985075365",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-01-26T09:11:58 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-26T09:11:58.655Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-01-26T09:11:58.655Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-01-26T09:12:44 [INFO] Opening main db
2024-01-26T09:12:50 [INFO] Initializing default prettier with plugins {}
2024-01-29T07:57:39 [INFO] ========== starting zed ==========
2024-01-29T07:57:39 [INFO] Opening main db
2024-01-29T07:57:40 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-29T07:57:40 [INFO] Opening main db
2024-01-29T07:57:40 [INFO] build git repository ".git"
2024-01-29T07:57:40 [INFO] Node runtime install_if_needed
2024-01-29T07:57:40 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/4766_1706515059915/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-29T07:57:40 [INFO] Opening main db
2024-01-29T07:57:41 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T07:57:41.053Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T07:57:41.053Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-01-29T07:57:41 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "0771489b-e779-4fa9-8f69-aaf15e673c76",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-01-29T07:57:41 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T07:57:41.061Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T07:57:41.061Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-01-29T07:57:50 [INFO] downloaded update. path:"/var/folders/z8/5zbs8r6d6v36x14psdrcrp180000gn/T/zed-auto-update.osgTRecQXbvo/Zed.dmg"
2024-01-29T07:58:05 [INFO] open paths ["/Users/fmeyer/Library/Application Support/xbar/plugins/002-eddyson.1m.sh"]
2024-01-29T07:58:05 [INFO] Opening main db
2024-01-29T13:53:48 [INFO] ========== starting zed ==========
2024-01-29T13:53:48 [INFO] Opening main db
2024-01-29T13:53:48 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-29T13:53:48 [INFO] Opening main db
2024-01-29T13:53:48 [INFO] build git repository ".git"
2024-01-29T13:53:48 [INFO] Node runtime install_if_needed
2024-01-29T13:53:48 [INFO] Opening main db
2024-01-29T13:53:49 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/32616_1706536428394/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-29T13:53:49 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T13:53:49.411Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T13:53:49.411Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-01-29T13:53:49 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "6857fc21-1cb9-4d26-8898-d762ae3b18fe",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-01-29T13:53:49 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T13:53:49.418Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T13:53:49.418Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-01-29T13:54:01 [INFO] ========== starting zed ==========
2024-01-29T13:54:01 [INFO] Opening main db
2024-01-29T13:54:01 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-29T13:54:01 [INFO] Opening main db
2024-01-29T13:54:01 [INFO] build git repository ".git"
2024-01-29T13:54:01 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/32876_1706536441179/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-29T13:54:01 [INFO] Node runtime install_if_needed
2024-01-29T13:54:02 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T13:54:02.027Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T13:54:02.027Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-01-29T13:54:02 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "e6d8618b-dd48-45ea-9f09-b095f8f193d0",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-01-29T13:54:02 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T13:54:02.035Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T13:54:02.035Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-01-29T13:54:21 [ERROR] crates/ai/src/providers/open_ai/embedding.rs:170: NotPresent
2024-01-29T13:54:21 [ERROR] crates/semantic_index/src/semantic_index.rs:86: user is not authenticated
2024-01-29T13:54:25 [ERROR] crates/gpui/src/window.rs:376: window not found
2024-01-29T13:54:28 [INFO] ========== starting zed ==========
2024-01-29T13:54:28 [INFO] Opening main db
2024-01-29T13:54:28 [ERROR] crates/zed/src/zed.rs:538: EOF while parsing a value at line 1 column 0
2024-01-29T13:54:28 [INFO] Opening main db
2024-01-29T13:54:28 [INFO] build git repository ".git"
2024-01-29T13:54:28 [INFO] Node runtime install_if_needed
2024-01-29T13:54:29 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/33011_1706536468770/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-01-29T13:54:29 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T13:54:29.460Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T13:54:29.460Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-01-29T13:54:29 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "8ae6b0d6-e405-42f9-bf6a-5fe906082e73",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-01-29T13:54:29 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-01-29T13:54:29.467Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-01-29T13:54:29.467Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-02-14T09:13:05+01:00 [INFO] ========== starting zed ==========
2024-02-14T09:13:05+01:00 [INFO] Opening main db
2024-02-14T09:13:05+01:00 [ERROR] crates/zed/src/zed.rs:519: EOF while parsing a value at line 1 column 0
2024-02-14T09:13:05+01:00 [INFO] Opening main db
2024-02-14T09:13:05+01:00 [ERROR] crates/zed/src/main.rs:887: reading themes from "/Users/fmeyer/.config/zed/themes"

Caused by:
    No such file or directory (os error 2)
2024-02-14T09:13:05+01:00 [INFO] build git repository ".git"
2024-02-14T09:13:05+01:00 [INFO] Opening main db
2024-02-14T09:13:05+01:00 [ERROR] crates/workspace/src/persistence/model.rs:257: No path stored for this editor
2024-02-14T09:13:05+01:00 [INFO] Node runtime install_if_needed
2024-02-14T09:13:06+01:00 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/3724_1707898385203/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-02-14T09:13:08+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-14T08:13:08.405Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-02-14T08:13:08.405Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-02-14T09:13:08+01:00 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "b52ed129-5602-4242-9b56-02a6fe63662a",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-02-14T09:13:08+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-14T08:13:08.419Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-02-14T08:13:08.419Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-02-14T09:13:32+01:00 [INFO] ========== starting zed ==========
2024-02-14T09:13:32+01:00 [INFO] Opening main db
2024-02-14T09:13:32+01:00 [ERROR] crates/zed/src/zed.rs:519: EOF while parsing a value at line 1 column 0
2024-02-14T09:13:32+01:00 [INFO] Opening main db
2024-02-14T09:13:32+01:00 [ERROR] crates/zed/src/main.rs:887: reading themes from "/Users/fmeyer/.config/zed/themes"

Caused by:
    No such file or directory (os error 2)
2024-02-14T09:13:32+01:00 [INFO] build git repository ".git"
2024-02-14T09:13:32+01:00 [INFO] Node runtime install_if_needed
2024-02-14T09:13:32+01:00 [INFO] set environment variables from shell:/bin/zsh, path:/Users/fmeyer/.sdkman/candidates/mvnd/current/bin:/Users/fmeyer/.sdkman/candidates/maven/current/bin:/Users/fmeyer/.sdkman/candidates/kotlin/current/bin:/Users/fmeyer/.sdkman/candidates/java/current/bin:/Users/fmeyer/.sdkman/candidates/groovy/current/bin:/Users/fmeyer/.sdkman/candidates/gradle/current/bin:/Users/fmeyer/Library/Caches/fnm_multishells/4136_1707898412103/bin:/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:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/fmeyer/bin:/opt/homebrew/opt/postgresql@15/bin:/Users/fmeyer/.yarn/bin
2024-02-14T09:13:33+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-14T08:13:33.342Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-02-14T08:13:33.342Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-02-14T09:13:33+01:00 [INFO] 0 unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "de38d082-6d3a-4656-a6f2-bf88b8d296b2",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-02-14T09:13:33+01:00 [INFO] 0 unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-02-14T08:13:33.355Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-02-14T08:13:33.355Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-02-14T09:14:06+01:00 [INFO] open paths ["/Users/fmeyer/.config/zed/settings.json"]
2024-02-14T09:14:06+01:00 [INFO] Opening main db
2024-02-14T09:14:06+01:00 [INFO] Initializing default prettier with plugins {}
2024-02-14T09:14:06+01:00 [INFO] starting language server "json-language-server", path: "/Users/fmeyer/.config/zed/settings.json", id: 1
2024-02-14T09:14:06+01:00 [INFO] Node runtime install_if_needed
2024-02-14T09:14:09+01:00 [INFO] Node runtime install_if_needed
2024-02-14T09:14:25+01:00 [INFO] Waiting for default prettier to install
2024-02-14T09:14:25+01:00 [INFO] Starting prettier at path "/Users/fmeyer/Library/Application Support/Zed/prettier"
2024-02-14T09:14:25+01:00 [ERROR] Default prettier instance failed to spawn: default prettier spawn: Prettier dir "/Users/fmeyer/Library/Application Support/Zed/prettier" is not a directory
2024-02-14T09:14:25+01:00 [INFO] Initializing default prettier with plugins {}
2024-02-14T09:17:43+01:00 [ERROR] crates/lsp/src/lsp.rs:624: oneshot canceled
williamviktorsson commented 7 months ago

Are you looking for something different than setting "restore_on_startup": "none" in your settings.json?

noinfo commented 7 months ago

Yes, I think I do. When I actively remove any open projects from zed before closing, I expect it to open "empty" as I left it. But it does'nt. It will restore to the last project I had opened instead of the bare, empty state. I do want to it to reopen to a project if I left it open. But I also want it to restore to empty if I consciously do so before closing.

noinfo commented 7 months ago

Are you looking for something different than setting "restore_on_startup": "none" in your settings.json?

I tried using this as a work around - even though it's not what I want - and noticed something interesting (probably another issue). The setting works when launching from the macOS GUI, Spotlight or Alfred.app. The setting does not do anything at all when launching from the CLI. It launches a second window that will also reopen the last opened project. Opening the settings there will show that "restore_on_startup": "none" is correctly set however.

williamviktorsson commented 7 months ago

Are you looking for something different than setting "restore_on_startup": "none" in your settings.json?

I tried using this as a work around - even though it's not what I want - and noticed something interesting (probably another issue). The setting works when launching from the macOS GUI, Spotlight or Alfred.app. The setting does not do anything at all when launching from the CLI. It launches a second window that will also reopen the last opened project. Opening the settings there will show that "restore_on_startup": "none" is correctly set however.

This is actually a different issue:

I take it you want Zed to open with an empty project, should you have exited the application in the below displayed state?

Screenshot 2024-04-25 at 09 49 55
notpeter commented 5 months ago

I can reproduce this with current releases. If you close the workspace (cmd+w) before quitting (cmd+q) when you come back, Zed reopens that workspace instead of giving you a blank window. This behavior differs what other editors do and thus what some users will expect.

lufog commented 4 months ago

~On Linux, "restore_on_startup": "none" setting does not work. The editor still opens the folder from the last session.~

In version 0.146.3 the setting works properly.

Kan5661 commented 3 months ago

Was having the same issue here. Tried "restore_on_startup": "none" in settings.json and it did prevent previously worked on projects from opening. But the issue isn't entirely fixed because when opening up a project using the cli you should expect the project to be the only one that opens, however now I am getting the project I wanted opened as well as a blank project.

perigozin commented 3 weeks ago

I'm using Zed Dev 0.160.0 and I'm trying to understand this behavior. I remove all folders from the project until the sidebar shows "Open a project Ctrl + O". When I reopen Zed it shows the last folder I removed from the project no matter what I try. "restore_on_startup": "none" shouldn't be needed because sometimes I specifically WANT for the folders to be restored but if I purposefully remove them, it should restore the same state as when I closed it.

In short: I expect Zed to have exactly the same state when reopened no matter if I have any folders added to a project. If none are opened upon closing the application it should reopen exactly as it was left.