-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
area:language server/server failureLanguage server doesn't work as expectedLanguage server doesn't work as expectedarea:languages/pythonPython programming language supportPython programming language supportfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P1Security holes w/o exploit, crash, install/update, sign-in, badly broken common featuresSecurity holes w/o exploit, crash, install/update, sign-in, badly broken common featuresstate:needs reproNeeds reproduction steps / someone to reproduceNeeds reproduction steps / someone to reproduce
Description
Reproduction steps
After the last update, Python language servers are no longer working for me. I'm currently using basedpyright, and the cmd+click and lints are not working, as well as auto-sorting imports.
I'm not sure how to downgrade Zed to understand what might be the issue, though.
Current vs. Expected behavior
Current
- Cmd + Click doesn't work
- Linting is not being reported on .py files
- Auto-sorting imports is not working
Expected
- Cmd + Click goes to class/method definition
- Linting is reported
- Auto-sorting happens on save
Zed version and system specs
Zed: v0.218.5+stable.112.2e5d241c6d6c189f4f973b54cb13a9131e7402ce (Zed)
OS: macOS 15.7.1
Memory: 24 GiB
Architecture: aarch64
Attach Zed log file
Zed.log
2026-01-07T20:38:58-03:00 INFO [zed] ========== starting zed version 0.218.5+stable.112.2e5d241c6d6c189f4f973b54cb13a9131e7402ce, sha 2e5d241 ==========
2026-01-07T20:38:58-03:00 INFO [crashes] spawning crash handler process
2026-01-07T20:38:58-03:00 INFO [zed] Using git binary path: "/Applications/Zed.app/Contents/MacOS/git"
2026-01-07T20:38:58-03:00 INFO [crashes] connected to crash handler process after 100ms
2026-01-07T20:38:58-03:00 INFO [crashes] crash handler registered
2026-01-07T20:38:58-03:00 INFO [extension_host] extensions updated. loading 13, reloading 0, unloading 0
2026-01-07T20:38:58-03:00 INFO [auto_update] Auto Update: checking for updates
2026-01-07T20:38:58-03:00 INFO [workspace] Rendered first frame
2026-01-07T20:38:58-03:00 INFO [client] set status on client 0: Authenticating
2026-01-07T20:38:58-03:00 INFO [util] set environment variables from shell:/bin/zsh, path:/opt/homebrew/opt/libpq/bin:/Users/lucasqueiroz/google-cloud-sdk/bin:/usr/local/cuda-13.0/bin:/Users/lucasqueiroz/.nix-profile/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/homebrew/bin:/opt/podman/bin:/opt/homebrew/opt/libpq/bin:/Users/lucasqueiroz/google-cloud-sdk/bin:/usr/local/cuda-13.0/bin:/Users/lucasqueiroz/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/Users/lucasqueiroz/.local/bin:/Users/lucasqueiroz/.npm-packages/bin:/Users/lucasqueiroz/.local/bin:/Users/lucasqueiroz/.npm-packages/bin
2026-01-07T20:38:58-03:00 WARN [language] unrecognized capture name 'function_name' in Python injections TreeSitter query (suppress this warning by prefixing with '_')
2026-01-07T20:38:58-03:00 WARN [language] unrecognized capture name 'comment' in Python injections TreeSitter query (suppress this warning by prefixing with '_')
2026-01-07T20:38:59-03:00 INFO [node_runtime] using Node.js found on PATH: SystemNodeRuntime { node: "/opt/homebrew/bin/node", npm: "/opt/homebrew/bin/npm", global_node_modules: "/opt/homebrew/lib/node_modules\n", scratch_dir: "/Users/lucasqueiroz/Library/Application Support/Zed/node" }
2026-01-07T20:38:59-03:00 WARN [agent_servers::acp] agent stderr: Spawning Claude Code: /opt/homebrew/Cellar/node/25.2.1/bin/node /Users/lucasqueiroz/Library/Application Support/Zed/external_agents/claude-code-acp/0.12.6/node_modules/@anthropic-ai/claude-agent-sdk/cli.js --output-format stream-json --verbose --input-format stream-json --permission-prompt-tool stdio --allowedTools mcp__acp__Read,mcp__acp__BashOutput,mcp__acp__KillShell --disallowedTools Read,Write,Edit,Bash,BashOutput,KillShell --mcp-config {"mcpServers":{"acp":{"type":"sdk","name":"acp"}}} --setting-sources user,project,local --permission-mode default --allow-dangerously-skip-permissions --include-partial-messages --session-id 23943c67-130d-41cd-9fc6-fbe523673b51
2026-01-07T20:38:59-03:00 INFO [client] set status on client 93179: Authenticated
2026-01-07T20:39:14-03:00 INFO [project::lsp_store] Waiting for worktree "/Users/lucasqueiroz/Documents/projects/normandy" to be trusted, before starting language server basedpyright
2026-01-07T20:39:14-03:00 INFO [project::lsp_store] Waiting for worktree "/Users/lucasqueiroz/Documents/projects/normandy" to be trusted, before starting language server pyright
2026-01-07T20:39:14-03:00 INFO [project::lsp_store] Waiting for worktree "/Users/lucasqueiroz/Documents/projects/normandy" to be trusted, before starting language server ruff
2026-01-07T20:39:14-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.10") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.10", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.10.18-macos-aarch64-none", version: "3.10.18.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.10"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:14-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.10") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.10", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.10.18-macos-aarch64-none", version: "3.10.18.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.10"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:14-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.12") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.12", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.12.12-macos-aarch64-none", version: "3.12.12.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.12"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:14-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.12") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.12", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.12.12-macos-aarch64-none", version: "3.12.12.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.12"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:15-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.13") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.13", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.13.9-macos-aarch64-none", version: "3.13.9.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.13"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:15-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.13") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.13", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.13.9-macos-aarch64-none", version: "3.13.9.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.13"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:15-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.14") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.14", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.14.0-macos-aarch64-none", version: "3.14.0.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.14"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:15-03:00 INFO [pet::locators] Env ("/Users/lucasqueiroz/.local/bin/python3.14") in Path resolved as ResolvedPythonEnv { executable: "/Users/lucasqueiroz/.local/bin/python3.14", prefix: "/Users/lucasqueiroz/.local/share/uv/python/cpython-3.14.0-macos-aarch64-none", version: "3.14.0.final.0", is64_bit: true, symlinks: Some(["/Users/lucasqueiroz/.local/bin/python3.14"]) } and reported as Some(GlobalPaths)
2026-01-07T20:39:43-03:00 INFO [project::lsp_store] Waiting for worktree "/Users/lucasqueiroz/.config/zed/settings.json" to be trusted, before starting language server json-language-server
Relevant Zed settings
settings.json
{
...
"languages": {
"Python": {
"indent_guides": {
"background_coloring": "disabled",
"line_width": 1,
},
"soft_wrap": "none",
"language_servers": ["basedpyright", "pyright", "ruff"],
"formatter": {
"external": {
"command": ".venv/bin/ruff",
"arguments": ["format", "-"],
},
},
"code_actions_on_format": {
"source.organizeImports.ruff": true,
"source.fixAll.ruff": true,
},
},
"TOML": {
"prettier": {
"allowed": false,
},
},
},
"lsp": {
"ruff": {
"binary": {
"env": {
"VIRTUAL_ENV": "${worktree}/.venv",
},
},
},
},
...
}Relevant Keymap
No response
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:language server/server failureLanguage server doesn't work as expectedLanguage server doesn't work as expectedarea:languages/pythonPython programming language supportPython programming language supportfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P1Security holes w/o exploit, crash, install/update, sign-in, badly broken common featuresSecurity holes w/o exploit, crash, install/update, sign-in, badly broken common featuresstate:needs reproNeeds reproduction steps / someone to reproduceNeeds reproduction steps / someone to reproduce