-
Notifications
You must be signed in to change notification settings - Fork 47
collapsible exceptions added in a new namespace, according to #77 #79
Conversation
```Clojure | ||
; for Clojure | ||
[:editor.clj :-lt.plugins.clojure/clj-exception] | ||
[:editor.clj :lt.plugins.user/clj-expandable-exception] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong namespace referred to
The truncated results in clojurescript, doesn't seem to truncate well so I get a very very wide inline error. |
@rundis Regarding the very wide inline error. It not exactly a corner case, but a remainder of the previous inline-exception behavior. The original cljs behavior used the stacktrace as summary and inline-text simultaneously. The precise lines are here: https://github.com/carocad/Clojure/blob/error_proposal/src/lt/plugins/clojure/collapsible_exception.cljs#L81-L90
From what I could check, sometimes the stacktrace is not "summarized" but taken entirely. In those cases there is no difference between the I think we could truncate the summary; taking only |
```Clojure | ||
; for Clojure | ||
[:editor.clj :-lt.plugins.clojure/clj-exception] | ||
[:editor.clj :lt.plugins.clojure/clj-expandable-exception] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you are missing collapsible-exception
in the namespace here
Tx for doing this and sorry for not being quicker to respond. Too many things going on. But we will get there. I think that apart for my minor comment on truncation, we are pretty much good to go :-) |
@rundis any thoughts about the current proposal? |
Looks good. Could I just ask you for 2 more things and I'll merge;
|
@rundis done |
@carocad Almost. When I said remove the .js and .js.map file I meant don't include them in the commit. If I merge now the existing files will be deleted on master. |
README updated. collapsible.exception TAG added
@rundis you meant that? |
collapsible exceptions added in a new namespace, according to #77
tx for your contribution @carocad ! |
@rundis could you please check if the truncation works on your clojurescript? I think it should be |
Hey guys,
Here is the implementation of collapsible exceptions for Clojure(script) according to #77.
I'm not completely sure about the correct implementation of the Clojurescript exception behavior as I have not properly tested it, but in principle it should work the same as with Clojure.