skip to Main Content

Whenever I open VSCode and open a remote session to our dev server over SSH I’m greeted with this message:

You have deprecated linting or formatting settings for Python.

In the logs I see these errors:

[error] Following setting is deprecated: "python.linting.flake8Enabled"
[error] All settings starting with "python.linting." are deprecated and can be removed from settings.
[error] Linting features have been moved to separate linter extensions.
[error] See here for more information: https://code.visualstudio.com/docs/python/linting

I tried to disable and re-enable Flake8 but that didn’t help. How do I remove the linting stuff from settings as it recommends? It’s not a biggie but it is a little annoying.

2

Answers


  1. Issue: Deprecated settings in VSCode.

    Fix:

    1. Open VSCode user settings JSON.
    2. Delete the grayed out (deprecated) settings.
    3. Save and restart VSCode.
    Login or Signup to reply.
  2. Just in case somebody else stumble across this. I was having the same annoying error message, but no grayed out lines in neither the user os system setting.

    A find . -type f -name "*.*" -exec grep "python.linting" {} + outlined the presence of another general setting files in ./.vscode/settings.json that apparently was not picked by the VS code. Upon deleting the incriminated lines the error message disappeared.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search