You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): 2020.7.96456
OS and version: Ubuntu 20.04
Python version (& distribution if applicable, e.g. Anaconda): 3.8.2
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): n/a
Relevant/affected Python packages and their versions: n/a
Relevant/affected Python-related VS Code extensions and their versions: n/a
Value of the python.languageServer setting: Pylance
Expected behaviour
No deprecation warnings.
Note: the Python 3.9 release notes encourage developers to check for DeprecationWarning, as many deprecated APIs are being removed in 3.9 and 3.10. See https://docs.python.org/3.9/whatsnew/3.9.html for details.
Actual behaviour
Terminal (Python Debug Console) contains a DeprecationWarning:
cd /home/kolbus/my-project ; env /usr/bin/python3.8 /home/kolbus/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/lib/python/debugpy/launcher 37295 -- /home/kolbus/.local/bin/pylint_runner
/home/kolbus/.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/lib/python/debugpy/../debugpy/common/compat.py:186: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
arg_names, args_name, kwargs_name, arg_defaults = inspect.getargspec(f)
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
Create a folder containing a simple Python file (even print("Hello World") is sufficient)
From the Run view, click "create a launch.json file"
Create a configuration and add PYTHONWARNINGS=default, i.e.:
Don't use inspect.getargspec on Python 2.
Close log file objects on exit.
Close the listener socket used to get endpoints info from adapter.
Run tests with Python warnings treated as errors.
Fix Django deprecation warning in test web app.
Work around pytest issues caused spaces in test names.
int19h
added a commit
to int19h/debugpy
that referenced
this issue
Sep 2, 2020
Don't use inspect.getargspec on Python 2.
Close log file objects on exit.
Close os.devnull file objects on exit.
Close the listener socket used to get endpoints info from adapter.
Fix invalid escape sequences.
Run tests with Python warnings treated as errors.
Fix Django deprecation warning in test web app.
Work around pytest issues caused spaces in test names.
Environment data
python.languageServer
setting: PylanceExpected behaviour
No deprecation warnings.
Note: the Python 3.9 release notes encourage developers to check for
DeprecationWarning
, as many deprecated APIs are being removed in 3.9 and 3.10. See https://docs.python.org/3.9/whatsnew/3.9.html for details.Actual behaviour
Terminal (Python Debug Console) contains a DeprecationWarning:
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
print("Hello World")
is sufficient)PYTHONWARNINGS=default
, i.e.:Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: