Code Monkey home page Code Monkey logo

Comments (8)

emezeske avatar emezeske commented on September 26, 2024

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.

emezeske avatar emezeske commented on September 26, 2024

This should be added to the documentation somewhere, perhaps the wiki.

from lein-cljsbuild.

nchurch avatar nchurch commented on September 26, 2024

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:

technomancy/leiningen@ab6293d

from lein-cljsbuild.

nchurch avatar nchurch commented on September 26, 2024

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.

nchurch avatar nchurch commented on September 26, 2024

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.

emezeske avatar emezeske commented on September 26, 2024

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.

nchurch avatar nchurch commented on September 26, 2024

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.

emezeske avatar emezeske commented on September 26, 2024

Thanks, it's appreciated!

from lein-cljsbuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.