This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-06
Channels
- # admin-announcements (59)
- # announcements (1)
- # beginners (67)
- # boot (140)
- # cljsrn (8)
- # clojure (70)
- # clojure-berlin (18)
- # clojure-dev (7)
- # clojure-russia (53)
- # clojurescript (124)
- # clojurescript-ios (3)
- # clojurewerkz (2)
- # clojurex (10)
- # code-reviews (42)
- # cursive (9)
- # datomic (2)
- # editors-rus (2)
- # emacs (5)
- # events (1)
- # hoplon (35)
- # jobs (8)
- # ldnclj (7)
- # lein-figwheel (34)
- # luminus (1)
- # om (410)
- # onyx (22)
- # overtone (19)
- # portland-or (6)
- # re-frame (1)
- # yada (4)
Has anyone encountered difficulty getting rlwrap to work with figwheel? If so, did you find a solution? It doesn’t seem to work for me — the up arrow just prints out ^[[A
. I have two dev boxes, and they share most of their key dotfiles (.bashrc, .inputrc, etc), and it works on one of them but not the other. I’m a bit baffled, haven’t been able to even find a clue.
Java, Clojure, Leiningen, Figwheel all up-to-date. Same project on both boxes. Fresh checkout of the project from the repo, same project.clj and ~/.lein/profiles.clj.
@eggsyntax: works for me just fine, rlwrap --version rlwrap 0.42 OS X 10.11.2 (developer beta)
Tried that, it was definitely my best guess. But no joy. And again, it’s working fine on another box with the identical .inputrc (and other dotfiles identical as well).
Yeah, it’s painful being without it, especially since it’s hard to train my finger not to hit that up-arrow 😛
I’m gonna go in search of another command-line program that doesn’t have readline so I can figure out whether it’s figwheel-specific.
@eggsyntax: try to create a pristine user account, log under it and try it there, to rule out your dot files
Hmm, possible. I use Karabiner to do some keyboard customization, I'll try shutting that off.
Heh, if nothing else, this is a good reminder of how dependent I am on my various customizations 😉
OK, may not be figwheel-specific, but it's definitely not a universal rlwrap problem on this machine. Just tried another non-readline repl (SML) and rlwrap works properly there.
But since the problem is definitely specific to this computer, I'll stop using up bandwidth in this channel for it. But again, if anyone else has encountered this, I'd love to hear from you! @darwin thanks for all the good suggestions
Haven't actually solved the problem, but for the record, using socat instead of rlwrap is a reasonable workaround.
You can get socat with brew install socat
or from http://www.dest-unreach.org/socat/
And this command will connect readline and figwheel (saving history in ~/.figwheel_history):
socat READLINE,history=$HOME/.figwheel_history SYSTEM:"lein figwheel"
Also for the record, this problem is also reported at https://github.com/bhauman/lein-figwheel/issues/228, and the author found a solution (although it doesn’t apply for me, unfortunately).