Skip to content

🐛 plugins aren't resolved from the location of the config file #6676

@adamhl8

Description

@adamhl8

Environment information

CLI:
  Version:                      2.0.6
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  BIOME_THREADS:                unset
  NO_COLOR:                     unset
  TERM:                         xterm-256color
  JS_RUNTIME_VERSION:           v22.6.0
  JS_RUNTIME_NAME:              node
  NODE_PACKAGE_MANAGER:         bun/1.2.17

Biome Configuration:
  Status:                       Loaded successfully
  Path:                         biome.jsonc
  Formatter enabled:            true
  Linter enabled:               true
  Assist enabled:               true
  VCS enabled:                  true

Workspace:
  Open Documents:               0

What happened?

Say you have a setup like this:

./configs/biome.json

{
  "root": false,
  "plugins": ["./pattern.grit"],
}

./biome.json

{
  "extends": ["./configs/biome.json"]
}

Run biome check:

  ✖ Error(s) during loading of plugins:
    Cannot read file.

Changing the plugin path to be relative to the root config makes it work:

./configs/biome.json

{
  "root": false,
  "plugins": ["./configs/pattern.grit"],
}

Plugins should be resolved relative to the specifying config.

Code of Conduct

  • I agree to follow Biome's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions