Comments (8)
I looked at Leiningen's rlwrap support, and extracted the basic rlwrap options. The following command will launch a ClojureScript REPL with good readline settings:
rlwrap -r -m -q '\"' -b "(){}[],^%3@\";:'" lein trampoline cljsbuild <repl-command>
from lein-cljsbuild.
This should be added to the documentation somewhere, perhaps the wiki.
from lein-cljsbuild.
So the above command doesn't quite work on Mac OS with rlwrap installed via homebrew; the error message is:
rlwrap: warning: on this system, the getopt() library function doesn't
grok optional arguments, so '-q' is taken as an argument to the -m option
Is this what you meant? If not, please provide an argument
rlwrap: Cannot execute ": No such file or directory
This seems to be related to an issue that was reported last year in Leiningen:
http://groups.google.com/group/leiningen/browse_thread/thread/a55dde87fe489c5b
and fixed with this commit:
from lein-cljsbuild.
That's the bad news. The good news is that omitting -q seems to work; v.i.z:
rlwrap -r -m '"' -b "(){}[],^%3@";:'" lein trampoline cljsbuild repl-listen
from lein-cljsbuild.
To avoid the long command, the bash script (I called it runj):
#!/bin/bash
rlwrap -r -m '"' -b "(){}[],^%3@";:'" lein trampoline cljsbuild $1
from lein-cljsbuild.
I added a wiki page to document this: https://github.com/emezeske/lein-cljsbuild/wiki/Using-Readline-with-REPLs-for-Better-Editing .
from lein-cljsbuild.
I just added a line about omitting -q on Mac OS, hope this is OK-----
Thanks,
Nick.
On Sun, May 27, 2012 at 2:55 PM, Evan Mezeske <
[email protected]
wrote:
I added a wiki page to document this:
https://github.com/emezeske/lein-cljsbuild/wiki/Using-Readline-with-REPLs-for-Better-Editing.
Reply to this email directly or view it on GitHub:
#46 (comment)
from lein-cljsbuild.
Thanks, it's appreciated!
from lein-cljsbuild.
Related Issues (20)
- Custom tagged literals cause build failure HOT 1
- Fails on Java 9? HOT 2
- :asset-path isn't documented HOT 1
- Circular dependencies : Warn user when a namespace requires itself HOT 2
- Adding 'monger' dependency breaks cljsbuild. HOT 2
- Possibility to add cli options to closure compiler. HOT 2
- reload-clojure causes compilation failure in portable projects HOT 4
- Could not write JavaScript nil HOT 1
- Exception (...)/objectutil.js is not a relative path HOT 7
- Consider exposing :watch-fn compiler option? HOT 1
- :prep-tasks dont work when running `lein cljsbuild ...`
- Miraculously disappearing dependencies when using lein cljsbuild auto. HOT 2
- warning-handlers: clojure.lang.PersistentList cannot be cast to clojure.lang.IFn HOT 2
- Duplicate input error HOT 1
- Recompiling compiled app with different optimization type
- Simple example project does not compile HOT 1
- `lein trampoline cljsbuild repl-rhino` fails with jdk 11 HOT 1
- cljsbuild-example-simple didnt run with lein 2.9.5 and Java version > 11 & 15 HOT 1
- cljsbuild cannot find reagent HOT 1
- Fails with ClojureScript newer than 1.10.764 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lein-cljsbuild.