'python.defaultInterpreterPath in vscode shows as "unkonwn configuration setting"

The old python.pythonPath has been deprecated in the latest vscode 1.64.1 and replaced by python.defaultInterpreterPath. However, when I set it in projectname/.vscode/settings.json, it is greyed and shown a popup as:

unkonwn configuration setting

This still persists even after restarting vscode.

Anyone can shed some light on this issue?

Thanks



Solution 1:[1]

It may be solved now, or just remember to avoid using the "settings" key again, within a settings.json file, but a single dict, eg:

{
  "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python"
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Efren