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
571 stars 50 forks source link

fix:default_runner: Look for marker files within all possible root_dirs #156

Closed a3ng7n closed 2 months ago

a3ng7n commented 3 months ago

Changes default_runner to run its same logic over each folder path returned by root_dirs(), returning the first success - if none are found, it defaults to unittest.

Note: this removes the trailing return 'unittest' from within the elseif uv.fs_stat("pyproject.toml") then ... scope, and instead proceeds with checking the next root folder in the loop - this is intentional.

Also updates associated docs to note the logic.

a3ng7n commented 2 months ago

@mfussenegger sorry to bother, but have you had a chance to look at this?