-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Docs: Microsoft Visual C++ 2015 Redistributable is required on Windows #11503
Comments
Currently Windows builds uses |
Certainly, those additional options would resolve the external VCRUNTIME###.dll dependency issue. I do not have a preference for which option (update docs, use mingw, statically link, ...) the maintainers of |
@BurntSushi what's your experience with statically linking the CRT on windows? Any drawbacks that you've become aware after shipping the change in ripgrep? |
Not that I'm aware of! It's been without incident to the point that I totally forgot that this change even happened. :-) |
Also, ripgrep's msvc zip archive size went from ~1.6MB in ripgrep 13 to ~1.9MB in ripgrep 14. So at least in compressed form, the size difference seems tolerable. |
Would someone be interested in contributing the change to Ruff? It requires porting the configuration from ripgrep to ruff and doing a quick analysis of the file size change between the two versions (release mode). |
Can I take this one? |
@T-256 definitely okay with me. |
Go for it! |
OS: Windows 10
ruff: version 0.4.4 (installed via
pipx
)Issue
ruff.exe
silently fails to run from the terminal if Microsoft Visual C++ 2015 Redistributable is not installed.Running
> ruff --version
does not show the version in the terminal nor is an error shown. Complete silence.
Double-clicking the executable, located at
..\pipx\venvs\ruff\Scripts\ruff.exe
, pops-up the following windowFix
Install Microsoft Visual C++ 2015 Redistributable, then
Suggestion
Perhaps adding something to the docs (https://docs.astral.sh/ruff/installation/) for Windows users that Microsoft Visual C++ 2015 Redistributable must be installed. Either provide the download link (https://www.microsoft.com/en-us/download/details.aspx?id=52685) and/or specify the command to run to install it
winget install --exact --id Microsoft.VCRedist.2015+.x64
The text was updated successfully, but these errors were encountered: