-
Notifications
You must be signed in to change notification settings - Fork 2
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
version 1.0.0 fails to build #6
Comments
Thanks for the report. This looks like a problem with the Otherwise I'll get to it eventually! |
is there a dependency history ? |
changed linemux version = "0.1.3" to "0.2.3" for Cargo.toml and Cargo.toml.orig and now it builds, error now on termion-rs, my guess is the dependency issue now ripples onwards beyond linemux error[E0432]: unresolved import error[E0432]: unresolved import error[E0599]: no method named error[E0599]: no method named error: aborting due to 2 previous errors Some errors have detailed explanations: E0432, E0599. Some errors have detailed explanations: E0432, E0599. To learn more, run the command again with --verbose. Caused by: |
I'd look at recent linemux releases and step back through them. IIRC we had a similar issue not long ago, but I'm not certain if it was fixed in linemux. I may have opened an issue there for it. Sorry to be vague. |
2 more corrections, sorry, i don't have experience modifying code using rust or git rewrite in both src/bin/logtail-crossterm.rs and src/bin/logtail-termion.rs
|
logtail compiles and installs again after changing dependendy for linemux and adding dependencies for tokio-stream-ext and correcting the use of tokio::stream to tokio_stream Cargo.toml now looks like [dependencies.tokio-stream-ext] rewrite in both src/bin/logtail-crossterm.rs and src/bin/logtail-termion.rs use tokio::stream::StreamExt; |
Damn. I've not tested. This i fail to understand / resolve. I don't have time to dig into the code here at this point. Neither do i think i can make meaningful observations due to a lack of experience and understanding. logtail file1 file2Loading 2 files... |
Looks like useful progress thanks. You can enable features like the |
Tried a bit more, no progress. The code for blocking.rs has two main fuctions/macros(?) one is cfg_rt! and the other is cfg_not_rt! the latter is where the message 'requires the rt Tokio feature flag' originates from. I don't see where blocking.rs is called from in the first place to arrive at this condition. My assumption is i may have skipped a few releases in the Cargo.toml modifications and this breaks stuff. |
Platform: Ubuntu 20.04
Requirements check:
sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.8ubuntu1.1).
error[E0599]: no function or associated item named
new_immediate
found for trait objectdyn Watcher
in the current scope--> /home/joris/.cargo/registry/src/github.com-1ecc6299db9ec823/linemux-0.1.3/src/events.rs:61:64
|
61 | let inner: notify::RecommendedWatcher = NotifyWatcher::new_immediate(move |res| {
| ^^^^^^^^^^^^^ function or associated item not found in
dyn Watcher
error[E0308]: mismatched types
--> /home/joris/.cargo/registry/src/github.com-1ecc6299db9ec823/linemux-0.1.3/src/events.rs:90:20
|
88 | fn watch(watcher: &mut notify::RecommendedWatcher, path: impl AsRef) -> io::Result<()> {
| ---------------- this type parameter
89 | watcher
90 | .watch(path, notify::RecursiveMode::NonRecursive)
| ^^^^ expected
&Path
, found type parameterimpl AsRef<Path>
|
= note: expected reference
&Path
found type parameter
impl AsRef<Path>
error[E0308]: mismatched types
--> /home/joris/.cargo/registry/src/github.com-1ecc6299db9ec823/linemux-0.1.3/src/events.rs:95:25
|
94 | fn unwatch(watcher: &mut notify::RecommendedWatcher, path: impl AsRef) -> io::Result<()> {
| ---------------- this type parameter
95 | watcher.unwatch(path).map_err(notify_to_io_error)
| ^^^^ expected
&Path
, found type parameterimpl AsRef<Path>
|
= note: expected reference
&Path
found type parameter
impl AsRef<Path>
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0308, E0599.
For more information about an error, try
rustc --explain E0308
.error: could not compile
linemux
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile
logtail v1.0.0
, intermediate artifacts can be found at/tmp/cargo-installCv5XNS
Caused by:
build failed
The text was updated successfully, but these errors were encountered: