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 51 forks source link

Test runner "unittest" not working on windows. #91

Closed BartSte closed 1 year ago

BartSte commented 1 year ago

The regex depicted in yellow does not parse the backward slashed used by windows into periods:

IMG_20230302_161248.jpg

As a result, no tests can be executed using dap. A workaround is to replace the line by:

local path = vim.fn.expand('%:.:r:gs?\\(/\\|\\\\\\)?.?')
mfussenegger commented 1 year ago

Could you create a PR to handle this differently on windows? I don't use windows and support is best-effort by community contributions.

mfussenegger commented 1 year ago

Closing as https://github.com/mfussenegger/nvim-dap-python/pull/96 got merged