Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babashka support #214

Open
mizlan opened this issue Jun 6, 2021 · 1 comment
Open

babashka support #214

mizlan opened this issue Jun 6, 2021 · 1 comment

Comments

@mizlan
Copy link

mizlan commented Jun 6, 2021

Would it be possible to use this with Babashka?

@jeroenvandijk
Copy link

jeroenvandijk commented Mar 21, 2023

It would require Babashka support for JLine (see this discussion or this one) or something else then Jline would have to be used by rebel-readline.

More details:

Given the following script rebel_readline.clj:

(require '[babashka.deps :refer [add-deps]])

(add-deps '{:deps
            {io.github.bhauman/rebel-readline {:sha "146c5ccd261f02adff725be5387f9a7258344342"
                                               :deps/root "rebel-readline"}}})


(require '[rebel-readline.main])

(rebel-readline.main/main)

When I run bb rebel_readline.clj
Then I see the following error:

1: (ns rebel-readline.jline-api.attributed-string
2:   (:refer-clojure :exclude [partition-all])
3:   (:import
     ^--- Unable to resolve classname: org.jline.utils.AttributedStringBuilder
4:    [org.jline.utils AttributedStringBuilder AttributedString AttributedStyle]))
5:
6: (defn astr
7:   [& args]
8:   (AttributedString.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants