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

Unable to dap-register-debug-template via .dir-locals.el #803

Open
RidaAyed opened this issue Aug 3, 2024 · 0 comments
Open

Unable to dap-register-debug-template via .dir-locals.el #803

RidaAyed opened this issue Aug 3, 2024 · 0 comments

Comments

@RidaAyed
Copy link

RidaAyed commented Aug 3, 2024

I'm perfectly able to register the template manually by evaluating the snippet below. Yet I fail to set it automatically via .dir-locals.el.

Loading python-mode requires ~2 seconds, due a couple of other bound services like pipenv and in particular lsp-mode.

So I tried replacing python-mode with lsp-mode, but to no avail.

;; .dir-locals.el
(python-mode . ((eval . (progn
  ((dap-register-debug-template "foobar"
         (
               list :
               type "python" :
               cwd "${workspaceFolder}" :
               module "pytest" :
               request "launch" :
               name "foobar")))))))
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

No branches or pull requests

1 participant