Rust analyzer crushed when using fuels 0.35.1

Hi there
When I’m install fuels in new project my Rust analyzer crushed with this error

Error: Custom { kind: InvalidData, error: Error("unknown variant `ApiVersionCheck`, expected `ListMacros` or `ExpandMacro`", line: 1, column: 18) }

[ERROR flycheck] Flycheck failed to run the following command: "cargo" "check" "--workspace" "--message-format=json-diagnostic-rendered-ansi" "--manifest-path" "/Users/alexey/projects/fuel/swaylend-liquidator/Cargo.toml" "--all-targets"

[ERROR rust_analyzer::lsp_utils] cargo check failed:

Cargo watcher failed, the command produced no valid metadata (exit code: ExitStatus(unix_wait_status(25856))):

error: package `fuels-types v0.35.1` cannot be built because it requires rustc 1.67.0 or newer, while the currently active rustc version is 1.66.0

Either upgrade to rustc 1.67.0 or newer, or use

cargo update -p fuels-types@0.35.1 --precise ver

where `ver` is the latest version of `fuels-types` supporting rustc 1.66.0

4 Likes

Run rustup update, looks like you need to be on rust 1.67.0

6 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.