PaulJuliusMartinez / jless

jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
https://jless.io
MIT License
4.79k stars 92 forks source link

Error when building on Windows #156

Closed hellishvictor closed 5 months ago

hellishvictor commented 6 months ago

Hi, I've tried to compile jless on Windows but some point it show this:

`error[E0433]: failed to resolve: maybe a missing crate `sys`?
  --> C:\Rust\jless-0.9.0\target\registry\src\index.
crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:24:9
   |
24 | pub use sys::size::terminal_size;
   |         ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0433]: failed to resolve: maybe a missing crate `sys`?
  --> C:\Rust\jless-0.9.0\target\registry\src\index.
crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:27:9
   |
27 | pub use sys::tty::{is_tty, get_tty};
   |         ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0433]: failed to resolve: maybe a missing crate `sys`?
 --> C:\Rust\jless-0.9.0\target\registry\src\index.c
rates.io-6f17d22bba15001f\termion-1.5.6\src\async.rs:5:5
  |
5 | use sys::tty::get_tty;
  |     ^^^ maybe a missing crate `sys`?
  |
  = help: consider adding `extern crate sys` to use the `sys` crate

error[E0433]: failed to resolve: maybe a missing crate `sys`?
  --> C:\Rust\jless-0.9.0\target\registry\src\index.
crates.io-6f17d22bba15001f\termion-1.5.6\src\raw.rs:28:5
   |
28 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr};
   |     ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0432]: unresolved import `sys`
  --> C:\Rust\jless-0.9.0\target\registry\src\index.
crates.io-6f17d22bba15001f\termion-1.5.6\src\raw.rs:29:5
   |
29 | use sys::Termios;
   |     ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `termion` (lib) due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
`

I'm new on Rust so any help is welcome. Cheers

bew commented 6 months ago

The README mentions that Windows support was planned, so currently it's not supposed to work as you noticed.

hellishvictor commented 6 months ago

Yeah, almost at the end it showed that error related to "termion". Definitely it would be awesome to have this tool on Windows.

PaulJuliusMartinez commented 5 months ago

As noted above, jless does not currently support Windows, and there is a separate issue for that: https://github.com/PaulJuliusMartinez/jless/issues/3

Closing as a duplicate.