GeezerVison is showing github.com — 🐛 vcs.useIgnoreFile: couldn't find an ignore file in the following folder (since v2.1.2) · Issue #6964 · biomejs/biome
🐛 vcs.useIgnoreFile: couldn't find an ignore file in the following folder (since v2.1.2) #6964DescriptionEnvironment information
CLI:
Version: 2.1.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
BIOME_THREADS: unset
NO_COLOR: unset
TERM: xterm-kitty
JS_RUNTIME_VERSION: v22.15.1
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: unset
Biome Configuration:
Status: Loaded successfully
Path: biome.json
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
Workspace:
Open Documents: 0
What happened?
I have a pnpm/biome workspace located at myrepo/subdir/myworkspace/.
I have this config:
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"root": "../.."
}
Whatever I put as root, I get Biome couldn't find an ignore file in the following folder: /home/username/Documents/stuff/myrepo/subdir/myworkspace
EDIT: this issue does not appear in my similar project, it seems to be triggered by the fact that I'm in a workspace.
Expected result
Biome finds the ignore file.
This issue doesn't happen on v2.1.1, appeared on v2.1.2
Workaround
Just add an empty .gitignore in the workspace dir (where the biome config lives).
Code of Conduct
- I agree to follow Biome's Code of Conduct
Reacted by Miyata Jumpei, Sumanth Chinthagunta, Ray Peters, Bruno Quaresma, koh-satoh-wpg, Ruslan, Christopher Watford, Vojta Staněk, Bryan Hoang, Riya Amemiya and 3 more Activitygithub-actions commented on Jul 21, 2025 Hello @awoimbee, please provide a minimal reproduction. You can use one of the following options:
- Provide a link to our playground, if it's applicable.
- Provide a link to GitHub repository. To easily create a reproduction, you can use our interactive CLI via
npm create @biomejs/biome-reproduction
Issues marked with S-Needs repro will be closed if they have no activity within 3 days. awoimbee commented on Jul 21, 2025 Reproducible @ https://github.com/awoimbee/biome-2.1.2-bug-repro
git clone [email protected]:awoimbee/biome-2.1.2-bug-repro.git
cd biome-2.1.2-bug-repro/subdir/myworkspace/
pnpm i
pnpm run fix
# ✖ Biome couldn't find an ignore file in the following folder: /[...]/biome-repro/subdir/myworkspace
Setting root to: "../", ../.., ../../, ../../../, or not setting it will generate the same error Reacted by Sumanth Chinthagunta, Ray Peters and Bruno Quaresma ray-peters commented on Aug 12, 2025 My team is seeing the same issue after upgrading from [email protected] -> [email protected]. Our project does not use workspaces, but we see the same error running biome from a docker container in our github ci/cd workflow. I haven't spent much time on debugging, and figure I missed something about updating the configuration with the upgrade, but wanted to mention in case it's helpful.
 akkadaya commented on Aug 14, 2025 It should use .gitignore only if it exists. As a workaround, create empty .gitignore at the same level of biome.json file. Reacted by Ruslan and Christopher Watford Reacted by Arthur Woimbée Reacted by Ray Peters BrunoQuaresma commented on Aug 14, 2025 I'm having the same issue when using with 2.2.0 Reacted by Ev Haus, Ruslan and Brandon Casey D3Pheonix commented on Sep 5, 2025 xcariba commented on Nov 10, 2025 Im having this issue as well. Version 2.3.2. My .gitignore is located in parent folder, if i set "root": "../"` or with other variations, even with absolute path it exits with same error. changed the title [-]🐛 v2.1.2 vcs.useIgnoreFile & vcs.root: couldn't find an ignore file in the following folde[/-] [+]🐛 vcs.useIgnoreFile: couldn't find an ignore file in the following folder (since v2.1.2)[/+] on Nov 10, 2025mmikhan commented on Nov 18, 2025 jakub-msqt commented on Dec 6, 2025 hugopino commented on Jan 11, 2026 In my case, I have a Turborepo monorepo. The issue was in one of the packages, and it was fixed by adding a .gitignore file Reacted by Andriy Halyasovskyy TheBit commented on Mar 8, 2026 Hi, are there any plans for this issue? Copy-pasting the same .gitignore is not good :( neilime commented on Mar 12, 2026 Hi, this issue is annoying, it forces to implement workarounds that pollutes our repos.
Hope we will have a fix.
Thanks ematipico commented on Mar 16, 2026 Reacted by Andriy Halyasovskyy and Ruslan jazzathedev commented on Apr 20, 2026 Having this issue in
$ biome --version
Version: 2.4.10
I have a .gitignore file in the project root yet it wants one in my home folder?
jazza@DOMINATOR MINGW64 ~/Documents/Code shit/boot.offline (main)
$ ls .gitignore
.gitignore
jazza@DOMINATOR MINGW64 ~/Documents/Code shit/boot.offline (main)
$ which biome
/c/Users/jazza/AppData/Local/pnpm/biome
jazza@DOMINATOR MINGW64 ~/Documents/Code shit/boot.offline (main)
$ biome check
C:\Users\jazza internalError/fs
× Biome couldn't find an ignore file in the following folder: C:\Users\jazza
configuration
× Biome exited because the configuration resulted in errors. Please fix them.
my config file:
biome.json ematipico commented on Apr 20, 2026 Please open a new issue, with a valid reproduction locked as resolved and limited conversation to collaborators on Apr 20, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|