dap-mode icon indicating copy to clipboard operation
dap-mode copied to clipboard

wrong-type-argument sequencep 114

Open erikc96 opened this issue 4 years ago • 7 comments

Hi, I'm getting this error with the following config:

(dap-register-debug-template "Python :: Flask"
  (list :type "python"
        :env '(("FLASK_APP" . "app/application.py") ("FLASK_ENV" . "development") ("FLASK_DEBUG" . "0"))
        :args "run --no-debugger --no-reload"
        :cwd nil
        :target-module nil
        :module "flask"
        :jinja  t
        :request "launch"
        :name "Python :: Flask"))

I tried to get the stack trace for it, but I get the following error with debug-on-error enabled instead!:

  `Symbol's function definition is void: nil`

erikc96 avatar Jun 29 '21 04:06 erikc96

with that much info it is hard to tell. Can you provide a sample application and steps to reproduce?

yyoncho avatar Jun 29 '21 06:06 yyoncho

most likely it is duplicate of https://github.com/emacs-lsp/dap-mode/issues/483

yyoncho avatar Jun 29 '21 07:06 yyoncho

Here's my launch script for vscode for my flask app:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Flask",
      "type": "python",
      "request": "launch",
      "module": "flask",
      "env": {
        "FLASK_APP": "app/application.py",
        "FLASK_ENV": "development",
      },
      "args": ["run", "--no-debugger"],
      "jinja": true
    }
  ]
}

Steps to reproduce:

  • Open emacs
  • Run projectile-switch-project and go to root of flask app
  • Run dap-debug with my flask config

What I expected to happen:

  • The app to run

What happened: wrong-type-argument sequencep 114

erikc96 avatar Jun 29 '21 17:06 erikc96

can you provide a python project to use that with? (note that lsp-mode/dap-mode support a lot of languages and maintainers might have zero knowledge for that particular language)

yyoncho avatar Jun 29 '21 17:06 yyoncho

Oh okay, I hear ya on that! I set up this project here as a simple flask app example if this is helpful! link

erikc96 avatar Jun 30 '21 04:06 erikc96

I tested it and everything seems to be working fine with the latest version of the packages:

image

yyoncho avatar Jul 02 '21 06:07 yyoncho

I seem to get the same type of error as soon as I provide non empty "args" to dap-register-debug-template. Everything will work fine until I try to add arguments. As soon as I try to run the debug then it tells me "shell-quote-argument: Wrong type argument: sequencep, 45".

PKN-AUTDE avatar Mar 07 '22 13:03 PKN-AUTDE