ack 3.3.0 improves error messages, makes file selection quicker
The new version v3.3.0 of the greplike code search tool ack has been released.
The error message ack displays when the regex passed is invalid has been improved. The message is more readable and includes a pointer to the offending part of the regex. For example:
$ ack 'status: (open|closed|in progress'
ack: Invalid regex 'status: (open|closed|in progress'
Regex: status: (open|closed|in progress
^---HERE Unmatched ( in regex
ack v3.3.0 also added new file and directory exclusions to speed up file selection.
- Python’s
*.pyc,*.pydand*.pyocompiled files - Python’s
__pycache__and.pytest_cachedirectories - Linux
*.soshared object files - Windows
*.dlldynamic-link library files - gettext
*.mocompiled translation files - macOS’s
__MACOSXdirectories and.DS_Storefiles
For a complete list of changes, see the ack 3 changelog.