Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange parser issue with old REPL session #77

Closed
crisptrutski opened this issue Sep 10, 2015 · 3 comments
Closed

Strange parser issue with old REPL session #77

crisptrutski opened this issue Sep 10, 2015 · 3 comments

Comments

@crisptrutski
Copy link
Member

Left a REPL running overnight on OSX, came back to it after hibernating and found that it could no longer take input:

java.util.zip.ZipException: invalid distance too far back
                     java.util.zip.InflaterInputStream.read          InflaterInputStream.java:  164
                             java.io.FilterInputStream.read            FilterInputStream.java:  133
                          java.io.BufferedInputStream.read1          BufferedInputStream.java:  284
                           java.io.BufferedInputStream.read          BufferedInputStream.java:  345
                         sun.nio.cs.StreamDecoder.readBytes                StreamDecoder.java:  284
                          sun.nio.cs.StreamDecoder.implRead                StreamDecoder.java:  326
                              sun.nio.cs.StreamDecoder.read                StreamDecoder.java:  178
                             java.io.InputStreamReader.read            InputStreamReader.java:  184
                                java.io.BufferedReader.fill               BufferedReader.java:  161
                                java.io.BufferedReader.read               BufferedReader.java:  182
                                         clojure.core/slurp                          core.clj: 6654
                                 clojure.lang.RestFn.invoke                       RestFn.java:  410
                                     instaparse.core/parser                          core.clj:  223
...

Not sure if this is a JLine or Instaparse issue, or how easy to reproduce it is, but thought it worth noting.

@daveyarwood
Copy link
Member

Weird! Let's keep this issue open -- it's definitely worth exploring, especially if we implement #49 and users might have Alda REPL servers running for long periods of time.

@daveyarwood
Copy link
Member

After googling this error a little, this seems to be a JLine issue. It looks like it comes up a lot with Minecraft servers, which also use JLine.

Not quite sure how to solve this at the moment, just taking notes.

@daveyarwood
Copy link
Member

Whatever the cause of this issue was, I don't think it's relevant anymore in the current Alda ecosystem.

Now, the long-running process is not the Alda REPL, but the Alda server. The server does not use JLine, so I think we are in the clear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants