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

Output briefly flashes up and disappears when running spectral-cli via npx #2715

Open
voltagex opened this issue Oct 22, 2024 · 0 comments
Open

Comments

@voltagex
Copy link

Describe the bug

npx @stoplight/spectral-cli lint doc.json causes red text to flash up briefly and then disappear.

npx @stoplight/spectral-cli lint doc.json 2>&1 shows the error is
No ruleset has been found. Please provide a ruleset using the --ruleset CLI argument, or make sure your ruleset file matches .?spectral.(js|ya?ml|json)

Which makes sense.

Two things here: I'm not sure what terminal control stuff you're using but something strange is happening here

To Reproduce

  1. Given any JSON file, forget to set up a ruleset.
  2. Using npm/npx 10.9.0 from Debian Trixie, run npx @stoplight/spectral-cli lint doc.json
  3. See error flash up and disappear

Expected behavior
Error to be displayed without less or cat tricks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant