public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Akseli Lahtinen <akselmo@akselmo.dev>
To: Tom Tromey <tom@tromey.com>
Cc: gdb@sourceware.org
Subject: Re: Help with setting up DAP for Kate text editor
Date: Sun, 21 Jan 2024 19:03:10 +0200	[thread overview]
Message-ID: <3020567.otQIP8See3@fedora-desktop> (raw)
In-Reply-To: <878r4ong93.fsf@tromey.com>

Hey, sorry for the late response. 

I have requested an account to the sourceware bugzilla so I can
create a separate bug report, but here's the logs I got from running the 
command.

```log

+++ cd /home/akseli/Repositories/artificial-rage/build/
>>> Working directory /home/akseli/Repositories/artificial-rage/build.

+++ file /home/akseli/Repositories/artificial-rage/build/ArtificialRage
WROTE: <<<{"type": "event", "event": "module", "body": {"reason": "new", 
"module": {"id": "/home/akseli/Repositories/artificial-rage/build/
ArtificialRage", "name": "/home/akseli/Repositories/artificial-rage/build/
ArtificialRage", "path": "/home/akseli/Repositories/artificial-rage/build/
ArtificialRage"}}}>>>
>>> Reading symbols from /home/akseli/Repositories/artificial-rage/build/
ArtificialRage...

READ: <<<{"arguments": null, "command": "configurationDone", "seq": 2, "type": 
"request"}>>>
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command
    body = _commands[params["command"]](**args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() 
argument after ** must be a mapping, not NoneType
WROTE: <<<{"request_seq": 2, "type": "response", "command": 
"configurationDone", "success": false, "message": 
"gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument after 
** must be a mapping, not NoneType"}>>>
READ: <<<{"arguments": null, "command": "configurationDone", "seq": 3, "type": 
"request"}>>>
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command
    body = _commands[params["command"]](**args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() 
argument after ** must be a mapping, not NoneType
WROTE: <<<{"request_seq": 3, "type": "response", "command": 
"configurationDone", "success": false, "message": 
"gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument after 
** must be a mapping, not NoneType"}>>>
READ: <<<{"arguments": null, "command": "configurationDone", "seq": 4, "type": 
"request"}>>>
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/dap/server.py", line 81, in _handle_command
    body = _commands[params["command"]](**args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() 
argument after ** must be a mapping, not NoneType
WROTE: <<<{"request_seq": 4, "type": "response", "command": 
"configurationDone", "success": false, "message": 
"gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument after 
** must be a mapping, not NoneType"}>>>
READ: <<<{"arguments": {}, "command": "disconnect", "seq": 5, "type": 
"request"}>>>
WROTE: <<<{"request_seq": 5, "type": "response", "command": "disconnect", 
"success": true}>>>
+++ quit

```

Thanks!
- Akseli

On Wednesday 17 January 2024 17:15:04 EET you wrote:
> >>>>> Akseli Lahtinen <akselmo@akselmo.dev> writes:
> > Hey, I am trying to set up DAP for Kate text editor with following config
> 
> [...]
> 
> > It starts running fine and can find breakpoints,
> > but when I try to start the debugging process, I get following error:
> > 
> > error on response:
> > 
> > gdb.dap.server.request.<locals>.wrap.<locals>.non_sync_call() argument
> > after
> > 
> > ** must be a mapping, not NoneType
> 
> Is that the complete text?
> 
> If so you can you add the arguments -iex "set debug dap-log-file /tmp/log"
> to the gdb invocation, reproduce the problem, and then send the log file?
> (Opening a new bug would be best.)
> 
> It's probably a bug in the gdb DAP implementation.  It may depend on the
> version of Python your gdb happens to be linked against.
> 
> thanks,
> Tom





  reply	other threads:[~2024-01-21 17:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-16  9:24 Akseli Lahtinen
2024-01-17 15:15 ` Tom Tromey
2024-01-21 17:03   ` Akseli Lahtinen [this message]
2024-01-22 13:45     ` Tom Tromey
2024-01-22 17:21       ` Tom Tromey
2024-01-22 17:28         ` Akseli Lahtinen
2024-01-22 19:05           ` Tom Tromey
2024-01-22 21:07             ` Akseli Lahtinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3020567.otQIP8See3@fedora-desktop \
    --to=akselmo@akselmo.dev \
    --cc=gdb@sourceware.org \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).