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

Is this project dead? #123

Closed
blanham opened this issue Aug 26, 2017 · 16 comments
Closed

Is this project dead? #123

blanham opened this issue Aug 26, 2017 · 16 comments
Labels

Comments

@blanham
Copy link

blanham commented Aug 26, 2017

No description provided.

@freddie-freeloader
Copy link

It seems @gwenn is still doing some work on their fork. Will these changes be merged? 🙂

@Marwes
Copy link
Contributor

Marwes commented Dec 9, 2017

@gwenn Seems like you have done a lot of additions to this library. Are these published to crates.io? If not is there any chance they could be published (either if @kkawakam would give crates.io access or under a different name).

@gwenn
Copy link
Collaborator

gwenn commented Dec 10, 2017

@Marwes kkawakam added me as a collaborator. So I should be able to integrate any PR. But it means I will be my own reviewer and I don't feel able to do it, sorry.

@gwenn
Copy link
Collaborator

gwenn commented Apr 20, 2018

https://www.reddit.com/r/rust/comments/8dez26/dealing_with_terminal_editing_à_la_readline/

Sure, but rustyline is abandonned, with lots of pending PRs. Plus, it seems it doesn't work on BSD.

@brendanzab
Copy link

We were just talking about the status of Rustyline on the codespan gitter channel. @Marwes and I have been using rustyline on Gluon and Pikelet respectively, and have been very happy! I'd like to see some dependencies updated though, like in #119.

@gwenn Do you have publishing rights to the crate on crates.io? Just wondering if we should be forking... has anybody fired off an email to @kkawakam yet to see if everything's alright with them?

@gwenn
Copy link
Collaborator

gwenn commented Jun 4, 2018

@brendanzab No, I guess I don't have rights to publish on crates.io but @kkawakam said:

I can handle pushing out new releases to crates.io

I guess all dependencies have already been updated in my branch.
I am working on tests/bug fixes/syntax highlighting but due to breaking changes, I would like to have something polish before consuming version 2.0.
I can try to make your projects build with my branch and if all works fine, merge an 2.0.0-alpha0 ?
Or try to merge non breaking changes ?

@Marwes
Copy link
Contributor

Marwes commented Jun 4, 2018

I'd be fine with breaking changes, (as long as no features that I use are missing). There aren't that many places where I call into the crate so it shouldn't be that hard to change.

@gwenn
Copy link
Collaborator

gwenn commented Jun 4, 2018

For Pikelet,

diff --git a/Cargo.toml b/Cargo.toml
index 68575dc..eb18283 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,7 +32,7 @@ pretty = { version = "0.4.0", features = ["termcolor"] }
 unicode-xid = "0.1.0"

 # cli dependencies
-rustyline = { version = "1.0.0", optional = true }
+rustyline = { git = "https://github.com/gwenn/rustyline", version = "1.0.0", optional = true }
 structopt = { version = "0.2.2", optional = true }
 term_size = { version = "0.3.0", optional = true }

diff --git a/src/cli/repl.rs b/src/cli/repl.rs
index ebeb2c6..fea1b72 100644
--- a/src/cli/repl.rs
+++ b/src/cli/repl.rs
@@ -101,7 +101,7 @@ pub fn run(color: ColorChoice, opts: Opts) -> Result<(), Error> {
         match rl.readline(&opts.prompt) {
             Ok(line) => {
                 if !opts.no_history {
-                    rl.add_history_entry(&line);
+                    rl.add_history_entry(line.as_ref());
                 }

                 let filename = FileName::virtual_("repl");

Impacted by #77

@gwenn
Copy link
Collaborator

gwenn commented Jun 4, 2018

For Gluon,
the Editor is not Sendable anymore...
I will keep you posted when I have a fix.

@brendanzab
Copy link

Yup, I'm perfectly fine with breaking changes!

Re. crates.io - it is a little worrying to only have one person with access. 'bus factor' and all - I've been trying to add more people as co-owners to my crates just in case something ever happens to me!

@gwenn
Copy link
Collaborator

gwenn commented Jun 5, 2018

For gluon,

diff --git a/repl/Cargo.toml b/repl/Cargo.toml
index a99a3024..5332f986 100644
--- a/repl/Cargo.toml
+++ b/repl/Cargo.toml
@@ -32,7 +32,7 @@ structopt = "0.2"
 log = "0.4"
 env_logger = { version = "0.5", optional = true }
 lazy_static = "0.2.0"
-rustyline = "1.0.0"
+rustyline = { git = "https://github.com/gwenn/rustyline", version = "2.0.0-alpha" }
 walkdir = "2"
 codespan = "0.1.1"
 codespan-reporting = "0.1.1"
diff --git a/repl/src/repl.rs b/repl/src/repl.rs
index d584f259..b4809ef0 100644
--- a/repl/src/repl.rs
+++ b/repl/src/repl.rs
@@ -244,7 +244,7 @@ fn readline(editor: &Editor, prompt: &str) -> IO<Result<String, ReadlineError>>
         Err(err) => return IO::Exception(format!("{}", err)),
     };
     if !input.trim().is_empty() {
-        editor.add_history_entry(&input);
+        editor.add_history_entry(input.as_ref());
     }

     IO::Value(Ok(input))

Compiled but not tested

@gwenn
Copy link
Collaborator

gwenn commented Jun 9, 2018

@vinc
Copy link

vinc commented Jul 15, 2018

Hi, I tested the latest 2.0.0-alpha on my chess engine and it works well on GNU/Linux (x86_64-unknown-linux-gnu), Android (armv7-linux-androideabi), and Windows (x86_64-pc-windows-gnu).

The changes required were the same: vinc/littlewing@dd42d9a

@brendanzab
Copy link

Yup, same here for Pikelet. Can we get this published to crates.io?

@brendanzab brendanzab mentioned this issue Jul 18, 2018
@gwenn gwenn added the question label Aug 11, 2018
brendanzab added a commit to brendanzab/pikelet that referenced this issue Aug 21, 2018
Rustyline seems dormant (kkawakam/rustyline#123), so this switches us over to linefeed. This cuts down on the very old dependencies that rustyline was pulling in, and will provide us with async support in the future.
brendanzab added a commit to yeslogic/fathom that referenced this issue Aug 23, 2018
Rustyline seems dormant (kkawakam/rustyline#123), so this switches us over to linefeed. This cuts down on the very old dependencies that rustyline was pulling in, and will provide us with async support in the future.
@gwenn
Copy link
Collaborator

gwenn commented Aug 26, 2018

See #89 (comment)

@gwenn
Copy link
Collaborator

gwenn commented Aug 26, 2018

2.0 released

@gwenn gwenn closed this as completed Aug 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants