phodal / quake

Quake is a knowledge management meta-framework for geeks. Use meta-data + Transflow to CRUD data, Git + markdown to management content, Web Component for frontend-custom. Quake 是面向极客的知识管理元框架。
MIT License
441 stars 39 forks source link

Compiler error #59

Closed StormPhoenix closed 1 year ago

StormPhoenix commented 1 year ago

Describe the bug

294 fn new(event_handler: F, config: config::Config) -> Result ^^^ help: provide the argument
17 ~ let mut watcher = RecommendedWatcher::new(move res {

18 + futures::executor::block_on(async { 19 + tx.send(res).await.unwrap(); 20 + }) 21 ~ }, / notify::Config /)?; |

error[E0599]: no associated item named OngoingEvents found for struct notify::Config in the current scope --> /Users/jiaxianwang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quake-0.5.0/src/helper/entry_watcher.rs:23:47 | 23 | ...notify::Config::OngoingEvents(Some(Duration::from_secs(2)))); | ^^^^^^^^^^^^^ associated item not found in Config

Some errors have detailed explanations: E0061, E0432, E0599. For more information about an error, try rustc --explain E0061. error: could not compile quake (bin "quake") due to 3 previous errors error: failed to compile quake v0.5.0, intermediate artifacts can be found at /var/folders/wh/xcyljq_n6913b1554sp8vbsw0000gn/T/cargo-installHXhzaA

Environment

phodal commented 1 year ago

It seems to be a dependency issue. I'll try to reproduce it local.

phodal commented 1 year ago

Can you try it again @StormPhoenix ?

StormPhoenix commented 1 year ago

Thanks, it's worked.