Current behavior
On error, a stacktrace is displayed:
stacktrace:
(elixir) lib/gen_server.ex:924: GenServer.call/3
test/leverex/loans/loan_server_test.exs:193: (test)
Expected behavior
Same stacktrace, but without colons (":")
stacktrace:
(elixir) lib/gen_server.ex:924 GenServer.call/3
test/leverex/loans/loan_server_test.exs:193 (test)
Rationale
When a single test fails, I copy the last line from stacktrace and re-run
the test with mix test.watch {filename}. Currently, I have to remove the
":" manually, which is a slight annoyance, but it add up over time.
Examples
Here are stacktraces of other languages:
JavaScript (NodeJS):
Error:
at /Users/cfisher/Git/squashed/execProcess.js:6:17
at ChildProcess.exithandler (child_process.js:213:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)
Python:
*** print_exception:Traceback (most recent call last):
File "<doctest...>", line 10, in <module>
lumberjack()
File "<doctest...>", line 4, in lumberjack
bright_side_of_death()
Go:
Recover from panic: Fake error!
Stack of 402 bytes: goroutine 1 [running]:
main.funcĀ·001()
/Users/mbutcher/Code/Go/src/scratch/stack.go:21 +0xab
runtime.panic(0x80b80, 0x2101fb150)
/usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/panic.c:248 +0x106
main.inner()
/Users/mbutcher/Code/Go/src/scratch/stack.go:27 +0x68
main.outer()
/Users/mbutcher/Code/Go/src/scratch/stack.go:13 +0x1a
main.main()
/Users/mbutcher/Code/Go/src/scratch/stack.go:9 +0x1a
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/1c1fcf6e-c8d9-4ed9-80c4-32b7f3fed1ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.