mfussenegger / nvim-dap-python

An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
GNU General Public License v3.0
540 stars 48 forks source link

feat: increase the priority of resolve_python configuration #114

Closed qizidog closed 9 months ago

qizidog commented 1 year ago

nvim-dap-python by default looks for VIRTUAL_ENV and CONDA_PREFIX environment variables, resolve_python only take effect in the absence of VIRTUAL_ENV and CONDA_PREFIX even when resolve_python is configured which is not intuitive enough.

This pr allows users to prioritize using configurations specified by resolve_python and fallback to use the default environment when configuration errors occur.

mfussenegger commented 10 months ago

What's a scenario where you've VIRTUAL_ENV set but still want to resolve a different python?

This would be a breaking change for users who relied on resolve_python acting as fallback