You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ignore patterns creating during folder addition are not loaded #8764
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
which version of Syncthing and what operating system you are using
1.23.0
browser and version, if applicable
synctrazor/brave
what happened,
when accepting new folder share, after inserting Ignore Patterns the .stignore file is created automatically but in the GUI the Ignore Patterns show as empty, however, the file is not empty. Syncthing is also not adhering to what is in .stignore and syncing all files.
what you expected to happen instead, and
Sync while respecting the Ignore Patterns in .stignore. Maybe attempt to find the #include file first
any steps to reproduce the problem.
Yes, an example is below. Accept a new share from a remote pc. Must use the #include function and make sure the #include file does not exist on host computer.
how to fix it
manually copy the #include file to the host computer and Syncthing will now load and use the Ignore Patterns. All #include files must exist
//global ignore file that contains unimportant extensions and files to ignore
#include .stignoresync
//exclude larger directories
bigfolder
biggerfolder
What's supposed to happen when the ignore patterns have a bad #include is that the patterns fail to load and the folder is stopped. This does happen in the normal case, if it doesn't when accepting a share then that's the bug, but "partially" loading an .stignore while ignoring #includes is not a thing we do or should do...
changed the title [-]Syncthing cannot load Ignore Patterns while #Include file is missing.[/-][+]Ignore patterns creating during folder addition are not loaded[/+]on Mar 10, 2023
Yeah the #include stuff is a red herring, the real issue here is that adding ignore patters as described doesn't actually take effect on the folder. No idea why yet.
Came here to see if this was a known issue and report it if not. I've been trying out Syncthing with the hopes of moving over to it from Resilio. I have a workaround involving setting the pull order to "Smallest First", checking the box and adding my ignores, then doing "Pause All" followed by "Rescan All" once the #include files are synced. Maybe the ignores should be read and any #include files downloaded first? I'd figure this is possible since there are existing "Pull Order" options that must read the file data already.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Jan 27, 2023
What's supposed to happen when the ignore patterns have a bad #include is that the patterns fail to load and the folder is stopped. This does happen in the normal case, if it doesn't when accepting a share then that's the bug, but "partially" loading an .stignore while ignoring #includes is not a thing we do or should do...
MickMorley commentedon Jan 27, 2023
Understandable, and good to know it should have stopped.
Currently, it did not stop. I tried the same process on 2 different PCs and it kept syncing. It just thinks the ignore patterns are empty.
[-]Syncthing cannot load Ignore Patterns while #Include file is missing.[/-][+]Ignore patterns creating during folder addition are not loaded[/+]calmh commentedon Mar 10, 2023
Yeah the
#includestuff is a red herring, the real issue here is that adding ignore patters as described doesn't actually take effect on the folder. No idea why yet.acffordyce973 commentedon Apr 16, 2023
Came here to see if this was a known issue and report it if not. I've been trying out Syncthing with the hopes of moving over to it from Resilio. I have a workaround involving setting the pull order to "Smallest First", checking the box and adding my ignores, then doing "Pause All" followed by "Rescan All" once the #include files are synced. Maybe the ignores should be read and any #include files downloaded first? I'd figure this is possible since there are existing "Pull Order" options that must read the file data already.
lib/ignore: fixed error when included ignore file is missing (fixes s…
lib/ignore: toss proper error when included ignore file is missing (f…
Merge branch 'main' into windowsfixtests
Merge branch 'main' into multiquic
Merge branch 'main' into newglobbing
lib/ignore: Properly handle non-existing included ignore-files (fixes s…