Python v2018.9.0 Release Notes
Release Date: 2018-10-09 // over 5 years ago-
Thanks
Thanks to the following projects which we fully rely on to provide some of our features:
- isort 4.3.4
- jedi 0.12.0 and parso 0.2.1
- ๐ Microsoft Python Language Server 2018.9.0
- ๐ ptvsd 4.1.3
- exuberant ctags (user-installed)
- rope (user-installed)
Also thanks to the various projects we provide integrations with which help ๐ make this extension useful:
- ๐ Debugging support: Django, Flask, gevent, Jinja, Pyramid, PySpark, Scrapy, Watson
- Formatting: autopep8, black, yapf
- ๐ Interpreter support: conda, direnv, pipenv, pyenv, venv, virtualenv
- ๐ Linting: bandit, flake8, mypy, prospector, pylint, pydocstyle, pylama
- โ Testing: nose, pytest, unittest
And finally thanks to the Python development team and community for creating a fantastic programming language and community to be a part of!
โจ Enhancements
๐ 1. Adds support for code completion in the debug console window. (#1076)
- Auto activate Python Environment in terminals (disable with
"python.terminal.activateEnvironment": false
). (#1387) ๐ 1. Add support for activation ofpyenv
environments in the Terminal. (#1526) ๐ 1. Display a message with options when user selects the default macOS Python interpreter. (#1689) ๐ง 1. Add debug configuration snippet for modules for the debugger. (#2175) - Search for python interpreters in all paths found in the
PATH
/Path
environment variable. (#2398) - Add telemetry to download, extract, and analyze, phases of the Python Language Server. (#2461)
- The
pvsc-dev-ext.py
script now capturesstderr
for more informative exceptions when execution fails. (#2483) - Display notification when attempting to debug without selecting a python interpreter. (#2494) โก๏ธ 1. Add support for out of band updates to the language server. (#2580)
- Ensure status bar with interpreter information takes priority over other items. (#2617)
- Add Python Language Server version to the survey banner URL presented to some users. (#2630)
- Language server now provides rename functionality. (#2650) ๐ 1. Search for default known paths for conda environments on windows. (#2794 ๐ 1. Add bandit to supported linters. (thanks Steven Demurjian) (#2775)
๐ Fixes
- Improvements to the display format of interpreter information in the list of interpreters.
(#1352)
๐ 1. Deprecate the use of the setting
python.autoComplete.preloadModules
. Recommendation is to utilize the new language server (change the setting"python.jediEnabled": false
). (#1704) - Add a new
python.condaPath
setting to use if conda is not found onPATH
. (#1944) - Ensure code is executed when the last line of selected code is indented. (#2167)
- Stop duplicate initializations of the Python Language Server's progress reporter.
(#2297)
๐ 1. Fix the regex expression to match MyPy linter messages that expects the file name to have a
.py
extension, that isn't always the case, to catch any filename. E.g., .pyi files that describes interfaces wouldn't get the linter messages to Problems tab. (#2380) โก๏ธ 1. Do not use variable substitution when updatingpython.pythonPath
. This matters because VS Code does not do variable substitution in settings values. (#2459) - Use a python script to launch the debugger, instead of using
-m
which requires changes to thePYTHONPATH
variable. (#2509) - Provide paths from
PYTHONPATH
environment variable to the language server, as additional search locations of Python modules. (#2518) - Fix issue preventing debugger user survey banner from opening. (#2557)
- Use folder name of the Python interpreter as the name of the virtual environment. (#2562) ๐ 1. Give preference to bitness information retrieved from the Python interpreter over what's been retrieved from Windows Registry. (#2563)
- Use the environment folder name for environments without environment names in the Conda Environments list file.
(#2577)
โก๏ธ 1. Update environment variable naming convention for
SPARK_HOME
, when stored insettings.json
. (#2628) โ 1. Fix debug adapterAttach
test. (#2655) - Fix colon-triggered block formatting. (#2714) ๐ 1. Use full path to activate command in conda environments on windows when python.condaPath is set. (#2753)
Code Health
๐ท 1. Fix broken CI on Azure DevOps. (#2549) โฌ๏ธ 1. Upgraded our version of
request
to2.87.0
. (#2621)