PyCharm 2022.2.x

Released: Jul 28, 2022

Aggiornamenti in 2022.2.x

2022.2.3

Updated Oct 11, 2022

Features

  • SSH interpreter: The debugger can now access remote sources.

Fixes

  • SSH interpreter: Reopening a project no longer triggers the upload of unchanged project files or rewrites the remote file permissions.
  • SSH interpreter: Interpreter names are no longer duplicated when the interpreters are created over the same SSH host.
  • Windows: Fixed several issues related to how PyCharm handles non-ASCII characters.
  • Opening projects with the MicroPython plugin in PyCharm no longer causes errors.
  • Creating a new React project from the welcome screen now works as expected.
  • Console: Due to a recent change in Matplotlib 3.6.0, running code resulting in plot displays led to an error. This has been fixed.

2022.2.2

Updated Sep 15, 2022

Features

  • For the 'attrs' package, PyCharm now recognizes modern APIs such as 'attrs.define', 'attrs.mutable' and 'attrs.frozen'.
  • PyCharm now recognizes references to class attributes in 'docstrings', most notably in definitions of data classes and named tuples.
  • Improved the 'Rename' refactoring for 'dataclass' attributes. Renaming them in the constructor call will now update the definition and vice versa. This also includes renaming attributes from 'docstrings'.
  • New Django projects on SSH or WSL are now created with a specific directory structure and the necessary environment.

Fixes

  • The Python console now works correctly for projects where a remote interpreter was set up with the previous PyCharm version.
  • Introspection for interpreters located in Docker images with non-root users now works as expected.
  • Parameterized “type” built-in is now recognized inside type hints.
  • enum.auto() calls are no longer reported as requiring an argument.
  • The Markdown auto-formatting action now correctly formats Markdown files with tables.
  • The IDE now shows a balloon notification in the background for pre-commit checks that finish with failing results.
  • Debugging no longer slows down when the watch return values option is enabled.

2022.2

Updated Jul 28, 2022

Features

  • Python 3.11
    • Code insight for exception groups and except* operator - PyCharm will now warn you about forbidden combinations, like except and except* operators in the same try statement, or continue, break, and return operators inside except* clauses. Trying to catch an ExceptionGroup in a try* clause will also raise a warning.
    • Code insight for marking individual TypedDict items as required or potentially missing - Python 3.11 adds the ability to mark individual keys of TypedDict as Required or NotRequired, so there’s no need to create complex class hierarchies using the total parameter. PyCharm now understands Required[ ] and NotRequired[ ] notations and provides code insight for them.
    • Initial support for Variadic Generics - PyCharm now recognizes star expressions in index operations (within brackets), and *args: *Ts in function definitions. If you’re not using Python 3.11, the IDE will remind you that variadic generics are not yet available.
  • HTTP Client
    • Select a run environment before run - Added a convenient way to select a run environment using an icon on the gutter.
    • Progress bar for the Response view - To help you track the downloading process, a progress bar has been added to the Response view.
    • Support for WebSocket endpoints in the HTTP client - PyCharm now supports WebSocket connections, allowing you to create requests, and send and receive messages.
    • Further improvements:
      • Support for GraphQL endpoints in the HTTP Client - Added support for GraphQL requests in the HTTP Client.
  • UX
    • New UI for setting up remote interpreters - There is a new wizard for setting up interpreters at remote targets (WSL, SSH, Docker, Docker Compose, Vagrant). It makes the setup process more structured and easy to follow.
    • Run current file - To instantly run and debug a single file without a dedicated run configuration, use Run Current File, which is available from the Run/Debug widget. It features a secondary menu that offers applicable runners along with the Run with Parameters action, which lets you tune the run configuration parameters before running the file.
    • Code completion settings available from the code completion popup - You can now access Code Completion Settings and configure your preferences right from the kebab (three vertical dots) menu button in the code completion popup.
    • Enhanced configuration for highlighting inspections - You can now configure the way inspections appear in the editor without changing their severity level. When you want to change the inspection highlighting style, you can do so using the new Highlighting in editor drop-down menu, which conveniently shows all available options.
    • Clickable URLs in JSON, YAML, and .properties string values - JSON, YAML, and .properties files now feature automatically inserted web references inside values that start with http:// and https://. You can easily open these links in a web browser with one click, or you can generate a request in the HTTP client from the Context Actions menu (Alt + Enter).
    • Further improvements:
      • Cloning repository progress bar on the Welcome screen - The Cloning repository progress bar now appears on the IDE’s Welcome screen and is shown right in the projects list, which makes it clearer and easier to use.
      • New setting to control the insertion of automatic parentheses - You can now choose whether you want PyCharm to automatically insert parentheses on code completion or not.
      • Added a new notification panel for tuning file type associations - When a file is explicitly associated with plain text by mistake, PyCharm now notifies you about the erroneous file type association and suggests resetting it right from the editor, without you having to do it manually in Settings / Preferences.
      • Merge All Project Windows action on Apple macOS - For macOS, the ability to organize your working space by merging all opened project windows into one has been added, turning each window into its own tab.
  • Initial support for PyScript
    • Code insight inside <py-script> - The <py-script> tag lets you execute multiline Python scripts and interact with the page. PyCharm now recognizes Python syntax, including NumPy and Matplotlib libraries, for code inside <py-script> tags in HTML files and provides proper code completion and highlighting for it.
    • Syntax highlighting and code completion for tags and their attributes - Code completion and syntax highlighting are now available for PyScript tags such as <py-env> for declaring dependencies and <py-repl> for creating REPL components.
    • Support for PyScript in the built-in browser - You can now preview your PyScript files directly in the PyCharm built-in browser in the same way you do for HTML files – with changes to the script displayed in the browser on each save.
  • Jupyter Notebooks
    • Resizable image outputs - Added the ability to resize image outputs by simply dragging the output’s bottom border. This should improve the readability of such outputs. For your convenience, the bottom border will be made more noticeable.
    • New cell copy-pasting actions on the toolbar - You will now be able to cut, copy, and paste cells with the respective actions (buttons and icons) right from the Jupyter editor toolbar.
  • Docker
    • Upload local Docker image to Minikube and other connections - It is now possible to easily copy images from one Docker daemon to another using the new Copy Docker Image action, which saves the image to a file and then pushes it to the chosen connection.
    • Docker connection options for different docker daemons - PyCharm now integrates with Colima and Rancher to support more options for establishing connections to a Docker daemon.
    • Further improvements:
      • Docker auto-connection at IDE restart - PyCharm now automatically connects to Docker after you restart the IDE.
  • Database management
    • Option to import multiple CSV files - Enhanced the file importing process by adding the ability to import multiple CSVs into new or existing database tables.
    • Playground and Script resolve modes - To ensure that database objects in SQL scripts are resolved more precisely, two new resolve modes have been added: Playground and Script. In Playground mode, objects are resolved according to the context. It is now the default for query consoles. In Script mode, the beginning of the file is resolved to the context, but any SET CURRENT SCHEMA statements in the script change the context for the resolve. Script mode is now the default for local files.
    • Further improvements:
      • Basic DB support for DuckDB, Mimer SQL, and Apache Ignite - PyCharm now offers basic support for 3 additional databases: DuckDB, Mimer SQL, and Apache Ignite.
      • New Modify UI - In this release, all of a table’s child objects can be added and edited using the new Modify UI. The old UI will remain available via the context menu.