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
47.89k stars 2.81k forks source link

Zed continuously triggers macOS pop-up: '"Zed" would like to access data from other apps.' #18497

Open sammcj opened 4 days ago

sammcj commented 4 days ago

Check for existing issues

Describe the bug / provide steps to reproduce it

As of a few weeks ago whenever I launch Zed I get spammed repeatedly with this pop-up:

SCR-20240929-pgie

If I click 'yes' it is dismissed and then a new one appears, this occurs endlessly until Zed is force killed - or if I click 'no', it only pops up again one more time before continuing to work normally.

Environment

Zed: v0.154.3 (Zed) OS: macOS 14.6.1 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.

Zed.log

2024-09-29T17:22:31.439678+10:00 [INFO] Node runtime install_if_needed
2024-09-29T17:22:31.482471+10:00 [ERROR] Error { code: -9, klass: 4, message: "reference 'refs/heads/main' not found" }
2024-09-29T17:22:31.59231+10:00 [INFO] starting language server process. binary path: "/Users/samm/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/samm/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-09-29T17:22:31.736339+10:00 [INFO] set environment variables from shell:/bin/zsh, path:/opt/homebrew/opt/openssl@3/bin:/Users/samm/.rvm/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/Users/samm/.helm:/usr/local/bin:/Users/samm/.venv/bin:/Users/samm/.pyenv/shims:/Users/samm/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/Users/samm/.local/state/fnm_multishells/64814_1727594550961/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/llvm/bin:/Users/samm/.cargo/bin:/Users/samm/miniconda3/bin:/sbin:/opt/homebrew/bin:/usr/local/bin:/opt/homebrew/sbin:/opt/homebrew/opt/gnu-getopt/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:/opt/X11/bin://Applications/Topaz Photo AI.app/Contents/Resources/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Applications/Wireshark.app/Contents/MacOS:/opt/homebrew/opt/openssl@3/bin:/Users/samm/.rvm/bin:/opt/homebrew/sbin:/opt/homebrew/bin:/Users/samm/.helm:/Users/samm/.venv/bin:/Users/samm/.local/state/fnm_multishells/63882_1727594498247/bin:/opt/homebrew/opt/openjdk/bin:/opt/homebrew/opt/qt@5/bin:/opt/homebrew/opt/llvm/bin:/Users/samm/Library/pnpm:/Users/samm/.cargo/bin:/Users/samm/miniconda3/bin:/opt/homebrew/opt/gnu-getopt/bin:/Users/samm/.local/bin:/Users/samm/Library/Mobile\ Documents/com\~apple\~CloudDocs/Dropbox\ Import/bin:/Users/samm/git/scripts:/Users/samm/bin:/Users/samm/go/bin:/opt/homebrew/opt/fzf/bin:/Users/samm/.cache/lm-studio/bin:/Users/samm/.local/bin:/Users/samm/Library/Mobile\ Documents/com\~apple\~CloudDocs/Dropbox\ Import/bin:/Users/samm/git/scripts:/Users/samm/.local/bin:/Users/samm/bin:/Users/samm/go/bin:/Users/samm/.rvm/bin:/Users/samm/.cache/lm-studio/bin:/Users/samm/.local/bin
2024-09-29T17:22:31.954199+10:00 [WARN] Theme "Base16 Windows 95" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-09-29T17:22:31.959617+10:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-09-29T07:22:31.956Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-09-29T07:22:31.956Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-09-29T17:22:31.96021+10:00 [WARN] Theme "Base16 Gruvbox dark, pale" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-09-29T17:22:31.962311+10:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "f864e445-2e56-4051-9266-62787c6598a4",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-09-29T17:22:32.211711+10:00 [INFO] add connection to peer
2024-09-29T17:22:32.211767+10:00 [INFO] add_connection;
2024-09-29T17:22:32.211814+10:00 [INFO] waiting for server hello
2024-09-29T17:22:32.225594+10:00 [INFO] got server hello
2024-09-29T17:22:32.225656+10:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 545, id: 3081412 })
2024-09-29T17:22:32.225727+10:00 [INFO] set status on client 88669: Connected { peer_id: PeerId { owner_id: 545, id: 3081412 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-09-29T17:22:32.552985+10:00 [WARN] request completed with error: failed to connect to the server
2024-09-29T17:22:32.577212+10:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-09-29T07:22:32.570Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-09-29T07:22:32.570Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-09-29T17:22:32.824065+10:00 [ERROR] failed to fetch cached embeddings via cloud model
Caused by:
    RPC request GetCachedEmbeddings failed: permission denied
2024-09-29T17:22:34.821892+10:00 [WARN] request completed with error: failed to connect to the server
2024-09-29T17:23:33.495881+10:00 [INFO] Summarizing updated entries took 4.583µs
2024-09-29T17:23:33.613581+10:00 [INFO] building git repository, `.git` path in the worktree: "/Users/samm/.git"
2024-09-29T17:23:33.624795+10:00 [INFO] Summarizing updated entries took 3.542µs
2024-09-29T17:23:33.876513+10:00 [ERROR] failed to fetch cached embeddings via cloud model
Caused by:
    RPC request GetCachedEmbeddings failed: permission denied
notpeter commented 2 days ago

Hi @sammcj Thanks for reporting.

Curious what directories are triggering this prompt on your system.

I've seen it when I launch zed ~ or go forbid zed / (because Zed tries to recursively walk everything underneath).

P.S. Thanks for providing your log. I edited it to remove the theme-related log spam and filed an issue with the theme creator to fix: