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

Fix configuration warnings #658

Open
MichaReiser opened this issue Dec 31, 2024 · 3 comments
Open

Fix configuration warnings #658

MichaReiser opened this issue Dec 31, 2024 · 3 comments
Labels
internal An internal refactor or improvement

Comments

@MichaReiser
Copy link
Member

VS code logs the following warnings in the Output - Extension Host panel:

2024-12-31 13:50:14.481 [warning] [charliermarsh.ruff] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for 'ruff.interpreter', provide the URI of a resource or 'null' for any resource.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.configuration' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.nativeServer' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.ignoreStandardLibrary' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.importStrategy' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.enable' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.organizeImports' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.fixAll' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.showNotifications' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.482 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.showSyntaxErrors' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.configuration' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.nativeServer' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.ignoreStandardLibrary' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.importStrategy' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.enable' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.organizeImports' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.fixAll' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.showNotifications' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.
2024-12-31 13:50:14.483 [warning] [charliermarsh.ruff] Accessing a window scoped configuration for a resource is not expected. To associate 'ruff.showSyntaxErrors' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'.

We should fix those.

@MichaReiser MichaReiser added the internal An internal refactor or improvement label Dec 31, 2024
@dhruvmanila
Copy link
Member

Can you describe the steps you took to get these logs? I'm not seeing them in the channel.

@MichaReiser
Copy link
Member Author

Hmm, I didn't do anything specific other than starting VS code and opening a Python file but I'm now also unable to reproduce.

@dhruvmanila
Copy link
Member

I see these logs as well now although I see this warning from a lot of extensions. I'll re-open this and check it out later.

@dhruvmanila dhruvmanila reopened this Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

No branches or pull requests

2 participants