Skip to content

Native server raises an error "Ruff received invalid settings from the editor" when navigating into installed packages: #741

@MichaReiser

Description

@MichaReiser

Native server raises an error "Ruff received invalid settings from the editor" when navigating into installed packages:

2025-04-23 11:17:15.804281841  WARN No settings available for file:///usr/local/lib/python3.12/site-packages/cv2/__init__.py - falling back to default settings
2025-04-23 11:17:15.804285127 ERROR Failed to load settings from `configuration`: error looking key 'workspaceFolder' up: environment variable not found

This loses the rules, and causes flickering and constant popups as it refreshes frequently.

ruff-lsp behaves much better with just a quiet warning.

[Warn  - 11:20:42 AM] Skipping standard library file: /usr/local/lib/python3.12/site-packages/cv2/__init__.py

Originally posted by @brad-phobos in astral-sh/ruff#15991 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions