Skip to content

[BUG]: Windows folder paths with backslashes crash YAML config parsing #84

Description

@PrithvijitBose

Bug Description

Description

On Windows computers, folder paths use backslashes (for example: C:\Users\username...).
In multiple test files, temporary folder paths are written into config YAML files inside double quotes:
The YAML config reader gets confused by \U inside double quotes because it thinks \U is a special code rather than a normal folder path.

  • 8 unit tests in test_audit_export.py and test_identity_linking.py fail immediately on Windows.
  • Any Windows user who writes double-quoted file paths in their config.yaml will see the bot crash on startup with a YAML parse error.

Steps to Reproduce

  1. On a Windows machine, open a terminal in the project directory.
  2. Run pytest tests/test_audit_export.py.
  3. The tests will fail with a yaml.scanner.ScannerError and SystemExit: 1.

Logs and Screenshots

Image

Environment Details

  • OS : Windows 11
  • Browser : Microsoft Edge

Impact

Medium - Feature works but has issues

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions