PTVS
PTVS copied to clipboard
Django functions in context menu can only be used once
Describe the bug When selecting Django commands from the Python contextual menu in a Django project, only one of these commands (Check, Make Migration, Migrate etc) can be run. The Django Management Console window opens, and the command is run successfully. After that, subsequent commands have no effect. The console window must be closed. Then a new django command can be run.
Steps to Reproduce
- Run any of the Python Django commands from the contextual menu.
- Try and run any of them for a second time. It will fail.
- Close the management console output window.
- Try again. It will work.
- Try again. It will fail.
- Close management console window.
- Try again. It will work. etc etc
Expected behavior Commands should work every time without having to manually close the management console window every time.
Configuration information (If you are providing a diagnostics file (see below), skip this section)
VS Version:
PTVS version: Microsoft Visual Studio Community 2022 (64-bit) - Version 17.0.4
Python version:
Python - Django support 17.0.21293.2
Provides templates and integration for the Django web framework.
Python - Profiling support 17.0.21293.2
Profiling support for Python projects.
Python - VC Project Support 17.0.21153.2
Provides support for launching C++ projects with Python debugging enabled.
Python with Pylance 17.0.21293.2
Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.```
Python version: 3.8, 3.9, 3.10 all tested and confirmed affected.