prepl responses do not indicate if they're an exception or not

Description

When an error occurs in a Clojure prepl the exception is caught at the outermost layer and returned with :tag :ret as well as :exception true. This allows tooling to handle the error responses accordingly.

If ClojureScript would return :exception true as well it would bring it inline with how the Clojure prepl works.

Environment

None

Activity

Show:
Oliver Caldwell
June 5, 2019, 8:50 AM

If this is considered valid I'll submit a patch for it today. As far as I can tell from all of my work with prepls over the last few months this is one of the last major outstanding features. Once is in we'll have reader conditionals in both Clojure and ClojureScript too.

The only thing I haven't been able to do is set the current line / column / file path for ClojureScript evals, but that's off topic.

Mike Fikes
June 10, 2019, 10:58 PM

CLJS-3096.patch passes CI

Mike Fikes
June 13, 2019, 10:05 PM

CLJS-3096.patch added to Patch Tender

Assignee

Mike Fikes

Reporter

Oliver Caldwell

Labels

Approval

None

Patch

Code

Priority

Minor
Configure