gauge-sh / tach

A Python tool to enforce dependencies, using modular architecture 🌎 Open source 🐍 Installable via pip πŸ”§ Able to be adopted incrementally - ⚑ Implemented with no runtime impact ♾️ Interoperable with your existing systems πŸ¦€ Written in rust
https://gauge.sh
MIT License
1k stars 35 forks source link

Failed to build regex patterns for excluded paths #233

Closed Bongomannn closed 2 weeks ago

Bongomannn commented 1 month ago

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 commented 1 month ago

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:

So I think something weird is happening

emdoyle commented 1 month ago

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?

architgarg commented 1 month ago

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

emdoyle commented 2 weeks ago

Closing this due to inactivity