-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Can't get stacktrace for exception in test report #2577
Comments
I've tracked this down to a problem in the
cc @vspinu |
I'm able to work around this by manually linking the |
Digging more into this, it shows I was led down the wrong path: For some reason, my Wrapping |
Thanks @kommen for digging all of this. I think your proposal makes a lot of sense. |
You had two proposals here. I was referring to the change on the sesman side. Or do you now believe it's not the right place to address it? |
@vspinu from my current point of view, only cider's Because the project dir is used to set
When later cider tries to find the repl for the So, to be extra safe, |
I do think I have another proposal, but also for cider: The original error message is not very helpful. It would be better to get something that no repl was found instead. This can probably be addressed passing |
I have already made a change to sesman with stripping extra slash in I don't think the change to cider is necessary. I think the consumers of default-directory should not assume trailing slash.
Yes. Have you tracked why the error is the way it is? Would be great if you could provide a patch for this and maybe other similar cases. I am on a long trip to China and cannot look at it right now. |
yes, I did. I think I can provide a patch. |
If for any reason (i.e. clojure-emacs#2577) cider-current-repl doesn't find a repl, this ensures a proper user friendly error is displayed instead of a type error.
If for any reason (i.e. clojure-emacs#2577) cider-current-repl doesn't find a repl, this ensures a proper user friendly error is displayed instead of a type error.
@vspinu I can confirm that with vspinu/sesman@3df3301 my original issue is fixed. Thank you! I've submitted #2591 for the better error messages as a follow up. |
If for any reason (i.e. clojure-emacs#2577) cider-current-repl doesn't find a repl, this ensures a proper user friendly error is displayed instead of a type error.
If for any reason (i.e. clojure-emacs#2577) cider-current-repl doesn't find a repl, this ensures a proper user friendly error is displayed instead of a type error.
If for any reason (i.e. clojure-emacs#2577) cider-current-repl doesn't find a repl, this ensures a proper user friendly error is displayed instead of a type error.
If for any reason (i.e. clojure-emacs#2577) cider-current-repl doesn't find a repl, this ensures a proper user friendly error is displayed instead of a type error.
Expected behavior
Clicking an error in a test report should show the stacktrace for that error.
Actual behavior
Steps to reproduce the problem
Environment & Version information
CIDER version information
Emacs version
GNU Emacs 26.1.91 (build 2, x86_64-apple-darwin18.2.0, Carbon Version 158 AppKit 1671.2) of 2019-01-10
Operating system
macOS 10.14.3 (18D109)
The text was updated successfully, but these errors were encountered: