-
Notifications
You must be signed in to change notification settings - Fork 134
Broken extension parser #1353
Description
Environment data
- VS Code version: 1.36.1
- Extension version: 2019.6.24221
- OS and version: Windows 10 Pro 1809
- Python version: 3.7.4
- Type of virtual environment used: N/A
- Relevant/affected Python packages and their versions: XXX
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"set to; more info #3977): XXX
Expected behaviour
The correct work of the parser, error detection, suggestions for quick input.
Actual behaviour
After a couple of minutes of writing the code, the Python parser hangs on one of the errors, after it it no longer detects new errors, offers no options for quick input, and so on. It seems that the module is simply turned off. The problem persists until VSC restarts.
Steps to reproduce:
idk
- Create a folder and open
- Create py file
- Write about 1-20 minutes of code and try to make a couple of errors so that the parser will notice them
My problem occurs 100% of the time and is completely independent of anything, it appears most quickly when the parser sees an error or immediately upon opening the file and trying to load the libraries, but sometimes the problem may arise out of the blue while I move away from the PC.
Video: https://youtu.be/Xyo0WYLByLI
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
log.ts:173 ERR name must not be falsy: Error: name must not be falsy
at Function.validate (c:\Users\h2o22\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:347:308)
at new b (c:\Users\h2o22\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:347:257)
at new b (c:\Users\h2o22\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:335:813)
at O (C:\Users\h2o22\.vscode\extensions\ms-python.python-2019.6.24221\out\client\extension.js:75:79946)
at Array.map (<anonymous>)
at Object.asDocumentSymbols (C:\Users\h2o22\.vscode\extensions\ms-python.python-2019.6.24221\out\client\extension.js:75:84017)
at module.exports.registerLanguageProvider.t.sendRequest.then.e (C:\Users\h2o22\.vscode\extensions\ms-python.python-2019.6.24221\out\client\extension.js:1:173205)
extensionHost.ts:201 Extension Host
extensionHost.ts:202 Debugger attached.
Guys, if you know some workaround for this problem, even to understate the module version (if this is possible), please write to me, it’s very uncomfortable to write code with this problem.