You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling the biome checker, it only emits errors for changed files since the startup of the server. That is generally problematic, by a quick glance, this seems to happen with project when building the project too.
$ bunx biome lint --reporter json some-directory/spa
-- snip --
The number of diagnostics exceeds the number allowed by Biome.
Diagnostics not shown: 465.
Checked 253 files in 100ms. No fixes applied.
Found 428 errors.
Found 7 warnings.
$ npm run dev
> a-project@version dev
> vite --port 3000 --clearScreen false
VITE v5.4.11 ready in 654 ms
➜ Local: http://localhost:3000/
➜ Network: use --host to expose
➜ press h + enter to show help
# I've overwritten some source files to see the CLI commands
[ 'biome', 'lint', '--reporter json', 'some-directory/spa' ]
[Biome] Found 0 error and 0 warning
```log
$ npm run build
> [email protected] build
> tsc && vite build -l info -d
# no errors
# now saving a file
[ 'biome', 'check', '', '--reporter json', 'F:\\work\\tms-maic\\spa\\src\\App.tsx' ]
ERROR(Biome) [lint/style/useImportType] All these imports are only used as types.
FILE some-directory\App.tsx:8:8
### Additional context
_No response_
### Validations
- [X] Read the [docs](https://github.com/fi3ework/vite-plugin-checker#readme).
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
The text was updated successfully, but these errors were encountered:
Digging myself some, this problem seems to be primarily caused by a too short stdout buffer. The checker does not reject the promise on error, so it silently ignored the error that the stdout buffer overflowed.
Then I hit other errors caused by parsing of the large JSON:
node:internal/event_target:1099
process.nextTick(() => { throw err; });
^
RangeError [Error]: Invalid count value: -1
at String.repeat (<anonymous>)
at F:\work\tms-maic\spa\node_modules\@babel\code-frame\lib\index.js:172:108
at Array.map (<anonymous>)
at codeFrameColumns (F:\work\tms-maic\spa\node_modules\@babel\code-frame\lib\index.js:161:70)
at createFrame (file:///F:/work/tms-maic/spa/node_modules/vite-plugin-checker/dist/esm/codeFrame.js:4:10)
at file:///F:/work/tms-maic/spa/node_modules/vite-plugin-checker/dist/esm/checkers/biome/cli.js:57:23
at Array.map (<anonymous>)
at parseBiomeOutput (file:///F:/work/tms-maic/spa/node_modules/vite-plugin-checker/dist/esm/checkers/biome/cli.js:47:42)
at file:///F:/work/tms-maic/spa/node_modules/vite-plugin-checker/dist/esm/checkers/biome/cli.js:35:21
at ChildProcess.exithandler (node:child_process:430:5)
Emitted 'error' event on Worker instance at:
at [kOnErrorMessage] (node:internal/worker:326:10)
at [kOnMessage] (node:internal/worker:337:37)
at MessagePort.<anonymous> (node:internal/worker:232:57)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:825:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
Node.js v20.13.1
error: script "dev" exited with code 1
The latter error is caused by a linter emitted error that I cannot reproduce right now in an isolated manner.
Describe the bug
When enabling the biome checker, it only emits errors for changed files since the startup of the server. That is generally problematic, by a quick glance, this seems to happen with project when building the project too.
Reproduction
Expected behavior
The checker should emit errors truthfully on all files.
System Info
The text was updated successfully, but these errors were encountered: