seanwu1105 / vscode-qt-for-python

Qt for Python (PySide and PyQt) extension for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=seanwu.vscode-qt-for-python
MIT License
186 stars 15 forks source link

Unable to compile ui file #310

Closed 1604042736 closed 1 year ago

1604042736 commented 1 year ago

When I click "Compile Qt UI File(uic)", there is no response.

This is my config. "pyuic5" is in my environment variable. Snipaste_2023-07-27_07-21-37

seanwu1105 commented 1 year ago

Please provide your environment and extension output.

1604042736 commented 1 year ago

I use windows10 and python 3.11.2. I can't find the relevant output. "pyuic5" can run in the terminal.

seanwu1105 commented 1 year ago

The output can be found in the same area as the terminal. The tab is called "Output".

It is likely you do not enable the same Python environment as your terminal so the extension could not locate pyuic5. Do you select the correct Python interpreter?

1604042736 commented 1 year ago

I still can't find any relevant output. I'm sure I select the correct Python interpreter. (I use PyQt5) But after I reinstall, "Qt for Python" appeared in the output and the function can be used normally. Before this, "Qt for Python" was not included in the output and other functions cannot be used either.

seanwu1105 commented 1 year ago

Glad the reinstallation solves the problem.