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

[Error] could not compile rastra. This function takes 7 arguments but 6 arguments were supplied #6

Open
Eptagone opened this issue Oct 28, 2024 · 1 comment

Comments

@Eptagone
Copy link

Hi, I'm trying to check this project but I'm getting the followging error while compiling with cargo build.

warning: unused import: `LE`
  --> src/main.rs:11:28
   |
11 | use bedrockrs::core::int::{LE, VAR};
   |                            ^^
   |
   = note: `#[warn(unused_imports)]` on by default

error[E0061]: this function takes 7 arguments but 6 arguments were supplied
  --> src/main.rs:48:24
   |
48 |     let mut listener = listener::Listener::new_raknet(
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
51 |         100,
   |         --- argument #3 of type `std::string::String` is missing
   |
note: associated function defined here
  --> /home/eptadot/.cargo/git/checkouts/bedrockrs-cdc582742ae1671f/b3baa1d/crates/proto/src/listener.rs:23:18
   |
23 |     pub async fn new_raknet(
   |                  ^^^^^^^^^^
help: provide the argument
   |
48 ~     let mut listener = listener::Listener::new_raknet(_config.display_name, _config.display_sub_name, /* std::string::String */, 0, 100, SocketAddr::V4(SocketAddrV4::new(
49 +             Ipv4Addr::from_str("127.0.0.1").unwrap(),
50 +             19132,
51 +         )), false)
   |

For more information about this error, try `rustc --explain E0061`.
warning: `rastra` (bin "rastra") generated 1 warning
error: could not compile `rastra` (bin "rastra") due to 1 previous error; 1 warning emitted
@theaddonn
Copy link
Member

Yep RAstra currently doesnt compile, I am trying to fix the mess I created with bedrockrs. It will also have a module called bedrockrs::server, which will lay the foundation for RAstra..

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

2 participants