Skip to content

Biome error if file path has spaces #591

@AlexanderPodlesniyQs

Description

@AlexanderPodlesniyQs

Describe the bug

File name with spaces breaks Biome command. Or any space in file path. In project folder name or any of it's parent folders.

return ['biome', command, flags, defaultFlags, files]

I suppose file name should be escaped. Probably some other special characters can also break the command.

I do not know about other checkers. I'm using Biome and Typescript only. Typescript works fine with such files.

Reproduction

Create minimal Vite project. Add Biome, vite-plugin-checker dependency.
Run npx vite (or use script in package.json to run vite dev server).
Create file with spaces, save it. Or add space in project folder.

Expected behavior

Files with spaces should be correctly processed by Biome checker

System Info

OS: Windows 10 10.0.19045
Node: 22.17.0
vite: 7.1.9
@biomejs/biome: 2.2.5
vite-plugin-checker: 0.11.0

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions