Skip to content

[Tooling] : Code completion with macros doesn't seem to work with current rust-analyzer of vscode #654

Answered by juhaku
bebenlebricolo asked this question in Q&A
Discussion options

You must be logged in to vote

So first question : what's your setup and is code completion working inside macros instructions ?

Make sure you are using rust_analyzer and for debuggin you might want to use codellb (not needed unless you plan to run apps through the debugger). Both of those can be found from extensions for VSCode.

Then you might want to check that rust_analyzer has sensible settings, ones that I am using: (This config is in lua, but the settings are same for VSCode as well) https://rust-analyzer.github.io/manual.html#configuration

imports = {
    granularity = {
        group = "module",
    },
    prefix = "self",
},
cargo = {
    buildScripts = {
        enable = true,
    },
    features = {},
    n…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bebenlebricolo
Comment options

Answer selected by bebenlebricolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants