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

Wrong type argument stringp nil with dap-lldb on Mac M1 #808

Open
lanceberge opened this issue Sep 7, 2024 · 0 comments
Open

Wrong type argument stringp nil with dap-lldb on Mac M1 #808

lanceberge opened this issue Sep 7, 2024 · 0 comments

Comments

@lanceberge
Copy link

lanceberge commented Sep 7, 2024

My configuration:

(use-package cc-mode
  :ensure nil
  :init
  (require 'dap-lldb)
  :hook
  (c++-mode . +cpp-mode)
  (c++-ts-mode . +cpp-mode)
  :custom
  (dap-lldb-debug-program "/opt/homebrew/opt/llvm/bin/lldb-dap") ; this executable does exist
  :config
  (defun +cpp-mode ()
    (setq-local tab-width 4)

    (dap-register-debug-template
     "lldb"
     (list :type "lldb-vscode"
           :request "launch"
           :name "lldb"
           :MIMode "lldb-dap"
           :program "${workspaceFolder}/average_contiguous_subarray" ; the file I'm trying to debug
           :cwd "${workspaceFolder}"))))

I do dap-debug on the cpp file with debug-on-error, then I get:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  #<subr make-process>(:name "lldb" :connection-type pipe :coding no-conversion :command "/opt/homebrew/opt/llvm/bin/lldb-dap" :stderr "*lldb stderr*" :noquery t)
  make-process@with-editor-process-filter(#<subr make-process> :name "lldb" :connection-type pipe :coding no-conversion :command "/opt/homebrew/opt/llvm/bin/lldb-dap" :stderr "*lldb stderr*" :noquery t)
  apply(make-process@with-editor-process-filter #<subr make-process> (:name "lldb" :connection-type pipe :coding no-conversion :command "/opt/homebrew/opt/llvm/bin/lldb-dap" :stderr "*lldb stderr*" :noquery t))
  make-process(:name "lldb" :connection-type pipe :coding no-conversion :command "/opt/homebrew/opt/llvm/bin/lldb-dap" :stderr "*lldb stderr*" :noquery t)
  apply(make-process (:name "lldb" :connection-type pipe :coding no-conversion :command "/opt/homebrew/opt/llvm/bin/lldb-dap" :stderr "*lldb stderr*" :noquery t))
  dap--create-session((:type "lldb-vscode" :request "launch" :name "lldb" :MIMode "lldb-dap" :program "/Users/lance/code/leetcode/sliding_window/average_..." :cwd "/Users/lance/code/leetcode/sliding_window" :dap-server-path "/opt/homebrew/opt/llvm/bin/lldb-dap"))
  dap-start-debugging-noexpand((:type "lldb-vscode" :request "launch" :name "lldb" :MIMode "lldb-dap" :program "/Users/lance/code/leetcode/sliding_window/average_..." :cwd "/Users/lance/code/leetcode/sliding_window" :dap-server-path "/opt/homebrew/opt/llvm/bin/lldb-dap"))
  #f(compiled-function () #<bytecode 0xe5b690e8b7ed623>)()
  dap-debug((:type "lldb-vscode" :request "launch" :name "lldb" :MIMode "lldb-dap" :program "${workspaceFolder}/average_contiguous_subarray" :cwd "${workspaceFolder}"))
  funcall-interactively(dap-debug (:type "lldb-vscode" :request "launch" :name "lldb" :MIMode "lldb-dap" :program "${workspaceFolder}/average_contiguous_subarray" :cwd "${workspaceFolder}"))
  call-interactively(dap-debug)
  +dap-debug()
  funcall-interactively(+dap-debug)
  command-execute(+dap-debug)
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