Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2043

Intellisense on VSCode stopped working with Pyside2 starting from Vscode 1.67 (April 2022)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.15.2
    • PySide
    • None
    • Windows 10, VSCode 1.67+, Python 3.6.8, Pyside2 == 5.15.2, shiboken2 == 5.15.2
    • Windows
    • 45318a2221 (pyside/tqtc-pyside-setup/5.15) 45318a2221 (pyside/tqtc-pyside-setup/tqtc/5.15)

    Description

      As per description in the summary, I noticed that there is some sort of problems with the stubs generated by Pyside2 that cannot be correctly read by the Pylance extension in Visual Studio Code version 1.67 and above. Using a virtual environment with python 3.6.8 and Pyside2 = 5.15.2 and shiboken2 == 5.15.2, autocompletion doesn't work at all, no suggestions of any kind are shown in VScode.

      Oddly enough I noticed that it still indeed work when editing a gui python file obtained through Ppyside2-uic.exe starting from a ui file made with QT designer. 

      Attachments

        1. main_gui.py
          3 kB
        2. main_gui.ui
          2 kB
        3. main.py
          0.2 kB
        4. mainFile.py
          1 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              adherrma Adrian Herrmann
              marco77 marco f
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes