You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(from a project generation perspective, I'm using about as vanilla setup as possible -- "no" to pretty well all questions except "y" for Windows and "y" for Whitenoise; no cloud provider, using GitHub as CI tool).
When I open the project up in VSCode and setup a path to dmypy.exe correctly (as found in my virtual environment folder) I get the following error raised by VSCode in the output panel:
Mypy extension activated, version 0.2.1
Registering listener for interpreter changed event
Listener registered
...
Mypy settings changed: c:\Users\MYUSERNAME\Development\Navigator\nav
[3] Check workspace: c:\Users\MYUSERNAME\Development\Navigator\nav
[3] Received python path from Python extension: c:\Users\MYUSERNAME\Development\Navigator\.venv\Scripts\python.exe
[3] Running dmypy in folder c:\Users\MYUSERNAME\Development\Navigator\nav
'c:\Users\MYUSERNAME\Development\Navigator\nav\..\.venv\scripts\dmypy.exe' --status-file 'c:\Users\MYUSERNAME\AppData\Roaming\Code\User\workspaceStorage\0e535676e284b08a0f096efc595261d2\matangover.mypy\dmypy-25dcc9f6aa1070ea6d08209fdd5961c72b27b416.json' run --log-file 'c:\Users\MYUSERNAME\AppData\Roaming\Code\User\workspaceStorage\0e535676e284b08a0f096efc595261d2\matangover.mypy\dmypy-25dcc9f6aa1070ea6d08209fdd5961c72b27b416.log' -- . --show-column-numbers --no-error-summary --no-pretty --no-color-output --python-executable 'c:\Users\MYUSERNAME\Development\Navigator\.venv\Scripts\python.exe'
[3] stdout:
Daemon started
Restarting: configuration changed
Daemon stopped
Daemon started
[3] stderr:
Response: {'restart': 'configuration changed', 'platform': 'win32', 'python_version': '3_9', 'roundtrip_time': 0.5840277671813965}
[3] Error running mypy in c:\Users\MYUSERNAME\Development\Navigator\nav: mypy failed with error: "Response: {'restart': 'configuration changed', 'platform': 'win32', 'python_version': '3_9', 'roundtrip_time': 0.5840277671813965}
I'm not quite sure how to further debug this issue ("configuration changed" isn't turning up relevant google results). What I know is that this extension works for other projects that I've manually added mypy to.
I'm not sure who exactly I should be raising my issue to -- this VSCode extension, mypy, or the Django Cookiecutter folks, but thought I'd start here. Any advice or direction would be appreciated! Thanks in advance.
Update: Still getting the error, but can confirm that mypy works fine when called via command line:
(.venv) PS C:\Users\MYUSERNAME\Development\Navigator\nav> mypy .
config\urls.py:19: error: Unsupported operand types for + ("List[object]" and "List[URLPattern]")
config\urls.py:46: error: Incompatible types in assignment (expression has type "List[URLResolver]", variable has type "List[object]")
config\urls.py:46: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
config\urls.py:46: note: Consider using "Sequence" instead, which is covariant
config\urls.py:46: error: Unsupported operand types for + ("List[URLResolver]" and "List[object]")
Found 3 errors in 1 file (checked 39 source files)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Hello! I've created a project using Django Cookiecutter, following the steps listed here:
https://cookiecutter-django.readthedocs.io/en/latest/developing-locally.html
(from a project generation perspective, I'm using about as vanilla setup as possible -- "no" to pretty well all questions except "y" for Windows and "y" for Whitenoise; no cloud provider, using GitHub as CI tool).
When I open the project up in VSCode and setup a path to dmypy.exe correctly (as found in my virtual environment folder) I get the following error raised by VSCode in the output panel:
Here is my .vscode/settings.json file:
I'm not quite sure how to further debug this issue ("configuration changed" isn't turning up relevant google results). What I know is that this extension works for other projects that I've manually added mypy to.
I'm not sure who exactly I should be raising my issue to -- this VSCode extension, mypy, or the Django Cookiecutter folks, but thought I'd start here. Any advice or direction would be appreciated! Thanks in advance.
Update: Still getting the error, but can confirm that mypy works fine when called via command line:
The text was updated successfully, but these errors were encountered: