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

During cargo install --path rust, xi-core-lib fails to compile, "mismatched types" #1242

Open
2 tasks done
ndrewtl opened this issue Nov 27, 2019 · 0 comments
Open
2 tasks done

Comments

@ndrewtl
Copy link

ndrewtl commented Nov 27, 2019

Xi-Editor Issue Template

  • I have searched existing issues and could not find my issue.
  • I have studied the documentation.

Details

OS: Fedora 31

$ rustc --version
rustc 1.39.0 (4560ea788 2019-11-04)

rustc installed via rustup
Not using frontend

user@host:~/xi-editor % cargo install --path rust
  Installing xi-core v0.3.0 (/home/user/xi-editor/rust)
    Updating git repository `https://github.com/kornelski/rust-onig`
    Updating crates.io index
warning: Patch `onig v5.0.0 (https://github.com/kornelski/rust-onig?branch=default-bindgen#c9f5b5be)` was not used in the crate graph.
Patch `onig_sys v69.2.0 (https://github.com/kornelski/rust-onig?branch=default-bindgen#c9f5b5be)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
   Compiling xi-core-lib v0.3.0 (/home/user/xi-editor/rust/core-lib)
error[E0308]: mismatched types
   --> core-lib/src/watcher.rs:101:29
    |
101 |         let inner = watcher(tx_event, Duration::from_millis(100)).expect("watcher should spawn");
    |                             ^^^^^^^^ expected struct `crossbeam_channel::channel::Sender`, found a different struct `crossbeam_channel::channel::Sender`
    |
    = note: expected type `crossbeam_channel::channel::Sender<std::result::Result<notify::Event, notify::Error>>`
               found type `crossbeam_channel::channel::Sender<_>`
note: Perhaps two different versions of crate `crossbeam_channel` are being used?
   --> core-lib/src/watcher.rs:101:29
    |
101 |         let inner = watcher(tx_event, Duration::from_millis(100)).expect("watcher should spawn");
    |                             ^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: failed to compile `xi-core v0.3.0 (/home/user/xi-editor/rust)`, intermediate artifacts can be found at `/home/user/xi-editor/rust/target`

Caused by:
  could not compile `xi-core-lib`.

To learn more, run the command again with --verbose.

Expected vs Actual

Expected to build without failures, and install to $CARGO_PATH

Actual: build failure

Cogitri added a commit to Cogitri/xi-editor that referenced this issue Nov 30, 2019
notify-0.5 only supports crossbeam-channel 0.3 as of now.

fixes xi-editor#1240 xi-editor#1242
Cogitri added a commit to Cogitri/xi-editor that referenced this issue Dec 1, 2019
notify-0.5 only supports crossbeam-channel 0.3 as of now.

fixes xi-editor#1240 xi-editor#1242
Cogitri added a commit to Cogitri/xi-editor that referenced this issue Dec 1, 2019
notify-0.5 only supports crossbeam-channel 0.3 as of now.

fixes xi-editor#1240 xi-editor#1242
Cogitri added a commit that referenced this issue Dec 1, 2019
notify-0.5 only supports crossbeam-channel 0.3 as of now.

fixes #1240 #1242
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

1 participant