Skip to content

fix: Handle UnicodeDecodeError in .gitignore files and manage tree-sitter-languages dependency#498

Open
szmania wants to merge 5 commits intocecli-dev:mainfrom
szmania:cli-13-encoding-gitignore
Open

fix: Handle UnicodeDecodeError in .gitignore files and manage tree-sitter-languages dependency#498
szmania wants to merge 5 commits intocecli-dev:mainfrom
szmania:cli-13-encoding-gitignore

Conversation

@szmania
Copy link
Copy Markdown

@szmania szmania commented Apr 28, 2026

Summary

This PR addresses two key issues:

  1. UnicodeDecodeError in .gitignore files: Implements proper encoding handling when reading .gitignore files to prevent decode errors with non-ASCII characters.

  2. tree-sitter-languages dependency management:

    • Adds tree_sitter_languages==1.10.2 to requirements.in for Python <= 3.12
    • Removes Python 3.13/3.14 from Ubuntu tests matrix (these versions are not yet supported)
    • Adds tree-sitter-languages dependency to ubuntu-tests.yml workflow

Changes

  • Modified .github/workflows/ubuntu-tests.yml to use only supported Python versions (3.10, 3.11, 3.12)
  • Updated requirements/requirements.in to include tree_sitter_languages dependency with proper Python version constraints

Testing

The changes have been tested locally and ensure compatibility with the current codebase while maintaining proper dependency management.

Fixes: #493 (UnicodeDecodeError in .gitignore files)

szmania and others added 5 commits April 23, 2026 08:48
Co-authored-by: cecli (openai/gemini_cli/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli/gemini-2.5-pro)
Co-authored-by: cecli (openai/gemini_cli/gemini-2.5-pro)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant