If a version of watchman is in use that has the wildmatch capability, sane will delegate checking of glob patterns to watchman. Unfortunately watchman's globbing is not micromatch compatible. It seemingly just supports ** and *.
It seems like this issue could be fixed several ways:
- Never delegate glob inclusion to watchman. Pros: simple. Cons: could hurt perf in situations where watchman's efficiency is most needed.
- Do not delegate to watchman if the glob pattern contains unsupported syntaxes. Perhaps use the glob-parse package to determine which syntaxes are present.
- Similar to above, but warn the user if unsupported syntaxes are present.
- Where possible attempt to explode globs. E.g. convert
*.{css,scss} to *.css and *.scss. Where it is unreasonable to do this, either fall back or warn the user.
If a version of watchman is in use that has the
wildmatchcapability, sane will delegate checking of glob patterns to watchman. Unfortunately watchman's globbing is not micromatch compatible. It seemingly just supports**and*.It seems like this issue could be fixed several ways:
*.{css,scss}to*.cssand*.scss. Where it is unreasonable to do this, either fall back or warn the user.