clojurescript-site icon indicating copy to clipboard operation
clojurescript-site copied to clipboard

Quick Start mentions stack trace which no longer appears

Open mfikes opened this issue 6 years ago • 2 comments

In Quick Start:

Let’s make a mistake. Try evaluating (ffirst [1]). You should get a source mapped stack trace ...

But with recent changes stack traces are no longer printed by default:

ClojureScript 1.10.516
cljs.user=> (ffirst [1])
Execution error (Error) at (<cljs repl>:1).
1 is not ISeqable

mfikes avatar Mar 21 '19 20:03 mfikes

Potential solution:

Change the language to read:

Let’s make a mistake. Try evaluating (ffirst [1]) followed by (pst).

The REPL experience at that point might look like

ClojureScript 1.10.516
cljs.user=> (ffirst [1])
Execution error (Error) at (<cljs repl>:1).
1 is not ISeqable

cljs.user=> (pst)
Error: 1 is not ISeqable
	 cljs.core/seq (out/cljs/core.cljs:1226:20)
	 cljs.core/first (out/cljs/core.cljs:1235:16)
	 cljs$core$ffirst (out/cljs/core.cljs:1751:4)

mfikes avatar Mar 21 '19 20:03 mfikes

Sounds good to me, PR welcome!

swannodette avatar Apr 12 '20 16:04 swannodette