branch: externals/dape
commit 95d52ea58562d322e8450af67e6cb93fbd196cde
Author: Daniel Pettersson <[email protected]>
Commit: Daniel Pettersson <[email protected]>
Fix parsing of codelldb adapter output on windows #1
For some reason Dape is unable to find start of json under windows
when using codelldb. It seams unlikely to be an codelldb issue.
---
dape.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dape.el b/dape.el
index c3e2b039d1..cf5e6ee520 100644
--- a/dape.el
+++ b/dape.el
@@ -439,9 +439,10 @@ If EXTENDED end of line is after newline."
;;; Process and parsing
+;; HACK Issue #1 for some reason \r is not inserted into the parse
+;; buffer by codelldb on windows. No trace in source code.
(defconst dape--content-length-re
- "\\(?:.*: .*\r\n\\)*Content-Length: \
-*\\([[:digit:]]+\\)\r\n\\(?:.*: .*\r\n\\)*\r\n"
+ "Content-Length: \\([[:digit:]]+\\)\r?\n\r?\n"
"Matches debug adapter protocol header.")
(defun dape--debug (type string &rest objects)