Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW I was unable to install it on Mac using cargo which compiles it from Rust. Here is the error I got.

    error[E0658]: or-patterns syntax is experimental
       --> /Users/xxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/jless-0.7.1/src/app.rs:101:26
        |
    101 |                 KeyEvent(Key::Ctrl('c') | Key::Char('q')) => break,
        |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information

    error[E0658]: or-patterns syntax is experimental
      --> /Users/xxxx/.cargo/registry/src/github.com-1ecc6299db9ec823/jless-0.7.1/src/jsonparser.rs:67:24
       |
    67 |         while let Some(JsonToken::Whitespace | JsonToken::Newline) = self.peek_token_or_eof() {
       |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information

    error: aborting due to 2 previous errors

    For more information about this error, try `rustc --explain E0658`.
    error: failed to compile `jless v0.7.1`, intermediate artifacts can be found at `/var/folders/7n/jbbdpxnj373d5trx65_bryhr0000gr/T/cargo-installUE4dQ5`

    Caused by:
      could not compile `jless`


Seems like your Rust version is a bit out of date. Nested or-patterns have been stabilised in Rust 1.53.0, which came out back in June.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: