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 sometimes overwrites the file with some past content instead of accepting external changes #676

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

Comments

@aisbergde
Copy link

aisbergde commented Mar 10, 2024

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:
If the file content changes outside sleek, changes should be accepted by sleek.

Actual Behavior:
If I edit the file content directly using a text editor, then sometimes sleek overwrites the content with previous content:
image

Steps to Reproduce:

Hard to reproduce. Most time external changes are accepted by sleek, but sometimes sleek overwrites external changes.

Screenshots:
See above

@aisbergde aisbergde added the bug Something isn't working label Mar 10, 2024
@github-project-automation github-project-automation bot moved this to Backlog in sleek 2.x Mar 10, 2024
@ransome1 ransome1 moved this from Backlog to In Progress in sleek 2.x Mar 16, 2024
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

My gut tells me this going to be a complicated one, since we have plenty of variables here. Most likely some kind of file sync and at least one external editor or application, of which we don't know how it is writing the file.

The file watching module (chokidar) gives us a couple of settings here. sleek is currently using the default settings which work for the majority of setups. If a setup causes issues, it is my believe that the settings atomic, usePolling and interval as described here can solve this kind of issue. Especially usePolling is a good option in network settings, as stated in the documentation.

In v2.0.12-RC.4 sleek now contains a corresponding setting for each of those 3 chokidar settings. They are described in the wiki.

You might want to start activating the polling by changing fileWatcherPolling to true. And then start playing around with the fileWatcherPollingInterval setting.

Let's see if this changes anything on your side.

@42web-ch
Copy link

42web-ch commented Mar 18, 2024

My gut tells me this going to be a complicated one, since we have plenty of variables here. Most likely some kind of file sync and at least one external editor or application, of which we don't know how it is writing the file.

The file watching module (chokidar) gives us a couple of settings here. sleek is currently using the default settings which work for the majority of setups. If a setup causes issues, it is my believe that the settings atomic, usePolling and interval as described here can solve this kind of issue. Especially usePolling is a good option in network settings, as stated in the documentation.

In v2.0.12-RC.4 sleek now contains a corresponding setting for each of those 3 chokidar settings. They are described in the wiki.

You might want to start activating the polling by changing fileWatcherPolling to true. And then start playing around with the fileWatcherPollingInterval setting.

Let's see if this changes anything on your side.

Thanks for the information. I am added this "Polling" staff to my config. Now im testing..

~/.var/app/com.github.ransome1.sleek/config/sleek/userData/config.json
Can you please add the directory of flatpak config to this wiki page

@ransome1
Copy link
Owner

ransome1 commented Mar 22, 2024

Can you please add the directory of flatpak config to this wiki page

Thanks for the information. I am added this "Polling" staff to my config. Now im testing..

@42web-ch Any update so far?

@github-project-automation github-project-automation bot moved this from In Progress to Done in sleek 2.x Mar 23, 2024
@42web-ch
Copy link

@42web-ch Any update so far?

Yes. For now, i never had again e issue. Thanks for the support. :)

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