emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dape 6def976339 8/8: Fix bug in ruby config


From: ELPA Syncer
Subject: [elpa] externals/dape 6def976339 8/8: Fix bug in ruby config
Date: Thu, 14 Dec 2023 15:57:41 -0500 (EST)

branch: externals/dape
commit 6def976339f965933b9795369323118fbe91d4a0
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>

    Fix bug in ruby config
---
 dape.el | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/dape.el b/dape.el
index fd9a8cf215..083548ab78 100644
--- a/dape.el
+++ b/dape.el
@@ -206,23 +206,24 @@
      modes (ruby-mode ruby-ts-mode)
      ensure dape-ensure-command
      command "rdbg"
-     command-args ("-O" "--host" "0.0.0.0" "--port" :autoport "--")
+     command-args ("-O" "--host" "0.0.0.0" "--port" :autoport "-c" "--" :-c)
      command-cwd (lambda () (funcall dape-cwd-fn t))
      fn ((lambda (config)
            (plist-put config 'command-args
-                      (append
-                       (plist-get config 'command-args)
-                       (list (plist-get config '--)))))
+                      (mapcar (lambda (arg)
+                                (if (eq arg :-c)
+                                    (plist-get config '-c)
+                                  arg))
+                              (plist-get config 'command-args))))
          dape-config-autoport
          dape-config-tramp)
      port :autoport
      :type "Ruby"
      ;; -- examples:
-     ;; target.rb
      ;; rails server
      ;; bundle exec ruby foo.rb
      ;; bundle exec rake test
-     -- (lambda () (read-string "Invoke ruby command: "))))
+     -c (lambda () (read-string "Invoke command: "))))
   "This variable holds the Dape configurations as an alist.
 In this alist, the car element serves as a symbol identifying each
 configuration.  Each configuration, in turn, is a property list (plist)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]