Closed mfikes closed 9 years ago
Same things happens with Quick Start browser REPL. If I can isolate what this is, I'll submit a useful bug report against ClojureScript.
@mfikes isn't this the JavaScriptCore nested invoke bug? Can't really do much about this in REPLs as advanced optimizations don't kick in.
@swannodette Good thought, but no: I just retried and am also able to reproduce it with Quick Start browser REPL against Firefox.
@swannodette Interestingly, it is related to the OS X terminal. You can essentially reproduce is with something as simple as
cat > foo.txt
Then paste in the long line and try to edit it to add the last inc
. You can't.
Interestingly lein repl
overcomes the issue (will look to see if it messes with terminal I/O line length limitations).
It appears that the terminal has a limit of 1024 characters. (See this SO.)
Interestingly, lein repl
probably avoids this by trptcolin/reply employing jline/jline2.
Ideally, Ambly wouldn't pursue things like these on its own if it can instead be implemented in the base REPL support. Closing for now.
If you paste the following in to the Ambly REPL
You will get back
254
. But if you add one moreinc
, then something messes up and the form is not evaluated and the terminal becomes unusable.