-
Notifications
You must be signed in to change notification settings - Fork 938
windows terminal + cmd + nonadmin user fails #3098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you say more about how you're opening I tried various things in the Windows 11 Sandbox and haven't been able to trigger the same issue. If there's no This is what I get when I tried (though the length means there's a bit of scrolling involved in real life): output
|
I'm opening via double clicking in a third party file explorer program called Files. I double checked, and there are no environment variables with paths leading to a cargo related directory. |
Hm, the only other thing I can think of at the moment is to try opening powershell first and then running it from within that (or from within cmd.exe). I'm not sure if that will help though. |
That did the trick! I opened the installer in an admin powershell window and the installer started working normally. Thanks for your help. For some reason it didn't even occur to me that it could be an admin privs thing |
@Djtpj admin privileges shouldn't be needed. Could you try uninstalling as admin, then trying the install again but just from a non admin CMD.exe window? |
So I tried from a non-admin CMD Windows Terminal window, and it was still spitting out the same stuff as I mentioned when I opened this issue. I tried in a powershell window without admin privileges, and it worked just fine. I also just tried using a non-admin command prompt window instead of Windows Terminal, and it worked from the terminal. It appears to be an issue with Windows Terminal? Or at least my Windows Terminal... What's weirder is that when I tested powershell without admin privs, I tested in Windows Terminal, and it worked just fine. I've never had any issues like this with Windows Terminal before, so I'm a little confused... |
So clearly some incompatibility. Its not clear whether thats coming from Windows Terminal, or rustup. Can you uninstall
And also have procmon tracing all activity from processes called rustup-init.exe That should give us enough telemetry to get some idea whats going on. You might also open a ticket with Windows Terminal and see if they have any ideas |
I'm not positive that this is useful information, however, when I went to open the installer to follow your instructions, I forgot that I had recently set command prompt back to my default. So I opened a command prompt window through windows terminal. This installation was completed successfully. I tested again with windows terminal without changing anything but my default terminal, and the install displayed the same text as when I opened this issue. The I set those variables in my home (and verified that they were recognized). No change in Terminal, and Command Prompt worked fine as per usual. I'm not familiar with 'procmon'? I found a dedicated download for it and installed it however I'm not sure how to make productive use of it. |
From a discussion elsewhere it seems there's a problem with windows terminal when more than a screen's worth of text is printed immediately on startup. I don't know why. One workaround might be to print a shorter "welcome" message before printing the full message. For example:
|
I tried "C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.16.10262.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe" Documents\src\rustup.rs\target\debug\rustup-init.exe but a new terminal pops up with the expected text and the prompt for 1/2/3, and I'm able to cancel just fine |
This is a bug in Windows Terminal, tracked on their repository microsoft/terminal#14512. I wrote repo instructions here. It's a (race?) problem on startup, so it's intermittent and can be workaround using some form of short pause before printing more than a screenful of output. |
had this issue, just run as admin. |
Dup of #3043 we think |
no |
Problem
The
rustup-init.exe
file is not doing anything on install. It simply outputs the following text:This outputs the same thing every time I run it, and as far as I can tell changes nothing on the disk.
CARGO_HOME
does not change, or even exist.Steps
rustup-init.exe
file.Possible Solution(s)
It is possible that in the past I have installed/attempted to install Rust, and there may be a broken installation, however I'm not sure if that's related. Again, there is no
C:\Users\<username>\.cargo
folder on theC:\
drive.Notes
I'm using Windows 11.
And obviously, anywhere I use
<username>
, I'm substituting it for my actual Windows user name.Rustup version
N/A
Installed toolchains
N/A
The text was updated successfully, but these errors were encountered: