Closed
Description
First of all: Thanks for creating rust-analyzer
.
I'm using the VSCode extension version 0.2.449 and I'm running into the "rust-analyzer(unresolved-import)" issue which was already reported before.
I followed the advice to enable the following settings to no avail:
{
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
"rust-analyzer.procMacro.enable": true
}
Here's my full settings.json
file (I've restarted VSCode as prompted after changing the extension settings):
{
"editor.tabSize": 4,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"[rust]": {
"editor.defaultFormatter": "matklad.rust-analyzer"
},
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
"rust-analyzer.procMacro.enable": true
}
Here's the code snippets which causes the error to pop up:
// Cargo.toml dependency: ed25519-dalek = "1.0.1"
use ed25519_dalek::Keypair; // <--
Let me know if you need anything else and thanks in advance for looking into this 👍