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 or WomB0ComB0/portfolio#159 · May be fixed by WomB0ComB0/portfolio#157
Closed
1 task done

🐛 Failed to lint json from stdin. #4102

PFiS1737 opened this issue Sep 27, 2024 · 0 comments · Fixed by #4109 or WomB0ComB0/portfolio#159 · May be fixed by WomB0ComB0/portfolio#157
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
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
2 participants