biomejs / biome-intellij

Biome plugin for IntelliJ
https://plugins.jetbrains.com/plugin/22761-biome
Apache License 2.0
46 stars 13 forks source link

IntelliJ complains about errors in configuration file #72

Open zakius opened 3 months ago

zakius commented 3 months ago

Every time enable Biome in IntelliJ it pops up and no suggestions appear in the editor

Biome: The configuration file has errors. Biome will report only parsing errors until the configuration is fixed.
CLI:
  Version:                      1.8.3
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v21.6.2"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.2.4"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

Biome plugin version 1.2.1 and IntelliJ version 2024.1.4

ematipico commented 3 months ago

Can you please give us more information? The warning is clear enough, your configuration file has errors. Why is this an issue?

E.g.: provide the configuration file, provide a playground link, etc.

zakius commented 3 months ago

that's an issue because the file is fine and CLI confirms that, it seems I missed that in my original post, sorry for that

to be fair it magically stopped showing that message after rebooting my PC and now it seems IntelliJ formats according to my settings but it is extremely slow to index, list files in the project tree, analyze files and when it finally finishes that shows no errors in the editor while CLI does print quite a lot of them

I don't know how I can help diagnosing it further, don't think the config file is the issue here but here it is in case it hints at something

{
    "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
    "organizeImports": {
        "enabled": true
    },
    "formatter": {
        "enabled": true,
        "indentStyle": "space"
    },
    "linter": {
        "enabled": true,
        "rules": {
            "recommended": true
        }
    },
    "overrides": [
        {
            "include": [
                "*.svelte"
            ],
            "linter": {
                "rules": {
                    "style": {
                        "useConst": "off",
                        "useImportType": "off"
                    }
                }
            }
        }
    ],
    "vcs": {
        "enabled": true,
        "clientKind": "git",
        "useIgnoreFile": true
    },
    "files": {
        "include": [
            "src/**/*.ts",
            "src/**/*.svelte"
        ],
        "ignore": [
            ".idea",
            ".svelte-kit",
            "node_modules",
            "build"
        ]
    }
}

additionally it just works in vsc