30 Jul 2023 |
| gugamariz#0 changed their display name from GUGAMARIZ#7392 to gugamariz#0. | 02:33:50 |
| gugamariz#0 changed their profile picture. | 02:33:56 |
1 Aug 2023 |
| me is me changed their display name from me is me to OmarHany Kasban. | 08:43:45 |
| me is me changed their display name from OmarHany Kasban to me is me. | 08:44:26 |
3 Aug 2023 |
| me is me changed their display name from me is me to Matrix Bridge. | 11:16:15 |
| me is me changed their display name from Matrix Bridge to me is me. | 11:16:41 |
| Zwolf changed their profile picture. | 18:25:01 |
5 Aug 2023 |
| lilnerd11#0 changed their display name from lilnerd11 to lilnerd11#0. | 06:29:20 |
| liante#0 changed their display name from Liante to liante#0. | 10:35:13 |
9 Aug 2023 |
| slushie01 changed their display name from slushie to slushie01#0. | 02:42:52 |
| slushie01 changed their display name from slushie01#0 to slushie01. | 02:42:53 |
| molasseslover joined the room. | 20:03:53 |
11 Aug 2023 |
| kess joined the room. | 15:31:17 |
12 Aug 2023 |
| fury_101#0 changed their display name from Fury#4589 to fury_101#0. | 05:31:26 |
| fury_101#0 changed their profile picture. | 05:31:29 |
13 Aug 2023 |
| zenxarch#0 changed their display name from ZenXArch to zenxarch#0. | 03:12:58 |
| zenxarch#0 changed their profile picture. | 03:13:01 |
14 Aug 2023 |
| fyrstikkeske#0 changed their display name from Fyrstikkeske#4705 to fyrstikkeske#0. | 15:35:11 |
20 Aug 2023 |
| uku#0 changed their profile picture. | 17:37:51 |
21 Aug 2023 |
| uku#0 changed their profile picture. | 00:12:52 |
| gisforgravity#0 changed their display name from Gravity to gisforgravity#0. | 13:10:55 |
22 Aug 2023 |
slushie01 | I need some help with something: I'm trying to format the chat messages to look like regular minecraft instead of a json dump. however, when i try to pass a String to the ui::FormattedBuilder::new() function on line 427 (src/screen/chat.rs), i get this error: | 01:20:08 |
slushie01 | $ cargo run
Compiling leafish v0.1.0 (/home/ericr/code/Leafish)
warning: unused import: `Result`
--> src/screen/chat.rs:30:18
|
30 | use serde_json::{Result, Value};
| ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0277]: the trait bound `leafish_protocol::format::Component: From<std::string::String>` is not satisfied
--> src/screen/chat.rs:427:23
|
427 | .text(formatted_message)
| ---- ^^^^^^^^^^^^^^^^^ the trait `From<std::string::String>` is not implemented for `leafish_protocol::format::Component`
| |
| required by a bound introduced by this call
|
= note: required for `std::string::String` to implement `Into<leafish_protocol::format::Component>`
note: required by a bound in `FormattedBuilder::text`
--> src/ui/mod.rs:722:34
|
722 | pub fn $sname<T: Into<$sty>>(mut self, val: T) -> Self {
| ^^^^^^^^^^ required by this bound in `FormattedBuilder::text`
...
1080 | / element! {
1081 | | ref FormattedRef
1082 | | pub struct Formatted {
1083 | | pub width: f64,
... |
1106 | | simple text: format::Component,
| | ---- required by a bound in this associated function
... |
1111 | | }
1112 | | }
| |_- in this macro invocation
= note: this error originates in the macro `element` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
warning: `leafish` (bin "leafish") generated 1 warning
error: could not compile `leafish` (bin "leafish") due to previous error; 1 warning emitted | 01:21:19 |
slushie01 | * $ cargo run
Compiling leafish v0.1.0 (/home/username/code/Leafish)
warning: unused import: `Result`
--> src/screen/chat.rs:30:18
|
30 | use serde_json::{Result, Value};
| ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0277]: the trait bound `leafish_protocol::format::Component: From<std::string::String>` is not satisfied
--> src/screen/chat.rs:427:23
|
427 | .text(formatted_message)
| ---- ^^^^^^^^^^^^^^^^^ the trait `From<std::string::String>` is not implemented for `leafish_protocol::format::Component`
| |
| required by a bound introduced by this call
|
= note: required for `std::string::String` to implement `Into<leafish_protocol::format::Component>`
note: required by a bound in `FormattedBuilder::text`
--> src/ui/mod.rs:722:34
|
722 | pub fn $sname<T: Into<$sty>>(mut self, val: T) -> Self {
| ^^^^^^^^^^ required by this bound in `FormattedBuilder::text`
...
1080 | / element! {
1081 | | ref FormattedRef
1082 | | pub struct Formatted {
1083 | | pub width: f64,
... |
1106 | | simple text: format::Component,
| | ---- required by a bound in this associated function
... |
1111 | | }
1112 | | }
| |_- in this macro invocation
= note: this error originates in the macro `element` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
warning: `leafish` (bin "leafish") generated 1 warning
error: could not compile `leafish` (bin "leafish") due to previous error; 1 warning emitted | 01:21:34 |
slushie01 | my changes can be seen here: https://github.com/Lea-fish/Leafish/compare/main...slushie0:Leafish:main | 01:21:51 |
| rj00a#0 changed their display name from rj00a to rj00a#0. | 14:38:52 |
javaimpact | I will try taking a look tomorrow | 19:43:39 |
23 Aug 2023 |
slushie01 | appreciate it | 03:11:28 |
slushie01 | and sorry for my code im new to rust 💀 | 03:11:38 |
javaimpact | I think the problem is that .text() expects a component but you are giving it a string instead | 03:44:13 |