News for hackers. Stuff that matters.
Re:Syncthing – a continuous file synchronization program by hparadiz on Thursday October 14, 2021 @02:00AM (#28860958)
The thing with the .stfolder file is annoying as hell. I use it to sync the build output folder for my Android builds but sometimes I need to run a clean and it wipes out the folder. Syncthing's developers for whatever reason just can't seem to grasp that sometimes I could careless about a folder's history and just need my files synced.

My fix it to run `touch .stfolder` in the build directory which fixes it but seriously Syncthing? Just put in some reasonable defaults and call it a day.

Otherwise it's perfectly fine.

Re:Syncthing – a continuous file synchronization program by grandchild on Thursday October 14, 2021 @06:48AM (#28862618)
yes the .stfolder is a minor nuisance most of the time, but it's a lifesaver if for some reason or other your folder gets removed or a mounted device is no longer there, or one of a hundred other things that can go wrong with a folder.

then you _really_ want syncthing to stand back and hold its hands up, instead of syncing deletion events to all connected devices or sending all your friends your entire home directory or something like this.

imo, it's a good safety tradeoff, and like so many of those (e.g. short vs long passwords) they might seem annoying most of the time, but prevent incredible damage that _one_ other time.

Re:Syncthing – a continuous file synchronization program by hparadiz on Thursday October 14, 2021 @07:50AM (#28863046)
I understand all these things because I've done this professionally for quite some time. However I've just explained that this is my build directory which means it can be deleted and I won't care. Every build quite literally overwrites all the output files so it's destructive by it's very nature. Syncthing already has an option where it won't sync deletes as well. I just don't understand why it must absolutely have an stfolder path. There should be a destructive sync option where it won't care and will just sync.
Re:Syncthing – a continuous file synchronization program by frosted-flakes on Thursday October 14, 2021 @06:05PM (#28870803)
I suggest you put your build folder inside a synced folder, instead of syncing the build folder directly.
Re:Syncthing – a continuous file synchronization program by hparadiz on Friday October 15, 2021 @01:18PM (#28880265)
This is actually exactly what I started to do. Was just kind of annoying :)
Re:Syncthing – a continuous file synchronization program by HKH2 on Thursday October 14, 2021 @03:34AM (#28861507)
If you put a non-empty placeholder file in that folder, it won't be empty any more, so it shouldn't be removed.
Re:Syncthing – a continuous file synchronization program by hparadiz on Thursday October 14, 2021 @06:14AM (#28862374)
Yea but it doesn't matter. The clean from gradle deletes the folder entirely and creates a new one in it's place. I don't care. Just sync the path. That's all I need. Instead Syncthing literally stop syncing ALL folders because "oh no something went wrong".

For whatever reason open source software always has these weird edge case engineering "solutions" that really aren't that great. If someone was actually a paying customer and asked for this the engineers would just figure something out instead of making excuses for why it is the way it is.

Re:Syncthing – a continuous file synchronization program by pjc50 on Thursday October 14, 2021 @07:57AM (#28863108)
> The clean from gradle deletes the folder entirely and creates a new one in it's place.

Maybe it's possible to .. not do that?

Re:Syncthing – a continuous file synchronization program by hparadiz on Thursday October 14, 2021 @08:02AM (#28863151)
You expect me to not use a basic feature of a compiler?

o_O weird take but k

Re:Syncthing – a continuous file synchronization program by pjc50 on Thursday October 14, 2021 @08:13AM (#28863245)
If a build system produces an adverse outcome, it is often possible to customize it so that it does not delete things which you would rather not have deleted. (I've no idea whether this is specifically easy or not in gradle)
Re:Syncthing – a continuous file synchronization program by libeclipse on Thursday October 14, 2021 @06:26AM (#28862459)
It's easy to open a pull request instead of complaining
Re:Syncthing – a continuous file synchronization program by j1elo on Thursday October 14, 2021 @07:25AM (#28862883)
Commercial products usually aim to satisfy its paying customer's needs. FOSS is, not always but most times, about satisfying one's own needs. So it won't be that easy to change a developer's mind who is determined about their way of doing things even if it is not the best way for others.
Re:Syncthing – a continuous file synchronization program by hparadiz on Thursday October 14, 2021 @07:57AM (#28863107)
It's also kind of arrogant of FOSS advocates to say "just make a pull request" whenever there's criticism of anything FOSS. You could spend weeks working on something only to have the maintainer say no and I've seen this happen and every time it does I just think to myself "welp there's another person who will never make another pull request again".
Re:Syncthing – a continuous file synchronization program by j1elo on Thursday October 14, 2021 @08:33AM (#28863395)
As a FOSS maintainer I always try to make it clear that before trying your luck with a PR, you should always first engange in a conversation with me.

Seems kind of obvious to my eyes, asking, talking, discussing about some change before doing the actual work. But as it seems, "obviousness" is in the eye of the beholder...

Re:Syncthing – a continuous file synchronization program by hparadiz on Thursday October 14, 2021 @08:51AM (#28863562)
That's fine and all except that the typical refrain from internet folks is that if something is free then you are not allowed to critique, comment, or request changes. If you really care about freedom you can handle a little bit of online banter.
Re:Syncthing – a continuous file synchronization program by libeclipse on Thursday October 14, 2021 @01:00PM (#28866861)
No one is saying you're not allowed to critique the software. You're critiquing the people who create that software for free
Re:Syncthing – a continuous file synchronization program by libeclipse on Thursday October 14, 2021 @12:58PM (#28866830)
Then fork it? No one is stopping you.

I assume you don't care about missing out on updates since that's the free work you're complaining about

Re:Syncthing – a continuous file synchronization program by HKH2 on Thursday October 14, 2021 @08:28AM (#28863356)
> The clean from gradle deletes the folder entirely and creates a new one in it's place.

That's really bizarre behavior. If the folder has no files or zero byte files then it might make sense, but if gradle's deleting non-empty files that don't concern it, that seems to be more of a problem with gradle.

I get the point though; if there's no versioning, why bother having an empty folder?