Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ complains about errors in configuration file #72

Open
zakius opened this issue Jul 18, 2024 · 2 comments
Open

IntelliJ complains about errors in configuration file #72

zakius opened this issue Jul 18, 2024 · 2 comments
Labels
Waiting for response Waiting for a response from the author of the issue

Comments

@zakius
Copy link

zakius commented Jul 18, 2024

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
Copy link
Member

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.

@ematipico ematipico added the Waiting for response Waiting for a response from the author of the issue label Jul 18, 2024
@zakius
Copy link
Author

zakius commented Jul 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for response Waiting for a response from the author of the issue
Projects
None yet
Development

No branches or pull requests

2 participants