Closed TheAwesome98-Real closed 3 months ago
Describe the bug when using rust-analyzer, if i define an environment variable in shell.nix, it can't be used in rust with env!("VAR_NAME").
env!("VAR_NAME")
To Reproduce Steps to reproduce the behavior:
nix-shell
echo $VAR_NAME
src/main.rs
Expected behavior there should be no error because the variable is defined
Screenshots
Environment:
oops, restarting rust-analyzer fixed it, sorry!
Describe the bug when using rust-analyzer, if i define an environment variable in shell.nix, it can't be used in rust with
env!("VAR_NAME")
.To Reproduce Steps to reproduce the behavior:
nix-shell
echo $VAR_NAME
- it works!src/main.rs
env!("VAR_NAME")
- and saveExpected behavior there should be no error because the variable is defined
Screenshots
Environment: