Skip to content
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

sleek is often loosing the files #675

Closed
aisbergde opened this issue Mar 10, 2024 · 6 comments
Closed

sleek is often loosing the files #675

aisbergde opened this issue Mar 10, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@aisbergde
Copy link

Bug Report

Important

Please follow this template strictly when reporting bugs.

Reports that do not adhere to this template will not be addressed and will be closed.

App Version: information not available in the app

Platform: Windows

Installation Method: App Store

Expected Behavior:
File should stay "active" in sleek.

Actual Behavior:
sleek is often loosing the files. And then I need to open the file again. sleek also doesn't remember anything. I just get:
image

Also the done.txt will lost.

Steps to Reproduce:

it is hard to reproduce, it just happens. I installed sleek today from the app store and it happened several times. Sometimes the file keeps for some hours, sometimes keep looses the file after some minutes.

The files are located in a folder, which is synchronized with my Synology NAS using "Synology Drive"

Screenshots:
see above

I used sleek in the past on another PC and it worked fine.

@aisbergde aisbergde added the bug Something isn't working label Mar 10, 2024
@ransome1
Copy link
Owner

This is most likely connected to the file sync.

If for example your file sync works in a way that it removes and file and then re-adds it, and there is a gap between those two events, sleeks file watcher (chokidar) understands this as an unlink event rather than a change event. And this then removes the file.

I will add a hidden setting in the next release, that let you decide the threshold time in ms. chokidars default is 100ms, I will lift it to 1000ms as a default and you can play around with it by adding this setting fileWatcherAtomic. It accepts an integer.

@RobLW
Copy link

RobLW commented Mar 12, 2024

This is most likely connected to the file sync.

If for example your file sync works in a way that it removes and file and then re-adds it, and there is a gap between those two events, sleeks file watcher (chokidar) understands this as an unlink event rather than a change event. And this then removes the file.

I will add a hidden setting in the next release, that let you decide the threshold time in ms. chokidars default is 100ms, I will lift it to 1000ms as a default and you can play around with it by adding this setting fileWatcherAtomic. It accepts an integer.

Sorry if the answer to this question is obvious.
When you say you'll add a hidden setting, where will we need to go in order to alter it please?

I'm also experiencing this problem with files stored on my local drive.
Thanks, really looking forward to the next release.

@ransome1
Copy link
Owner

@RobLW I have not yet found the time to create a new pre-release. Once this has been released you can add the setting (described here) in the config.json file, which is located in your user data folder. This link helps you finding it: https://github.com/ransome1/sleek/wiki/User-data-folder-location

ransome1 added a commit that referenced this issue Mar 16, 2024
…. Added file watcher settings (#675 & #676). Fixed #670. Continued work on #609.
ransome1 added a commit that referenced this issue Mar 16, 2024
…. Added file watcher settings (#675 & #676). Fixed #670. Continued work on #609.
@ransome1
Copy link
Owner

@RobLW @aisbergde this setting can be tested in the latest pre-release. Let me know, if this can solve the issue at hand.

@aisbergde
Copy link
Author

I could not reproduce the issue in the last few days. There was one day, when it happened several times, and there are other days, where the connection is stable.

@ransome1
Copy link
Owner

If this happens in v2.0.12 despite the new settings, feel free to report back here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants