Python v2018.10.0 Release Notes

Release Date: 2018-11-08 // over 5 years ago
  • Thanks

    Thanks to the following projects which we fully rely on to provide some of our features:

    Also thanks to the various projects we provide integrations with which help ๐Ÿ‘‰ make this extension useful:

    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. Add support for code completion in the debug console window. (#1076)

    1. Add a new simple snippet for if __name__ == '__main__': block. The snippet can be accessed by typing __main__ (thanks R S Nikhil Krishna) (#2242)
    2. Add Python Interactive mode for data science. (#2302)
    3. Added a debugger setting to show return values of functions while stepping. (#2463)
    4. Enable on-type formatting from language server (#2690) ๐Ÿ‘• 1. Add bandit to supported linters. (thanks Steven Demurjian Jr.) (#2775) ๐Ÿ‘ 1. Ensure python.condaPath supports paths relative to Home. E.g. "python.condaPath":"~/anaconda3/bin/conda". (#2781) ๐Ÿš€ 1. Updated the language server to 0.1.57/2018.11.0 (from 2018.10.0) and the debugger to 4.2.0 (from 4.1.3). Highlights include:
      • Language server
      • Debugger
        • Add support for sub-process debugging (set "subProcess": true in your launch.json to use).
        • Add support for pyside2. ๐Ÿ“ฆ 1. Add localization of strings. Localized versions are specified in the package.nls.<locale>.json files. (#463)
    5. Clear cached list of interpreters when an interpeter is created in the workspace folder (this allows for virtual environments created in one's workspace folder to be detectable immediately). (#656) ๐Ÿ‘• 1. Pylint is no longer enabled by default when using the language server. Users that have not configured pylint but who have installed it in their workspace will be asked if they'd like to enable it. (#974)

    ๐Ÿ›  Fixes

    ๐Ÿ‘ 1. Support "conda activate" after 4.4.0. (#1882) ๐Ÿ“ฆ 1. Fix installation of codna packages when conda environment contains spaces. (#2015) ๐Ÿ‘ 1. Ensure python.formatting.blackPath supports paths relative to Home. E.g. "python.formatting.blackPath":"~/venv/bin/black". (#2274) โœ… 1. Correct errors with timing, resetting, and exceptions, related to unittest during discovery and execution of tests. Re-enable unittest.test suite. (#2692)

    1. Fix colon-triggered block formatting. (#2714) ๐Ÿ›  1. Ensure relative paths to python interpreters in python.pythonPath of settings.json are prefixed with ./ or .\\ (depending on the OS). (#2744)
    2. Give preference to PTSVD in current path. (#2818) ๐ŸŽ 1. Fixed a typo in the Python interpreter selection balloon for macOS. (thanks Joe Graham) (#2868) ๐Ÿš€ 1. Updated the language server to 0.1.57/2018.11.0 (from 2018.10.0) and the debugger to 4.2.0 (from 4.1.3). Highlights include:
      • Language server
        • Completions on generic containers work (e.g. x: List[T] now have completions for x, not just x[]).
        • Fixed issues relating to Go to Definition for from ... import statements.
        • None is no longer flagged as undefined.
        • BadSourceException should no longer be raised.
        • Fixed a null reference exception when handling certain function overloads.
      • Debugger
        • Properly deal with handled or unhandled exception in top level frames.
        • Any folder ending with site-packages is considered a library.
        • Treat any code not in site-packages as user code.
        • Handle case where no completions are provided by the debugger.

    Code Health

    ๐Ÿšš 1. Remove test-specific code from configSettings.ts class. (#2678) โœ… 1. Add a unit test for the MyPy output regex. (#2696) โšก๏ธ 1. Update all npm dependencies to use the caret operator. (#2746) ๐Ÿšš 1. Move contents of the folder src/utils into src/client/common/utils. (#2748) ๐Ÿšš 1. Moved languageServer-related files to a languageServer folder. (#2756) ๐Ÿ‘ท 1. Skip known failing tests for specific OS and Python version combinations to get CI running cleanly. (#2795)

    1. Move the linting error code out of the linting message and let VS Code manage it in the Problems panel (Thanks Nafly Mohammed). (#2815) ๐Ÿšš 1. Remove code related to the old debugger. (#2828) โฌ†๏ธ 1. Upgrade Gulp to 4.0.0. (#2909) ๐Ÿšš 1. Remove pre-commit hooks. (#2963) โœ… 1. Only perform Black-related formatting tests when the current Python-version supports it. (#2999) ๐Ÿšš 1. Move language server downloads to the CDN. (#3000) ๐Ÿ“Œ 1. Pin extension to a minimum version of the language server. (#3125)