polarmutex/beancount-language-server

v1.3.5 Compilation failure by cargo install

Closed this issue · 2 comments

Compilation failure when cargo install on Mac M1 on Sequoia 15.0

   Compiling beancount-language-server v1.3.5
error[E0308]: mismatched types
   --> /Users/tolau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/beancount-language-server-1.3.5/src/server.rs:288:74
    |
288 |         if let Some((_method, start)) = self.req_queue.incoming.complete(response.id.clone()) {
    |                                                                 -------- ^^^^^^^^^^^^^^^^^^^ expected `&RequestId`, found `RequestId`
    |                                                                 |
    |                                                                 arguments to this method are incorrect
    |
note: method defined here
   --> /Users/tolau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lsp-server-0.7.7/src/req_queue.rs:49:12
    |
49  |     pub fn complete(&mut self, id: &RequestId) -> Option<I> {
    |            ^^^^^^^^
help: consider borrowing here
    |
288 |         if let Some((_method, start)) = self.req_queue.incoming.complete(&response.id.clone()) {
    |                                                                          +

For more information about this error, try `rustc --explain E0308`.
error: could not compile `beancount-language-server` (lib) due to 1 previous error
error: failed to compile `beancount-language-server v1.3.5`, intermediate artifacts can be found at `/var/folders/f5/25byhmn91d7f50x159skvx5c0000gn/T/cargo-installxDT28B`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Cargo version

❯ cargo --version
cargo 1.80.1

Same here. Please fix it, @polarmutex

It should be fixed on the latest release, I have been swamped lately, sorry