You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clojure.core/read's doc says the stream must be an instance of java.io.PushbackReader or some derivee. While this is true in clojure, in babashka if that reader is used, I get the error
Type: java.lang.IllegalArgumentException
Message: No implementation of method: :get-line-number of protocol: #'clojure.tools.reader.reader-types/IndexingReader found for class: java.io.PushbackReader
Using clojure.lang.LineNumberingPushbackReader instead fixes this.
repro
The following script runs in clojure but not in bb:
version
v0.6.8
platform
macOS
problem
clojure.core/read
's doc says the stream must be an instance ofjava.io.PushbackReader
or some derivee. While this is true in clojure, in babashka if that reader is used, I get the errorUsing
clojure.lang.LineNumberingPushbackReader
instead fixes this.repro
The following script runs in clojure but not in bb:
expected behavior
bb shouldn't require LineNumberingPushbackReader.
The text was updated successfully, but these errors were encountered: