Skip to content
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

Change the :type of pytest-at-point debug template #745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gamboz
Copy link

@gamboz gamboz commented Jul 18, 2023

The :type of the debug template "Python :: Run pytest (at point)" should match the "LANGUAGE-ID" argument of the function (dap-register-debug-provider), otherwise the "PROVIDE-CONFIGURATION-FN" is not called (and all tests in the current buffer are run, instead of just the test function at point).

I also humbly suggest to edit the doc string of (dap-register-debug-provider) so that it explicitly references the name of the property :type of the plist "CONFIGURATION-SETTINGS" in (dap-register-debug-template). I'm not providing a MR for this because it's entirely possible that the problem is actually me not understanding what's going on here 🙂

The `:type` of the debug template "Python :: Run pytest (at point)" should match the "LANGUAGE-ID" argument of the function (dap-register-debug-provider), otherwise the "PROVIDE-CONFIGURATION-FN" is not called.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant