Closed jensmalmgren closed 4 years ago
I never thought that hasattr()
must be guarded as well, but per its definition, that's true - it is defined as getattr()
+ except AttributeError
, so if getattr()
raises something else, it propagates. @fabioz, I guess all uses of hasattr()
in eval/children code has to be guarded.
I'll take a look at that.
Hi I am using Visual Studio Code, full version see below. I am using the extension for Python version 2020.1.58038.
Expected behavior:
Not crashing when about to display a context menu in the debugger.
Actual behavior:
While hovering over a specific variable the debugger stops with an error message (full message below). Curious as I am I looked into the problem and found that there is an uncaught exception in get_names of pydevd_resolver.py.
At line 167 I found this original code:
When I change it to the following the debugger stops crashing:
This is my version of Visual Studio Code
Version: 1.42.0 (user setup) Commit: ae08d5460b5a45169385ff3fd44208f431992451 Date: 2020-02-06T10:51:34.058Z Electron: 6.1.6 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18363
I am creating a program converting DOCX to HTML in Python and I am using python-docx for this. python-docx version 0.8.10
In the code at this line when hovering over child_Element the debugger crasched:
for child_Element in doc_DocX.element.body: if (child_Element.tag == '{http://schemas.openxmlformats.org/wordprocessingml/2006/main}tbl'): ...
LOGS Here is the full list of the error message:
(end of error message)
If this issue was reported at the wrong place or the wrong way please bear with me because I am new to this. Have a nice day.