rust-analyzer Questions
6
Solved
I join these two questions in one, as they maybe are related. A few days ago, I started having this error in the [#actix_rt::main] line, before the main function:
proc macro `main` not expanded: ca...
Monoatomic asked 4/5, 2023 at 9:2
11
Solved
I'm starting to learn the Rust language and I have an issue with rust-analyzer vscode extension.
It doesn't provide code completion as shown in the link: https://rust-analyzer.github.io/manual.htm...
Panchito asked 29/4, 2022 at 19:37
3
Solved
I want to run a web server with Rust and Actix-Web. After following these steps of their documentation everything works as expected: the server runs on port 8080.
The problem I have is that VSCode ...
Dyslexia asked 23/6, 2022 at 14:55
1
Solved
I have installed rust-analyzer following the instructions at https://rust-analyzer.github.io/manual.html#installation :
✔ ~> rustup component add rust-src
info: component 'rust-src' is up to dat...
Equivoque asked 9/11, 2023 at 12:36
1
Solved
I am running into an error with using VSCode's debugger for my Rust projects. It worked before the OS update, but now I am running into an issue. My Mac is a 2019 Macbook Pro with a x86 chip.
To il...
Mart asked 2/10, 2023 at 19:26
2
Solved
I have a repository that has a Cargo.toml in sub_dir/Cargo.toml
(Cargo.toml is not in repository root directory)
I'm using the repository from some of my computers. So I need to set up rust-analyz...
Schism asked 7/5, 2022 at 11:54
1
Solved
I am currently making an embedded system.
For that I have 2 different panic handlers based on whether it is run normally or as a test.
#[cfg(test)]
for the test panic handler and
#[cfg(not(test))]
...
Paranoia asked 2/2, 2023 at 16:47
1
I'm going through the rustlings exercises, and noticed that rust-analyzer was on but was not generating any inline error messages or type hints. Basically not doing anything at all.
I thought this ...
Cockeyed asked 29/1, 2023 at 1:43
2
In my main.rs I get code completion just fine. But I don't get it in my module files.
My folder structure looks like this:
src/
|___game_components/
| |___card.rs
|___game_components.rs
|___main.rs...
Heterography asked 10/7, 2022 at 11:2
1
In IntelliJ IDEA when I press Ctrl+Shift+Alt+N, I can search and go to any symbol from all the code that is accessible within the project. For example, in a Java Maven project, Go To Symbol would s...
Nidanidaros asked 29/9, 2021 at 22:7
2
Solved
For VS Code, I use rust-analyzer to handle syntax highlighting and flychecking.
How do I remove the inlay type and parameter annotations in grey below?
Vivisect asked 10/11, 2021 at 8:33
2
Solved
I have rust-analyzer extension in VSCode.
In settings I only changed Rust-analyzer › Check On Save: Command from check to clippy (this shouldn't matter).
Problem is I don't see errors when I type, ...
Pyxidium asked 19/1, 2021 at 22:31
3
Solved
I'm using rust-analyzer version 0.2.408 on Visual Studio Code.
I'm writing a command line application that involves centering text in the terminal. This is the function I wrote to do this:
use cons...
Kirkwood asked 9/12, 2020 at 19:25
1
Solved
I have code something like this:
#[derive(Debug)]
struct Rectangle {
width: u32,
height: u32,
}
... and I'm want to dive into source of Debug.
In IntelliJ IDEA I'm put cursor on Debug and pressi...
Maite asked 20/10, 2021 at 13:56
2
Solved
I have seen youtubers and such working on Rust in VSC with rust-analyzer plug-in where they get the optional type annotations displayed, even if it isn't necessarily written in the code. It's like ...
Between asked 12/2, 2021 at 15:19
1
© 2022 - 2025 — McMap. All rights reserved.