-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
File list for WSL2-mapped drive doesn't update automatically #18073
Comments
Hi @fohria thank you for the feedback! That's quite an usability issue, maybe another workaround for the moment could be to activated/deactivate the filter () to trigger an update? Not totally sure if this is something related with Qt/PyQt but if you find out more info about this let us know! |
Checking a little bit I found this: https://forum.qt.io/topic/116586/qfilesystemmodel-update-problem-for-shared-network-location so seems like this is kind of a limitation of the widget model we are using to fetch the file system ( As a side note, and as suggested in the answer from the link above, maybe Spyder will need to use a Just in case, @fohria could you check if running this from the
Let us know! |
Oh, it's because it's technically a network drive, interesting
No effect I'm afraid :( Since the file list updates when I double click into a subfolder, and then click the up arrow "parent" on top of file list pane, perhaps there's a clue there what it is that triggers a refresh? |
I think then the update is done since the current directory is changing 🤔 Could you try from the internal console the following:
Let us know! |
Does nothing, even a few times in a row. Same with What does work, is I tried Also tried creating a file Just to be clear, above examples are based on some folder structure like I'm not sure but it seems like |
Thanks for testing @fohria ! I guess with mapped drives yes the way to force polling is to change the directory to a parent folder as you say. Maybe this could be related with some info regarding caching from the Qt docs: https://doc.qt.io/qt-6/qfilesystemmodel.html#caching-and-performance |
Maybe this could be useful somehow: https://web.archive.org/web/20090626025226/http://lists.trolltech.com/qt-interest/2008-02/thread00553-0.html |
I have Spyder standalone install on Windows 10 and connect to Spyder kernels running in WSL2 (Ubuntu 20.04) on the same machine.
I've also mapped my WSL2 drive to W:\ on windows, so I can easily navigate the files through Spyder etc.
When creating/deleting/renaming files on the WSL2 drive in the Spyder Files pane, the file list is not automatically updated. I have to go into at least two subfolders down/up and then back for the changes to show.
Files update nicely if I create/delete/rename on the Windows c: drive.
This is likely a very niche use-case, so I don't expect you to prioritise this annoyance, but would make me happy if it was fixed :)
(and perhaps this is not Spyder's fault, but WSL/windows, and there's nothing to be done really?)
Versions
The text was updated successfully, but these errors were encountered: