Uh oh!
There was an error while loading. Please reload this page.
Fix windows - #477
Conversation
Instead of checking for not a file, couldn't ? Also, I did find it strange that python-lsp-server has a pytest.exe in its sys.path; adding a folder check in rope might be a hack around what could be a deeper issue in python-lsp-server's tests setup, but nevertheless I agree that it's sensible for rope to just ignore garbage/unusable paths here. |
lieryan
commented
Jun 1, 2022
Thank you for fixing this issue. I don't have Windows to test this on, but the fix seems like it should be safe enough. |
Description
On windows, the python sys.path includes random files. I do not have windows and 100% of development is on linux but it failed on pylsp's CI. I filtered out files from the search, but cannot easily test this code. I am also unsure of why files are included in sys.path on windows.
Fixes
autoimport on windows.