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

doesn't install on windows #11

Open
dsisnero opened this issue Nov 1, 2018 · 5 comments
Open

doesn't install on windows #11

dsisnero opened this issue Nov 1, 2018 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@dsisnero
Copy link

dsisnero commented Nov 1, 2018

Compiling terminal_size v0.1.8
Compiling dutree v0.2.9
error[E0425]: cannot find value mode in this scope
--> C:\Users\Dominic E Sisneros.cargo\registry\src\github.com-1ecc6299db9ec823\dutree-0.2.9\src\lib.rs:494:16
|
494 | if mode & 0o002 != 0 { // dir other writable
| ^^^^ not found in this scope

error[E0425]: cannot find value mode in this scope
--> C:\Users\Dominic E Sisneros.cargo\registry\src\github.com-1ecc6299db9ec823\dutree-0.2.9\src\lib.rs:503:12
|
503 | if mode & 0o111 != 0 { // executable
| ^^^^ not found in this scope

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0425.
error: failed to compile dutree v0.2.9, intermediate artifacts can be found at C:\Users\DOMINI~2\AppData\Local\Temp\1\cargo-installHdRu0K

Caused by:
Could not compile dutree.

To learn more, run the command again with --verbose.

C:\Users\Dominic E Sisneros>

@calebmeyer
Copy link

calebmeyer commented Nov 1, 2018

Here's the full verbose output, if it helps. I'm on the latest stable (1.30.0 at the time of this writing)

@nachoparker
Copy link
Owner

Hi,

I do not use/support windows myself, but PRs are welcome. Somebody already sent a PR to install on macOS

Cheers!

@nachoparker nachoparker added the help wanted Extra attention is needed label Nov 2, 2018
@aQaTL
Copy link

aQaTL commented Nov 5, 2018

I got it building on Windows. My changes are here.
But, as you can see in the comments, there are still a few issues to solve. First: how to get the file size on disk on Windows. And the second, detecting whether file is executable and coloring output.

@gilescope
Copy link

Some feedback on win7:

dutree looks pegged on one cpu in windows.

cargo run c:\Users\ interpreted it as run on c: but cargo run c:/Users worked ok, and it couldn't cope with
cargo run /c/Users which was a symlink under a cygwin prompt to /cygdrive/c/Users.

It ran and outputted ok on win7 but did then exit ungracefully:
thread 'main' panicked at 'attempt to divide by zero', src\lib.rs:451:32

(This is running @aQaTL 's fork)

Either way it's a definite improvement on master - :shipit:

@saona-raimundo
Copy link

Just passing by: Still the same error to this date on Windows.
(sorry for not being more helpful :/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants