Open hochata opened 2 weeks ago
Hey! I got the following "working", seams like regals stdout com breaks jsonrpc parsing.
(add-to-list 'dape-configs
'(regal
command "regal"
command-args ("debug" "--server" "--address" "127.0.0.1::autoport")
port :autoport
:bundlePaths (lambda () (vector (dape-command-cwd)))
:command "eval"
:query "data"
:stopOnEntry t
:stopOnFail t
:stopOnResult t
:enablePrint t))
As I am not familiar with regal so I can't verify how well it works :)
It works perfectly! Thanks a lot.
How exactly does regal break the parsing? I'll try to report it upstream.
I am not really sure, but I would guess that is hat something with it echoing out received message as follows:
time="2024-09-28T13:02:54+02:00" level=info msg="Initializing: {\"clientID\":\"dape\",\"adapterID\":\"\",\"linesStartAt1\":true,\"columnsStartAt1\":true,\"pathFormat\":\"path\",\"supportsRunInTerminalRequest\":true,\"supportsProgressReporting\":true,\"supportsStartDebuggingRequest\":true}"
Content-Length: 340
{"seq":1,"type":"response","request_seq":1,"success":true,"command":"initialize","body":{"supportsConfigurationDoneRequest":true,"supportTerminateDebuggee":true,"supportSuspendDebuggee":true,"supportsTerminateRequest":true,"supportsCancelRequest":true,"supportsBreakpointLocationsRequest":true,"supportsSingleThreadExecutionRequests":true}}
Hi! Thanks for this package, it is incredible!
I tried to get Regal debugger to work but I can't get past the initialization. The debugger is not very documented so I apologize if the error is not with Dape.
Sample code file
Dape config
Events buffer
Connection output
Dape repl
So I think the server is returning the initialization response, but for some reason Dape doesn't received it, and the connection times out. Any help is welcomed!