tach icon indicating copy to clipboard operation
tach copied to clipboard

Failed to build regex patterns for excluded paths

Open Bongomannn opened this issue 1 year ago β€’ 3 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

Bongomannn avatar Aug 05 '24 09:08 Bongomannn

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

Bongomannn avatar Aug 05 '24 09:08 Bongomannn

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?

emdoyle avatar Aug 05 '24 16:08 emdoyle

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

architgarg avatar Aug 06 '24 07:08 architgarg

Closing this due to inactivity

emdoyle avatar Aug 26 '24 02:08 emdoyle