Skip to content

Ignore patterns creating during folder addition are not loaded #8764

Closed

Description

@MickMorley

Include required information

Please be sure to include at least:

  • 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

Activity

  1. added
    bug
    needs-triage
    on Jan 26, 2023
  2. calmh commented on Jan 27, 2023

    @calmh
    Member

    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...

  3. MickMorley commented on Jan 27, 2023

    @MickMorley
    Author

    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.

  4. 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
  5. removed
    needs-triage
    on Mar 10, 2023
  6. calmh commented on Mar 10, 2023

    @calmh
    Member

    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.

  7. acffordyce973 commented on Apr 16, 2023

    @acffordyce973

    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.

  8. added 2 commits that reference this issue on Apr 20, 2023
    269f9bb
    fa62a29
  9. added 2 commits that reference this issue on Apr 25, 2023
    5280c4e
    2a8dff6
  10. added this to the v1.23.5 milestone on Apr 28, 2023
  11. added a commit that references this issue on May 9, 2023
    8c282de
  12. added a commit that references this issue on Jan 28, 2024
    9f131ee
  13. added
    frozen-due-to-age
    on Apr 19, 2024
  14. locked and limited conversation to collaborators on Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions