We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue Type: Bug
For some reason, Issue #14107 has resurfaced.
Expected: Testing for python works and Output tab has better debug information.
Actual: Testing does not run and Output tab does not provide information that can be used to debug problem.
git clone
pyvistaqt
pip install
requirements_*.txt
py -m pip install -e .
pytest-mypy-plugins
pytest-mypy-testing
venv
Running pytest in terminal simply outputs
================================== test session starts ======================================== platform win32 -- Python 3.8.10, pytest-7.1.2, pluggy-1.0.0 PySide6 6.3.1 -- Qt runtime 6.3.1 -- Qt compiled 6.3.1 rootdir: C:\Users\hendra11\Code\external\pyvistaqt, configfile: pytest.ini plugins: cov-3.0.0, memprof-0.2.0, mypy-plugins-1.9.3, qt-4.1.0, sphinx-0.4.0 collected 42 items tests\test_plotting.py
i.e. testing won't run, and the Test Explorer output window shows:
Running tests (pytest): %USERPROFILE%\Code\external\pyvistaqt Running test with arguments: --rootdir %USERPROFILE%\Code\external\pyvistaqt --override-ini junit_family=xunit1 --junit-xml=%LOCALAPPDATA%\Temp\tmp-47320qoETK7OKy2kS.xml Current working directory: %USERPROFILE%\Code\external\pyvistaqt Workspace directory: %USERPROFILE%1\Code\external\pyvistaqt Run completed, parsing output Error while running tests: pyvistaqt TypeError: Cannot read properties of null (reading 'testsuites') Error while running tests: TypeError: Cannot read properties of null (reading 'testsuites') Finished running tests!
python.languageServer
Python
Output
View
Running tests (pytest): %USERPROFILE%\Code\external\pyvistaqt Running test with arguments: --rootdir %USERPROFILE%\Code\external\pyvistaqt --override-ini junit_family=xunit1 --junit-xml=%LOCALAPPDATA%\Temp\tmp-47320qoETK7OKy2kS.xml Current working directory: %USERPROFILE%\Code\external\pyvistaqt Workspace directory: %USERPROFILE%\Code\external\pyvistaqt Run completed, parsing output Error while running tests: pyvistaqt TypeError: Cannot read properties of null (reading 'testsuites') Error while running tests: TypeError: Cannot read properties of null (reading 'testsuites') Finished running tests! > Test run finished at 6/26/2022, 2:14:48 PM <
languageServer: "Pylance" linting • flake8Enabled: true • flake8Path: "${workspaceFolder}/.venv/Scripts/flake8.exe" • mypyArgs: [ "--config-file", "mypy.ini" ] • mypyEnabled: true • mypyPath: "${workspaceFolder}/.venv/Scripts/mypy.exe" • pylintPath: "${workspaceFolder}/.venv/Scripts/pylint.exe" formatting • provider: "black" • blackArgs: line-length = 72 skip-string-normalization = true target-version = ["py38"] exclude='\.eggs|\.git|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist|node_modules' testing • pytestArgs: junit_family=legacy filterwarnings = error ignore::ResourceWarning # bogus numpy ABI warning (see numpy/#432) ignore:.*numpy.dtype size changed.*:RuntimeWarning ignore:.*numpy.ufunc size changed.*:RuntimeWarning # from usage of numpy_to_vtk: ignore:.*`np.bool` is a deprecated alias.*:DeprecationWarning ignore:.*`np.int` is a deprecated alias.*:DeprecationWarning ignore:.*`np.float` is a deprecated alias.*:DeprecationWarning ignore:.*`np.object` is a deprecated alias.*:DeprecationWarning ignore:.*`np.long` is a deprecated alias:DeprecationWarning ignore:.*Converting `np\.character` to a dtype is deprecated.*:DeprecationWarning addopts = --mypy-ini-file mypy_test.ini • pytestEnabled: true • pytestPath: "${workspaceFolder}/.venv/Scripts/pytest.exe"
VS Code version: Code 1.68.1 (30d9c6c, 2022-06-14T12:48:58.283Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No
(3 theme extensions excluded)
vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 vsclangdc:30486549
The text was updated successfully, but these errors were encountered:
@chrmarti Moving this to microsoft/vscode-python as it seems to be an issue with the python extension. See Issue #19367
microsoft/vscode-python
Sorry, something went wrong.
chrmarti
No branches or pull requests
Issue Type: Bug
Behaviour
For some reason, Issue #14107 has resurfaced.
Expected vs. Actual
Expected: Testing for python works and Output tab has better debug information.
Actual: Testing does not run and Output tab does not provide information that can be used to debug problem.
Steps to reproduce:
git clone
thepyvistaqt
repo,pip install
therequirements_*.txt
files, and do local editable installpy -m pip install -e .
pytest-mypy-plugins
and run tests (Tests run in both terminal and Test Explorer)pytest-mypy-testing
and run tests, but tests now no longer run in terminal nor Test Explorerpytest-mypy-testing
does not solve problemvenv
and dependencies does not solve problemRunning pytest in terminal simply outputs
i.e. testing won't run, and the Test Explorer output window shows:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
VS Code version: Code 1.68.1 (30d9c6c, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (114)
(3 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: