JonyEpsilon / gorilla-repl

A rich REPL for Clojure in the notebook style.
http://gorilla-repl.org
MIT License
887 stars 104 forks source link

duplicate outputs are supressed #187

Open behrica opened 9 years ago

behrica commented 9 years ago

I notice that supplicated outputs are suppressed. So evaluating:

1
1

shows:

1

instead of:

1
1

I only fails, if they duplicationss follow directly on-after-the-other. This case works as expected:

1
2
1
JonyEpsilon commented 9 years ago

Huh, that's extremely odd! I can't imagine what could be wrong here ... I'll take a look in the debugger and see what's going on.

JonyEpsilon commented 9 years ago

Note to self: this should probably be fixed alongside #170, as the way segment output is stored and handled needs to be improved.

lspector commented 6 years ago

FWIW I've been using Gorilla REPL for years without noticing this, but I just had some students stumble into it and get quite confused. If you're learning the language by putting a bunch of expressions in the same cell and expecting to see all of the results in the output area, then the suppression of duplicate values can be extra baffling because you may think that the first non-supressed value is really the return value from a preceding expression that should have produced a duplicate of an earlier value.