Skip to content
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

Clippy does not output anything on Windows 10 #1453

Closed
CodeGradox opened this issue Jan 19, 2017 · 5 comments
Closed

Clippy does not output anything on Windows 10 #1453

CodeGradox opened this issue Jan 19, 2017 · 5 comments

Comments

@CodeGradox
Copy link

CodeGradox commented Jan 19, 2017

When I run the command cargo clippy it does not output anything when run it in Powershell and CMD. However, when I run it in cmd.exe it shows a few Windows popup errors. There is no error output in the console window. Powershell runs without any error popups.

Running cargo run works fine and racer also works in Visual Studio Code. Running cargo clippy in Ubuntu for Windows (bash) works perfectly fine.

I don't know if it's an error on my side, but I can try to reinstall rustup and rust and see if that fixes it. I had the GNU toolchain installed. I'll try the msvc toolchains instead.


Rustup: 1.0.0 (17b6d21 2016-12-15)

Rust: 1.16.0-nightly (c8af93f09 2017-01-18)

Cargo: 0.17.0-nightly (4d7b49b 2017-01-18)

cargo install clippy --force shows clippy v0.0.109

cargo-clippy.exe - System Error
---------------------------
The program can't start because arena-30031a708a0da468.dll is missing from your computer. Try reinstalling the program to fix this problem. 
cargo-clippy.exe - System Error
---------------------------
The program can't start because rustc_errors-7b2165cc2a3752f6.dll is missing from your computer. Try reinstalling the program to fix this problem.
cargo-clippy.exe - System Error
---------------------------
The program can't start because std-1008ebd411f043f7.dll is missing from your computer. Try reinstalling the program to fix this problem.
cargo-clippy.exe - System Error
---------------------------
The program can't start because syntax_pos-337bfb4f3ecbfe90.dll is missing from your computer. Try reinstalling the program to fix this problem.
@CodeGradox
Copy link
Author

I did a fresh install of rustup with the msvc toolchain and reinstalled clippy and it still gives no output. cmd.exe still causes those error message dialogue boxes to appear.

@CodeGradox
Copy link
Author

I forgot to mention that adding clippy as an optional dependency and running cargo build --features "clippy" does work as intended.

@mzji
Copy link

mzji commented Jan 19, 2017

I have the same issue on my Win10 x64 box, didn't try to use clippy as a rustc plugin. rustc info:

rustc 1.16.0-nightly (c8af93f09 2017-01-18)
binary: rustc
commit-hash: c8af93f0901c336e873ce18274026d0fd9bc7c1f
commit-date: 2017-01-18
host: x86_64-pc-windows-msvc
release: 1.16.0-nightly
LLVM version: 3.9

@Manishearth
Copy link
Member

IIRC you have to set up PATH and LD_LIBRARY_PATH (or whatever the equivalent is) for this to work, this used to work with rustup but doesn't anymore

@mzji
Copy link

mzji commented Jan 19, 2017

I think this is a duplicate of #1422 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants