-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken python intellisense is making zed unusable #22266
Comments
What languages specifically? And what do you mean by "path-completions"? |
Python. By path-completions I just meant import statements like |
Also maybe "intellisense" is not the exact technical term, but what I mean is suggestions where it shows the best/likeliest choice of class/function etc. There may be two "competing" completions - copilot and the ones from the LSP, but I don't know where to specify which to prefer (or I don't fully understand the interplay). |
I'm running into similar issues with unusable intellisense -- pretty much everything suggested is an import from a different module. Here's an example of me attempting to annotate one of my methods with the @AbstractMethod decorator. I've already imported abstractmethod: I'd love some toggleable settings which
|
I'm thinking this is probably mainly a docs issue and not a bug -- there needs to be a definitive document somewhere that shows, "if you want to have x,y,z capabilities, this is what your settings.json should contain", etc. Currently I'm finding partial and inconsistent success by hunting down these settings in various gh issues and even reddit. The latest incarnation of my hundreds of iterations of e.g. when I do "languages": {
"Python": {
"language_servers": ["pyright", "ruff", "!python-refactoring", "!pylsp"],
"enable_language_server": true,
"format_on_save": "on",
"formatter": [
{
"code_actions": {
"source.organizeImports.ruff": true,
"source.fixAll.ruff": true
}
},
{
"language_server": {
"name": "ruff"
}
}
]
}
},
"lsp": {
"pyright": {
"settings": {
"python.analysis": {
"ignore": ["*"],
"diagnosticMode": "workspace",
"typeCheckingMode": "strict"
},
"python": {
"pythonPath": ".venv/bin/python"
}
}
},
"ruff": {
"initialization_options": {
"settings": {
// Ruff server settings goes here
"lineLength": 89,
"lint": {
"extendSelect": ["I", "F", "E"]
}
}
}
},
"pylsp": {
"settings": {
"plugins": {
"mypy": {
"enabled": true
},
"pycodestyle": {
"enabled": false
},
"flake8": {
"enabled": false
},
"rope": {
"enabled": false
},
"pyflakes": {
"enabled": false
},
"mccabe": {
"enabled": false
}
}
}
},
}, EDIT - I know the settings above are redundant since |
Check for existing issues
Describe the bug / provide steps to reproduce it
The various AI features are great but the very basic code completion seems broken.
To try to get this working, I commented out the entire "languages" section in my
settings.json
, and uninstalled all relevant extensions, but can't seem to get basic path-completions to work.E.g. if I do
from blah.
I expect to see (good) auto-complete suggestions, but nothing shows up.Sometimes I've seen it show a drop-down of choices, but sometimes (more often) I don't, so I've no idea what's going on, nor is there anything helpful in discord or docs.
Zed Version and System Specs
Zed: v0.166.1 (Zed)
OS: macOS 15.0.0
Memory: 64 GiB
Architecture: aarch64
If applicable, add screenshots or screencasts of the incorrect state / behavior
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: