Skip to content

Cannot resolve the configuration path in settings.json #627

@hypsoma

Description

@hypsoma

Hi,

The ruff extension could not resolve the configuration path set in the settings.json suddenly.

"ruff.nativeServer": "on",
"ruff.configuration": "$HOME/.config/pyproject.toml",

During the initialization of ruff, the following error appeared:
Error while resolving settings from workspace /. Please refer to the logs for more details.

Here is the log.

2024-10-07 15:47:39.080 [info] Name: Ruff
2024-10-07 15:47:39.080 [info] Module: ruff
2024-10-07 15:47:39.080 [info] Python extension loading
2024-10-07 15:47:39.080 [info] Waiting for interpreter from python extension.
2024-10-07 15:47:39.080 [info] Python extension loaded
2024-10-07 15:47:39.080 [info] Using interpreter: /Users/craig/micromamba/envs/Research/bin/python
2024-10-07 15:47:39.150 [info] Using environment executable: /opt/homebrew/bin/ruff
2024-10-07 15:47:39.158 [info] Found Ruff 0.6.9 at /opt/homebrew/bin/ruff
2024-10-07 15:47:39.158 [info] Server run command: /opt/homebrew/bin/ruff server
2024-10-07 15:47:39.158 [info] Server: Start requested.
2024-10-07 15:47:40.447 [info] warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `System/Volumes/Data/Users/craig/micromamba/envs/Research/lib/python3.12/site-packages/pandas/pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'typing-modules' -> 'lint.typing-modules'
  - 'unfixable' -> 'lint.unfixable'
  - 'per-file-ignores' -> 'lint.per-file-ignores'
warning: `PGH001` has been remapped to `S307`.

2024-10-07 15:47:40.512 [info] warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `Users/craig/micromamba/envs/Research/lib/python3.12/site-packages/pandas/pyproject.toml`:
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'typing-modules' -> 'lint.typing-modules'
  - 'unfixable' -> 'lint.unfixable'
  - 'per-file-ignores' -> 'lint.per-file-ignores'

Version

Ruff: 0.6.6 (v2024.50.0)
VSCode: 1.94

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions