Skip to content

[BUG] A literal NUL byte in packageImportService.ts makes ripgrep treat the file as binary #1619

Description

@chhoumann

Describe the bug

src/services/packageImportService.ts line 319 contains a literal NUL byte (a raw 0x00 written where "\x00undefined" appears, instead of an escape sequence).

Because of that byte, ripgrep classifies the entire 1174-line production service as a binary file and skips it by default:

$ rg --stats -n "applyOverridesToCommands" src/
0 matches
765 files searched
  • for a function that exists in that file.

Why this matters

Expected

The NUL should be written as an escape sequence ("\x00undefined" or equivalent) so the file is plain text again. Worth also considering a tiny lint/CI check asserting no source file contains raw control bytes, so this class cannot come back.

Found during the #1571/#1572 triage investigation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions