poljar / weechat-matrix-rs

Rust rewrite of the python weechat-matrix script.
Other
361 stars 25 forks source link

error[E0609]: no field `printf_datetime_tags` on type `&t_weechat_plugin` #90

Open JRGonz opened 1 month ago

JRGonz commented 1 month ago

Fail on build:

cargo/rustc 1.82.0

Compiling weechat v0.4.0 (.../rust-weechat/crates/weechat) error[E0609]: no field printf_datetime_tags on type &t_weechat_plugin --> crates/weechat/src/weechat.rs:278:50 278 let printf_datetime_tags = weechat.get().printf_datetime_tags.unwrap(); ^^^^^^^^^^^^^^^^^^^^ unknown field
= note: available fields are: `filename`, `handle`, `name`, `description`, `author` ... and 95 others
error[E0609]: no field printf_datetime_tags on type &t_weechat_plugin --> crates/weechat/src/buffer/mod.rs:759:46 759 let printf_date_tags = weechat.get().printf_datetime_tags.unwrap(); ^^^^^^^^^^^^^^^^^^^^ unknown field
= note: available fields are: `filename`, `handle`, `name`, `description`, `author` ... and 95 others
error[E0609]: no field printf_datetime_tags on type &t_weechat_plugin --> crates/weechat/src/buffer/mod.rs:781:46 781 let printf_date_tags = weechat.get().printf_datetime_tags.unwrap(); ^^^^^^^^^^^^^^^^^^^^ unknown field
= note: available fields are: `filename`, `handle`, `name`, `description`, `author` ... and 95 others
JRGonz commented 1 month ago

So. I found this is a problem if you have weechat-dev installed in ubuntu. Removing the package seems to have fixed it.