Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Failed to lint json from stdin. #4102

Closed
1 task done
PFiS1737 opened this issue Sep 27, 2024 · 0 comments · Fixed by #4109
Closed
1 task done

🐛 Failed to lint json from stdin. #4102

PFiS1737 opened this issue Sep 27, 2024 · 0 comments · Fixed by #4109
Assignees
Labels
A-CLI Area: CLI S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@PFiS1737
Copy link

Environment information

CLI:
  Version:                      1.9.2
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-kitty"
  JS_RUNTIME_VERSION:           "v22.9.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.8.3" (In fact, i use pnpm 9.11.0)

Biome Configuration:
  Status:                       unset

Workspace:
  Open Documents:               0

What happened?

  1. open your terminal.
  2. mkdir demo && cd demo
    pnpm init
    pnpm i -D @biomejs/biome
    
    # no error
    npx biome lint package.json
    
    # get "The contents aren't fixed. Use the `--fix` flag to fix them."
    # note that we have already set "--fix"
    cat package.json | npx biome lint --stdin-file-path=package.json --fix

Expected result

When using stdin mode, it shouldn't return an error. (Shouldn't it behave the same as normal usage?)

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@ematipico ematipico added A-CLI Area: CLI S-Bug-confirmed Status: report has been confirmed as a valid bug and removed A-CLI Area: CLI S-Bug-confirmed Status: report has been confirmed as a valid bug labels Sep 27, 2024
@ematipico ematipico self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants