bhauman / rebel-readline

Terminal readline library for Clojure dialects
Eclipse Public License 1.0
684 stars 37 forks source link

Line reader stacktrace. #190

Open jreighley opened 5 years ago

jreighley commented 5 years ago

Trying to run on V7R3 of IBMi and get the following stacktrace repeatedly after the prompt first comes up:

        at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:62)
        at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:485)
        at rebel_readline.jline_api.proxy$org.jline.reader.impl.LineReaderImpl$IAtom$IDeref$4ac0129f.readLine(Unknown Source)
        at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:390)
        at rebel_readline.jline_api.proxy$org.jline.reader.impl.LineReaderImpl$IAtom$IDeref$4ac0129f.readLine(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
        at java.lang.reflect.Method.invoke(Method.java:508)
        at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:167)
        at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:102)
        at rebel_readline.core$read_line.invokeStatic(core.clj:136)
        at rebel_readline.core$read_line.doInvoke(core.clj:85)
        at clojure.lang.RestFn.invoke(RestFn.java:408)
        at rebel_readline.core$repl_read_line.invokeStatic(core.clj:157)
        at rebel_readline.core$repl_read_line.invoke(core.clj:145)
        at rebel_readline.core$create_buffered_repl_reader_fn$fn__9278$fn__9279.invoke(core.clj:178)
        at cljs.repl$repl_STAR_$read_eval_print__8265$fn__8266.invoke(repl.cljc:872)
        at cljs.repl$repl_STAR_$read_eval_print__8265.invoke(repl.cljc:865)
        at cljs.repl$repl_STAR_$fn__8273$fn__8282.invoke(repl.cljc:925)
        at cljs.repl$repl_STAR_$fn__8273.invoke(repl.cljc:924)
        at cljs.compiler$with_core_cljs.invokeStatic(compiler.cljc:1271)
        at cljs.compiler$with_core_cljs.invoke(compiler.cljc:1260)
        at cljs.repl$repl_STAR_.invokeStatic(repl.cljc:888)
        at cljs.repl$repl_STAR_.invoke(repl.cljc:760)
        at rebel_readline.cljs.repl$eval10498$repl_STAR___10499.invoke(repl.clj:77)
        at rebel_readline.cljs.repl$repl.invokeStatic(repl.clj:86)
        at rebel_readline.cljs.repl$repl.doInvoke(repl.clj:85)
        at clojure.lang.RestFn.invoke(RestFn.java:410)
        at rebel_readline.cljs.main$_main.invokeStatic(main.clj:10)
        at rebel_readline.cljs.main$_main.doInvoke(main.clj:8)
        at clojure.lang.RestFn.invoke(RestFn.java:397)
        at clojure.lang.AFn.applyToHelper(AFn.java:152)
        at clojure.lang.RestFn.applyTo(RestFn.java:132)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.core$apply.invokeStatic(core.clj:665)
        at clojure.main$main_opt.invokeStatic(main.clj:491)
        at clojure.main$main_opt.invoke(main.clj:487)
        at clojure.main$main.invokeStatic(main.clj:598)
        at clojure.main$main.doInvoke(main.clj:561)
        at clojure.lang.RestFn.applyTo(RestFn.java:137)
        at clojure.lang.Var.applyTo(Var.java:705)
        at clojure.main.main(main.java:37)
Caused by: java.io.IOException: Unable to parse columns
        at org.jline.terminal.impl.ExecPty.doGetInt(ExecPty.java:278)
        at org.jline.terminal.impl.ExecPty.doGetSize(ExecPty.java:263)
        at org.jline.terminal.impl.ExecPty.getSize(ExecPty.java:170)
        at org.jline.terminal.impl.AbstractPosixTerminal.getSize(AbstractPosixTerminal.java:60)
        ... 41 more 

I suspect I am probably missing a core linux item that I may be able to yum install, but I am not sure which one it would be.. Or perhaps I need to define something in my bash .profile?

Any ideas?