-
-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step into (F11) does not go inside dependency source code #893
Comments
Thanks for the repro case. I see this error in Output -> Log (Window) after it hangs on that step into: Error: cannot open file:///jar%3Afile%3A/home/brandon/.m2/repository/testlib/testlib/0.1.0/testlib-0.1.0.jar%21/testlib/core.clj. Detail: Unable to read file '/jar:file:/home/brandon/.m2/repository/testlib/testlib/0.1.0/testlib-0.1.0.jar!/testlib/core.clj' (Error: Unable to resolve non-existing file '/jar:file:/home/brandon/.m2/repository/testlib/testlib/0.1.0/testlib-0.1.0.jar!/testlib/core.clj') The path we get from cider-nrepl saying where the next breakpoint is looks like this: I suspect we need to handle this in some way that calva/src/debugger/calva-debug.ts Line 181 in e018313
I suspect the function called in the line above doesn't handle this case correctly. I'll play around with it more and see if I can figure out what needs to be done. @PEZ might have some insight here about opening files inside of jar packages. |
I get it a little further by passing a vscode.Uri to calva/src/providers/content.ts Line 14 in e018313
What seems to be failing now is VS Code using the |
This should be fixed in the next Calva release 🎉 |
That was fast ;) |
You're welcome, and thank you for the detailed report. |
Hi team
I would like to report an issue about the debugger. I have a project using a dependency from a project in my local disk (Clojure source code). When I debug the code in Emacs (function instrumented) and I go IN (i) the function I can step by step debug in the source code of the dependency. Emacs "jumps" automatically to the dependency source code
When I do the same in calva (F11) it doesn't behave in the same way. I lose control and system seems to be frozen?
The dependency is installed by lein install in the local .m2 maven cache and the original source code is accessible. The behaviour is different but both are installed in the same laptop...
I am a Clojure beginner...maybe it is lack of knowledge?
I am attaching videos and source code to reproduce
Many thanks in advance and keep to good work! Calva is getting really strong
Calva.mp4
Emacs.mp4
test.zip
The text was updated successfully, but these errors were encountered: