You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No Rust installation detected (rustup-init.exe, VisualRust 0.1.2, VS 2015) #263
This is similar to previous issues and seems to be fixed in the lastest (but not released as of 3 Jan 2017) code, but considering it took me over 2 hours and some digging through old (VisualRust 0.1.2) code to work out a straight answer I thought I might save someone time and post the solution here:
Basically you need to point VisualRust at your install (.cargo) directory using a registry key:
Run regedit.exe
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE
Create a 'Mozilla Foundation' key (assuming it doesn't exist) under the 'SOFTWARE' key
Create a 'Rust' key under the 'Mozilla Foundation' key (note: technically it only needs to start with 'rust', so you can use something like 'Rust Stable' if you like)
Create another key under the 'Rust' key; pretty sure the name doesn't matter, so your installed rustc.exe version is a good choice (e.g. '1.14.0'). Your full registry path should look something like: HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla Foundation\Rust\1.14.0
Create an 'InstallDir' String Value under that key with the value being the install path (e.g. C:\Users\User\.cargo\ )
First ran rustup-init.exe (today, https://www.rust-lang.org/en-US/install.html, Rust 1.14.0), installed using default values that appeared for me (stable-x86_64-pc_windows-msvc, modify PATH via registry key)
Same as @Xanewok here. Since I have to fix this on more than one machine, I translated @Byron-Miles solution to a console command (admin required). Works as long as you used the default rustup installation path:
Just tried same registry fix, repaired VisualRust installation, but still getting the same error. VS2015U3, Rust 1.15.1. Path is configured, rustc is working from command prompt just fine, so completely dunno what's wrong.
Activity
tyoc213 commentedon Jan 3, 2017
When will be published? This plugin suport rustup? (I mean if I change global version or per project/dir)??
jujis008 commentedon Jan 10, 2017
Works for me with above solution, thanks a lot. But how did the VR fixed the dependency problem? Any idea is welcome for such a greenhand like me.
holland01 commentedon Jan 29, 2017
@Byron-Miles
Were you running the 64-bit install when you tried this?
Xanewok commentedon Jan 31, 2017
@holland01
Not sure about @Byron-Miles, but I think I did. Running Windows 10 64 bit.
And I encountered the same problem as OP (registry key fix also helped - no error and VS properly compiles the project).
huettenhain commentedon Feb 20, 2017
Same as @Xanewok here. Since I have to fix this on more than one machine, I translated @Byron-Miles solution to a console command (admin required). Works as long as you used the default rustup installation path:
Pzixel commentedon Feb 22, 2017
Just tried same registry fix, repaired VisualRust installation, but still getting the same error. VS2015U3, Rust 1.15.1. Path is configured,
rustcis working from command prompt just fine, so completely dunno what's wrong.Ustimov commentedon Mar 9, 2017
@Pzixel, I think you made some kind of mistake or doesn't restart VS after registry edit. This works for me with Win10Pro, VS2015U3 and Rust 1.15.1.
Pzixel commentedon Mar 9, 2017
@Ustimov I always restart the whole PC after registry edit. That's quite easy to say
I have the same leg and it's okbut it's not an answer.OrkanCom commentedon Mar 23, 2017
For lazy persons like me;
Regedit_Rust_1.16.0_InstallDir.txt
Txt file contains this;
Tested on Windows 8.1 64bit, Visual Studio 2015 Update3, Visual Rest VS Extension 0.1.2
( No need to restart VS or OS )
dimant commentedon May 13, 2017
bump
keerthivasan-r commentedon Jul 20, 2017
Yeah, No restart required. Works fine! @huettenhain Thanks for the console command. Cheers
ShiqiAi commentedon Feb 27, 2018
also works for me on 1.24.0 today
whidbey commentedon Jul 29, 2019
works form e