-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Infinite loop in generic.climb_directory_tree #101
Comments
Hi @Skrierz, thanks for the bug report. I didn't test Nitpick on Windows yet. I'm not 100% satisfied with the way Nitpick searches for the project files. |
Ok, thanks |
Hi @Skrierz. I slightly modified the code. I tried setting up a Windows build on Travis, but I couldn't. Let me know what happens, please collect any debug info you have. |
Hi @andreoliwa It's not working. >>> WindowsPath('c:') == WindowsPath('C:')
True
>>> str(WindowsPath('c:')) == str(WindowsPath('C:'))
False
>>> str(WindowsPath('c:'))
'c:'
>>> str(WindowsPath('C:'))
'C:' And i think i found solution. >>> WindowsPath('c:').anchor == str(WindowsPath('c:'))
True
>>> WindowsPath('C:').anchor == str(WindowsPath('C:'))
True
>>> win_path = WindowsPath('D:\PyCharm Community Edition 2019.2.2')
>>> win_path.anchor == str(win_path.parent)
True
>>> unix_path = PurePosixPath('/etc')
>>> unix_path
PurePosixPath('/etc')
>>> unix_path.anchor == str(unix_path.parent)
True |
If you want, i can try to PR this issue. |
Hi @Skrierz, could you try the same branch again?
Thanks, this PR was almost done. 😉 If you find some other bug in Windows, I'd appreciate the help. |
Hi @andreoliwa. I've tested new fix and it works. |
Hi @Skrierz, please create a new issue. |
🎉 This issue has been resolved in version 0.21.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Expected Behavior
I expect 'nitpick' to complete in few minutes
Current Behavior
I get endless completion time.
I think it's happens because of behaviour of Path().root and Path().parent on windows
Steps to Reproduce
flake8
Your Environment
nitpick
version used: 0.21.1Python version: Python 3.7.4
Operating System and version: Windows 10
Run the following commands and paste the output:
The text was updated successfully, but these errors were encountered: