Skip to content

๐Ÿ› vcs.useIgnoreFile: couldn't find an ignore file in the following folder (since v2.1.2)ย #6964

@awoimbee

Description

@awoimbee

Environment 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

Metadata

Metadata

Assignees

Labels

A-CoreArea: coreS-Bug-confirmedStatus: report has been confirmed as a valid bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions