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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated 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)

      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. 

        1. main_gui.py
          3 kB
        2. main_gui.ui
          2 kB
        3. main.py
          0.2 kB
        4. mainFile.py
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes