Extension version (available under the Extensions sidebar): 2018.4.0
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): Anaconda
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): fresh environment configured with conda create -n testenv python=3.6 pyqt pylint
Relevant/affected Python packages and their versions: see listing below
Actual behavior
Using a minimal configuration, pylint seems to mishandle installed modules. While respecting the .pylintrc file, pylint still raises errors for installed modules. Running pylint manually - within the same environment - correctly finds the installed modules.
Expected behavior
Running pylint on save should produce the same results as when run manually from within the selected environment (compare output listed below, highlighted with ▶️ )
Steps to reproduce:
Set up environment as indicated above
Create a new folder with a minimal .pylintrc containing
[MASTER]
extension-pkg-whitelist=PyQt5
Create a minimal python file ("run.py") requiring PyQt5:
import sys
from PyQt5.QtWidgets import QApplication, QWidget
4. Open the folder via the "Open Folder" command in VSCode and wait for environments to update (no longer display "cached"
5. Select the newly created "testenv" via select linter
6. Run pylint via "run linting" or by saving
7. Verify that the application actually works via F5 -> "python"
8. Create a python command line via "Python: Create terminal"
9. Run "pylint run.py"
## Logs
Packages installed with conda
Package plan for installation in environment D:\Anaconda3\envs\testenv:
PS C:\Users*\Desktop\test_folder> pylint run.py
Using config file C:\Users*\Desktop\test_folder.pylintrc
***** Module run
C: 1, 0: Missing module docstring (missing-docstring)
C: 4, 0: Constant name "app" doesn't conform to UPPER_CASE naming style (invalid-name)
C: 5, 0: Constant name "mw" doesn't conform to UPPER_CASE naming style (invalid-name)
Your code has been rated at 5.00/10 (previous run: 5.00/10, +0.00)
▶️ ** Output for `Python` in the `Output` panel**
##########Linting Output - pylint##########
Using config file c:\Users***\Desktop\test_folder.pylintrc
***** Module run
1,0,convention,C0111:Missing module docstring
2,0,error,E0611:No name 'QApplication' in module 'PyQt5.QtWidgets'
2,0,error,E0611:No name 'QWidget' in module 'PyQt5.QtWidgets'
4,0,convention,C0103:Constant name "app" doesn't conform to UPPER_CASE naming style
5,0,convention,C0103:Constant name "mw" doesn't conform to UPPER_CASE naming style
Your code has been rated at -11.67/10 (previous run: -3.33/10, -8.33)
Output from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`)
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'document' of undefined
at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:19:35)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90)
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at e.$acceptModelChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:362)
at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894)
at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612)
at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682)
at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451)
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:44
mainThreadExtensionService.ts:43 [njpwerner.autodocstring]Cannot read property 'document' of undefined
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'document' of undefined
at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:19:35)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90)
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at e.$acceptModelChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:362)
at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894)
at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612)
at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682)
at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451)
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:44
mainThreadExtensionService.ts:43 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
e._doInvokeHandler @ rpcProtocol.ts:265
e._invokeHandler @ rpcProtocol.ts:250
e._receiveRequest @ rpcProtocol.ts:196
e._receiveOneMessage @ rpcProtocol.ts:178
(anonymous) @ rpcProtocol.ts:111
(anonymous) @ rpcProtocol.ts:307
e.fire @ event.ts:140
(anonymous) @ ipc.net.ts:81
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90)
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at e.$acceptDirtyStateChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:127)
at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894)
at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612)
at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682)
at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451)
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:44
e._doInvokeHandler @ rpcProtocol.ts:265
e._invokeHandler @ rpcProtocol.ts:250
e._receiveRequest @ rpcProtocol.ts:196
e._receiveOneMessage @ rpcProtocol.ts:178
(anonymous) @ rpcProtocol.ts:111
(anonymous) @ rpcProtocol.ts:307
e.fire @ event.ts:140
(anonymous) @ ipc.net.ts:81
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
mainThreadExtensionService.ts:43 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
e._doInvokeHandler @ rpcProtocol.ts:265
e._invokeHandler @ rpcProtocol.ts:250
e._receiveRequest @ rpcProtocol.ts:196
e._receiveOneMessage @ rpcProtocol.ts:178
(anonymous) @ rpcProtocol.ts:111
(anonymous) @ rpcProtocol.ts:307
e.fire @ event.ts:140
(anonymous) @ ipc.net.ts:81
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90)
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at e.$acceptDirtyStateChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:127)
at e.$acceptModelSaved (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:646:830)
at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894)
at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612)
at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682)
at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451)
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
Environment data:
conda create -n testenv python=3.6 pyqt pylint
Actual behavior
Using a minimal configuration, pylint seems to mishandle installed modules. While respecting the .pylintrc file, pylint still raises errors for installed modules. Running pylint manually - within the same environment - correctly finds the installed modules.
Expected behavior
Running pylint on save should produce the same results as when run manually from within the selected environment (compare output listed below, highlighted with ▶️ )
Steps to reproduce:
.pylintrc
containingapp = QApplication(sys.argv) mw = QWidget() mw.show() sys.exit(app.exec_())
Package plan for installation in environment D:\Anaconda3\envs\testenv:
The following NEW packages will be INSTALLED:
PS C:\Users*\Desktop\test_folder> pylint run.py Using config file C:\Users*\Desktop\test_folder.pylintrc ***** Module run C: 1, 0: Missing module docstring (missing-docstring) C: 4, 0: Constant name "app" doesn't conform to UPPER_CASE naming style (invalid-name) C: 5, 0: Constant name "mw" doesn't conform to UPPER_CASE naming style (invalid-name)
Your code has been rated at 5.00/10 (previous run: 5.00/10, +0.00)
##########Linting Output - pylint########## Using config file c:\Users***\Desktop\test_folder.pylintrc ***** Module run 1,0,convention,C0111:Missing module docstring 2,0,error,E0611:No name 'QApplication' in module 'PyQt5.QtWidgets' 2,0,error,E0611:No name 'QWidget' in module 'PyQt5.QtWidgets' 4,0,convention,C0103:Constant name "app" doesn't conform to UPPER_CASE naming style 5,0,convention,C0103:Constant name "mw" doesn't conform to UPPER_CASE naming style
Your code has been rated at -11.67/10 (previous run: -3.33/10, -8.33)
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'document' of undefined at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:19:35) at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90) at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496) at e.$acceptModelChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:362) at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894) at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612) at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682) at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451) at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384 at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463 at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119 at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496) at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:44
mainThreadExtensionService.ts:43 [njpwerner.autodocstring]Cannot read property 'document' of undefined
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'document' of undefined
at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:19:35)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90)
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at e.$acceptModelChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:362)
at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894)
at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612)
at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682)
at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451)
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:44
mainThreadExtensionService.ts:43 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
e._doInvokeHandler @ rpcProtocol.ts:265
e._invokeHandler @ rpcProtocol.ts:250
e._receiveRequest @ rpcProtocol.ts:196
e._receiveOneMessage @ rpcProtocol.ts:178
(anonymous) @ rpcProtocol.ts:111
(anonymous) @ rpcProtocol.ts:307
e.fire @ event.ts:140
(anonymous) @ ipc.net.ts:81
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90)
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at e.$acceptDirtyStateChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:127)
at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894)
at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612)
at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682)
at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451)
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:44
e._doInvokeHandler @ rpcProtocol.ts:265
e._invokeHandler @ rpcProtocol.ts:250
e._receiveRequest @ rpcProtocol.ts:196
e._receiveOneMessage @ rpcProtocol.ts:178
(anonymous) @ rpcProtocol.ts:111
(anonymous) @ rpcProtocol.ts:307
e.fire @ event.ts:140
(anonymous) @ ipc.net.ts:81
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
mainThreadExtensionService.ts:43 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ mainThreadExtensionService.ts:43
e._doInvokeHandler @ rpcProtocol.ts:265
e._invokeHandler @ rpcProtocol.ts:250
e._receiveRequest @ rpcProtocol.ts:196
e._receiveOneMessage @ rpcProtocol.ts:178
(anonymous) @ rpcProtocol.ts:111
(anonymous) @ rpcProtocol.ts:307
e.fire @ event.ts:140
(anonymous) @ ipc.net.ts:81
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560
mainThreadExtensionService.ts:44 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (C:\Users*.vscode\extensions\njpwerner.autodocstring-0.2.1\out\src\extension.js:13:90)
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at e.$acceptDirtyStateChanged (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:647:127)
at e.$acceptModelSaved (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:646:830)
at e._doInvokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:894)
at e._invokeHandler (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:598:612)
at e._receiveRequest (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:682)
at e._receiveOneMessage (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:597:451)
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:596:384
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:599:463
at d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:119
at e.fire (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:89:496)
at Socket. (d:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:145:1008)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)