files-community / Files

Building the best file manager for Windows
https://files.community
MIT License
34.06k stars 2.17k forks source link

Bug: File watcher doesn't work for WSL #9250

Open quantumwebco opened 2 years ago

quantumwebco commented 2 years ago

Description

When pasting a file or anything in the WSL filesystem I have to hit F5 for the view to update. The green tick shows in the top right but the files list is not updated

This particularly happens when working in the WSL filesystem but occasionally happens in native NTFS too

Steps To Reproduce

Expected behavior

Files Version

2.1.15.0

Windows Version

Windows 11 Pro 21H2 22000.706

Relevant Assets/Logs

debug.log

yaira2 commented 2 years ago

@quantumwebco is this still an issue in the preview version? https://files.community/download/preview

quantumwebco commented 2 years ago

@yaichenbaum Yeah, still happening on preview. I get the green tick in the top right to say it's completed but it doesn't update the view. I haven't noticed it doing it much in NTFS, just occasionally. But pasting in to WSL it happens always. The performance between windows and linux filesystems isn't great in WSL so maybe it's to do with that?

hishitetsu commented 1 year ago

As a workaround, the list is now automatically refreshed when files are added. #13068 If this issue can be resolved, please remove the workaround. https://github.com/files-community/Files/blob/00e015e17ad515a4dd8d0d35ab6ff94162180e79/src/Files.App/Data/Models/ItemViewModel.cs#L1522