Skip to content

🐛 --apply / --write broken for vue files on stdin #2225

@Superpat

Description

@Superpat

Environment information

CLI:
  Version:                      1.6.3
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.11.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 false

Workspace:
  Open Documents:               0

What happened?

When I use biome lint --apply or biome format --write with a piped file and --stdin-file-path I get the formatted / linted code on stdout, but when I use biome check --apply nothing comes out. If I remove the --apply flag it outputs a list of what it would change.

Heres the actual command I use, $path is the absolute path to my project root and $target is the absolute file path for the file I want to lint
.
${path}node_modules/.bin/biome check --apply --config-path=${path} --colors=off --stdin-file-path=$target < $target

Expected result

I expect content piped to biome check --apply --stdin-file-path=xx to output the formatted, linted and sorted file to std out.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: CLIS-Bug-confirmedStatus: report has been confirmed as a valid bugS-Help-wantedStatus: you're familiar with the code base and want to help the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions