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

filename passed twice as argument in python #798

Open
Spounka opened this issue Jul 11, 2024 · 0 comments
Open

filename passed twice as argument in python #798

Spounka opened this issue Jul 11, 2024 · 0 comments

Comments

@Spounka
Copy link

Spounka commented Jul 11, 2024

In python, when doing a template edit, i noticed that when i pass the :module flag to dap-register-debug-template, the program receives filename twice as it's argument

Here's my template

(dap-register-debug-template
  "Python :: Test Bug"
  (list :type "python"
        :args '("--arg1 argument --arg2 argument")
        :cwd nil
        :debugger "debugpy"
        :module "module.file"
        :request "launch"
        :name "Python :: Customizable Configuration"))
  • expected output when doing print(sys.argv): ['/path/to/file.py', '--arg1 argument --arg2 argument']
  • actual result: ['/path/to/file.py', '/path/to/file.py', '--arg1 argument --arg2 argument']

Setup:

  • uname output: Linux spounka-arch 6.9.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 05 Jul 2024 22:11:24 +0000 x86_64 GNU/Linux
  • Emacs version: 29.4
  • doom --version output:
    GNU Emacs v29.4 nil
    Doom core v3.0.0-pre HEAD -> master 944eef90 2024-07-09 02:46:53 -0400
    Doom modules v24.08.0-pre HEAD -> master 944eef90 2024-07-09 02:46:53 -0400
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