Open saona-raimundo opened 1 year ago
I am also having issues running the example on MacOS. the terminal
one was the only one that worked.
editor-orbclient
failed with [2023-02-22T21:11:20Z ERROR editor_orbclient] failed to load "": No such file or directory (os error 2)
editor-libcosmic
failed because the wayland dependency failed to compile (looks to be linux only).editor-test
failed with
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `Cursor { line: 0, index: 1, affinity: Before }`,
right: `Cursor { line: 0, index: 1, affinity: After }`', examples/editor-test/src/main.rs:104:17
One additional comment on the example is that they don't follow regular cargo examples structure. Although examples are a top-level folder, the following fails:
cargo run --example terminal
it says there are no example named terminal
, because on the main Cargo.toml examples are included as members of the workspace, which works of course, but creates a a learning curve by not following the standard cargo structure for examples.
Just for reference, to run example you need:
cargo run --package terminal
Hi! First of all, thanks for the crate!
I was trying to run the examples but faced some issues and I was wondering Would accept PRs to improve them?
The issues I faced are the following. Some of them are from the "first-user perspective", I just want to help.
terminal
example usestermion
, which does not compile on Windows... So I could not run it.editor-orbclient
example compiles, but panic with[2022-11-23T10:09:18Z ERROR editor_orbclient] failed to load "": The system cannot find the path specified.
editor-libcosmic
example failed to build becausexdg::BaseDirectories
was not found.(I am on Windows running
rustc 1.64.0
) Some preliminary thoughts about these issues are the following.terminal
example usestermion
modulescolor
andcursor
. A more platform-friendly crate with these features may beconsole
. It also ranks higher in https://lib.rs/std so I thought the change would be an improvement.I have not checked the other examples in detail yet.