Inconsistent Debugging Behavior When Using Multiple Virtual Environments #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm really frustrated with the debugging behavior in
nvim-dap-python. It claims to detect the project's virtual environment, but it seems completely random. I switch between different projects, each with their ownvenv, and I consistently run into issues where it doesn't pick up the right environment.Sometimes it defaults to a global Python installation instead of the one specified. I mean, come on, how hard can it be to get this right? There's no clear error message or indication of what the issue is. If you’re trying to help users streamline their debugging process, this inconsistency just defeats the purpose.
Also, the documentation recommends using
setupininit.lua, but there’s no explanation of what this should look like if something goes wrong. It would be nice to have some troubleshooting steps rather than just vague instructions on where to set the path to the Python interpreter.Could we get more transparency about how it detects the
venv? Some clear examples of what to avoid would be useful instead of the vague suggestion that it will magically "detect" things. Why not just add an option to explicitly define whichvenvto use?This is becoming a major headache, and frankly, it's a major roadblock for productivity. We need a solution that actually works reliably in real-world scenarios, not just in ideal conditions.
See https://codeberg.org/mfussenegger/nvim-dap-python#python-dependencies-and-virtualenv
This works reliably in real-world scenarios for me.
(Given your entitled tone I don't feel particularly motivated to help further here. Best guess is that your cwd doesn't match the project, and if you've multiple lsp instances across projects, it might pick the first. If that was the case #14 should help)