-
Notifications
You must be signed in to change notification settings - Fork 41
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
Windows - Size returned in NaNM for all packages #23
Comments
@rayno Honestly, I have not tested on windows! Can you give me the output of |
Here you are! |
@rayno That looks, perfectly fine. Not sure what's wrong 🤔 I'll get my hands on a windows machine and debug soon |
@rayno, Can you help me debug this? Please clone the repo and run |
Hi again, When running the tests the linting fails because of line endings. Output from WebStorm:
Output from clink terminal
I hope that will help! |
@rayno Interesting, it could not even find Are you open to a screen sharing debug session? |
Yes, weekdays from 11-17 EET time. |
@rayno, Finally tried this on a windows machine, turns out When you gave me |
Yes, you are right. I used git bash for that. |
@rayno, Can you run this command for me in your directory -
|
Already did that, see the attachment debug.txt. The command was ran in git bash since it does not exist in windows environment. |
@rayno, sorry about that. I completely forgot. I still don't have an idea, why does it fail 😞 I'll get my hands on a windows machine and try again this week. Thanks for being patient. |
same issue win8.1 |
On Windows you do : du --max-depth 1 -k --exclude ".*" node_modules On unix you do : du -d 1 -k -I ".*" node_modules According to this post it seems that windows doesn't measure the disk usage the same way as Linux does. I think we should adjust one of this command to get the same result as the other, but i only have a windows for the moment... |
@tomapp Thanks! This is helpful. A pull request will be great! If you make it work for windows, the travis build will take care of linux 😄 |
Actually don't have solutions for solve this... After many tries i don't get the same value wrote in tests. |
@tomapp, No worries. Thanks for trying. I'll try once again when I get my hands on a windows machine. |
@siddharthkp What do you think about using getFolderSize package for replace result of command ? |
I started with that, then dropped. Should give it another try. |
I'll try too :) |
@tomapp Thanks! ❤️ |
Same issue here on Windows 7 64bit.
In the meantime, id suggest adding in the Readme, |
Same issue on Windows 10 64bit |
Any reason not to use native |
@alshakero yes please |
@siddharthkp done |
@siddharthkp BTW, tests may not pass because du measures size on disk, this method measures the actual file size. You'll need to modify the fixtures. |
All tests passed now. Pushed |
Released in Thanks @alshakero! |
Seems to work :) |
v0.4.2 work in Windows 7 64bit, Node 6.5.0 but does not output size on disk like
v0.4.0 with Cygwin:
v0.4.2:
|
@aecz Yes, you're right. Published 0.5.0 |
@rayno Thanks for reporting this |
Just tried it today on Your OS is Windows 10 64-bit
The text was updated successfully, but these errors were encountered: