plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Biome gets stuck processing its own config file

Open noxan opened this issue 1 year ago • 6 comments

when running trunk check --all biome gets stuck processing its own config file

Screenshot 2024-09-10 at 10 07 24 AM

noxan avatar Sep 10 '24 08:09 noxan

Hi @noxan! Sorry you're running into this issue. This could be related to another known issue where some batched linters can occasionally hang on their execution (we're looking into it).

If you run the following, does the issue resolve itself?

trunk daemon shutdown
trunk check -a --filter=biome

TylerJang27 avatar Sep 10 '24 08:09 TylerJang27

@TylerJang27 thanks for the swift reply, sadly the problem persists. it seems other json files also can cause complications, but i'm actually having a hard time to reproduce it - the biome.json config file remains a persistent issue.

i also tried to ignore the file via trunk.yml -> lint.ignore.linters.paths i receive the following error instead:

 46:11  high  '.trunk/config/biome.json' does not exist  trunk/config-error
Unable to run check due to invalid config

noxan avatar Sep 10 '24 10:09 noxan

I'll look into this issue further, but it looks like you have a typo: .trunk/config/biome.json -> .trunk/configs/biome.json

TylerJang27 avatar Sep 10 '24 17:09 TylerJang27

@noxan can you also include what Trunk version and what biome version you are running?

TylerJang27 avatar Sep 10 '24 18:09 TylerJang27

@TylerJang27 we are running trunk version 1.22.2 and biome we tested latest 1.8.3 and downgraded to 1.4.1 as a fallback option (the unknown working version listed in the plugin config).

Thanks for pointing out the typo, we settled for the following meanwhile:

    - linters: [biome]
      paths:
        - ".trunk/configs"

This seems to get biome unstuck and also covers the edge case of having comments in the tsconfig.json file, which shouldn't have comments but their boilerplate does have comments in json.

noxan avatar Sep 11 '24 14:09 noxan

it seems that biome not only gets stuck on it's own config but any json file

debkanchan avatar Jun 18 '25 07:06 debkanchan