Failed to build regex patterns for excluded paths
Closed this issue · 4 comments
when i start tach sync or tach check for example it gives me this back:
Failed to build regex patterns for excluded paths
I have selected some folder instead of a python file. Maybe you can give some advice within a new error text as that above
when i start tach sync or tach check for example it gives me this back:
Failed to build regex patterns for excluded paths
I have selected some folder instead of a python file. Maybe you can give some advice within a new error text as that above
Python 3.11 win11
Sorry the previous post was wrong. It is not showing any border when i run tach sync it fails like before and the yaml file looks like this
yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.9.3/public/tach-yml-schema.json
modules:
- path: main
depends_on: []
exclude: - .*pycache
- .*egg-info
- docs
- tests
- venv
source_roots: - .
So I think something weird is happening
Hi @Bongomannn , thanks for raising the issue.
Could you try copying the exact contents of your tach.yml
file here again, but put it in a code block with ``` so that there isn't any auto-formatting?
The error you're getting likely means that one of the entries in exclude
is not a valid regex pattern, but it's hard to tell what the exact content is. Also, could you tell me what IDE or program are you using to edit your files?
@Bongomannn Make sure to use regex patterns, not glob patterns, when excluding paths. This has confused other users as well. Refer to the documentation for exclude
at https://docs.gauge.sh/usage/configuration#tach-yml.
Closing this due to inactivity