Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
76 views

I'm having issues with getting VS Code to integrate Pytest discovery, where it just hangs indefinitely on discovering tests for the workspace. I've tried about every solution, and I have a minimal ...
mightyandweakcoder's user avatar
0 votes
0 answers
111 views

Pausing or adding new breakpoints halfway during debugging in VSCode seems to make the Python Exception uncaught. The following is a minimal example to reproduce my problem. import contextlib, signal ...
hellohawaii's user avatar
  • 3,084
0 votes
0 answers
91 views

I've recently updated vscode to the most recent version, and whenever I open up a new shell or cmd it activates the venv in that directory, and that's fine and expected as before. But now it doesn't ...
Mohamed Hany's user avatar
0 votes
1 answer
53 views

Had an issue start with VSCode the last week or so, and not sure if there's just something wrong with my system, my vscode config, or if there's just a vscode bug. To start, I'm running on OSx Sequoia ...
Kyle Jastrick's user avatar
-1 votes
1 answer
83 views

I am trying to use sqlfluff linter, which is a SQL formatter and linter. In settings.json I have, among others, this: "[sql]": { "editor.defaultFormatter": &...
Nir's user avatar
  • 2,677
0 votes
0 answers
47 views

Let's assume we have this python script, set breakpoint on second line and start debugging: print(1) print(2) # set breakpoint here print(3) print(4) print(5) Debugger stops here: Now delete the ...
Kossak's user avatar
  • 1,458
2 votes
1 answer
301 views

I have a python virtual environment in /Documents and a project in /Documents/Code/Python/example. I want to use this venv in my project but I can't get the vs code python interpreter to recognize ...
user24882481's user avatar
1 vote
1 answer
225 views

Somehow I got myself into a state where python is complaining about PYTHONSTARTUP pointing to a non-existant path. From the terminal tab: % python Python 3.11.8 (v3.11.8:db85d51d3e, Feb 6 2024, 18:...
Roy Smith's user avatar
  • 2,177
0 votes
0 answers
115 views

I'm trying to make a subclass with a @classmethod that would take as arguments an instance of its superclass and kwargs for its other fields. The goal is to be able to take an object of the general ...
Patrik Drozdík's user avatar
1 vote
1 answer
633 views

In past i always made functions that get a type/class as argument and create an instance of that type, returning the instance. E.g: def CreateWidget(self, widgetType, show = True, name = '', x = 0,...
IkarusDeveloper's user avatar
0 votes
1 answer
135 views

In the VSCode Python debugger, I can right-click on numpy array or pandas DataFrame and select "View Value in Data Viewer". Is it possible to support this for a self-implemented class? I ...
Oblomov's user avatar
  • 125
-1 votes
1 answer
178 views

In vscode, I am quite confused where to change settings and where to find them. There seems at least two places: Settings and Command Palette. For a specific example, I am using vscode for Python. I ...
oldpride's user avatar
  • 1,063
0 votes
0 answers
76 views

In VSCode Portable, is there a method/setting to disable automatic expansion of folded functions (or other types of foldable blocks, I guess) on start-up? That is, if I fold a function block, close ...
silence_of_the_lambdas's user avatar
1 vote
0 answers
670 views

Since few days I have an issue with reloading when debugging flask apps. Usually, when saving changes the debugger restarts and I could work on my app. Now it still saves and reloads, but throws an ...
Joe Platano's user avatar
0 votes
1 answer
57 views

for i in range(1,5): print(i) a = input("Enter a Number") If I don't Enter anything into the Input and Rerun the File again In VSCODE Terminal, The For loop iteration is advancing. ...
Shivansh Arora's user avatar
14 votes
1 answer
3k views

Recently, code analysis tools like PyCharm and Pylance in VSCode are not picking up packages installed in editable mode (pip install -e <package_name>). This made it so I could not navigate to ...
ini's user avatar
  • 713
5 votes
3 answers
16k views

When trying to install the Python extension I get the following error: Error while installing 'Python' extension. Please check the [log](command:workbench.action.showWindowLog) for more details. The ...
Eddie Bickel's user avatar
6 votes
1 answer
7k views

While working in a multi-project (VSCode would call it multi-root) python repository the VSCode python plugin for testing fails to run all the test when choosing to run all the tests, however running ...
Rijul Gupta's user avatar
  • 1,171
3 votes
0 answers
305 views

I am trying to debug an existing set of unit tests that are run with tox. I updated my launch.json file to include the following configuration: { "module": "tox", "...
John's user avatar
  • 75
1 vote
0 answers
368 views

In PyCharm I can hit Ctrl/Cmd + O and it'll give me a modal with all methods I can override. What's the equivalent in VSCode?
Epic Programmer's user avatar
10 votes
1 answer
5k views

Pylint gives a warning whenever something like this happens: import typing SEQ_FR = typing.TypeVar("SEQ_FR") #^^^^^ gets underlined with the warning The warning is like this: Type variable ...
TNTzx's user avatar
  • 537
1 vote
1 answer
435 views

In a Python tutorial I'm following, the Python path is linked to the python.pythonPath setting in the settings.json file of Visual Studio Code. However, the python.pythonPath does not exist anymore. I ...
MLEnthusiast's user avatar
1 vote
1 answer
5k views

Before adding logging to my project, i would see all logs from libraries such as flask in the terminal console. After adding the following, i no longer see these output in the terminal - but they do ...
mike01010's user avatar
  • 6,204
6 votes
1 answer
4k views

Let's suppose that I have a project with this file structure: project_dir └── src ├── package1 │   └── module1.py └── package2 └── module2.py When I want to use some class from ...
Anton M.'s user avatar
  • 425
1 vote
0 answers
294 views

I want to search for a function name across all installed packages and also in the packages defined by python.autoComplete.extraPaths vscode setting. Vscode search panel searches only in the current ...
Mohamed's user avatar
  • 115