Closed sham1 closed 4 months ago
Hi!
Are you using dape from elpa or from master?
If you are using from maste could you please share the contents of the *dape-connection events*
buffer?
Closing this at is probably the same issue as #78 and that has been solved by improving eglot-java
.
Experimenting at work with using the java debug adapter with an attached debugger, with the example of this comment, I've gotten to an interesting issue.
Due to the architecture of the framework we use at work, when a breakpoint is hit in our code, the program's control flow goes through classes in the CLASSPATH, which the debug adapter will provide via the custom jdtls URL schema of
jdt://
. This causes problems indape--info-stack-update
, and in particular in the call todape--format-file-line
, since that assumes that thepath
will be a filesystem path instead of a URL, which in turn means that the inner call tofile-relative-name
will fail as a result.The error in particular is
(wrong-type-argument stringp nil)
because internallyfile-relative-name
is trying to callstring-prefix-p
withnil
as the prefix, which is of course not allowed.A proper fix would probably require proper support for URLs, but for the time being a working solution could be that if
file
provided todape--format-file-line
is a URL, it's used verbatim in the stack trace.