Python tooltip strange behaviour
See original GitHub issueEnvironment data
- VS Code version: 1.24.0
- Extension version (available under the Extensions sidebar): 2018.5.0
- OS and version: Ubuntu 16.04
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.5 from Anaconda
- Type of virtual environment used: conda (base)
- Relevant/affected Python packages and their versions: None
Actual behavior
Sometimes when i am writing the arguments of a function the lines in the tooltip are messed up, as shown in the image below
Moreover, if the argument has a default value type of str
, this happens
Expected behavior
I expect the lines in the tooltip to look like this
Steps to reproduce:
To reproduce the result in the first image:
- Create a new python file
- Import Pandas with
import pandas as pd
- Try to write
pd.DataFrame(
and wait for the tooltip to appear - Observe the strange tooltip lines.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Starting the classic analysis engine.
##########Linting Output - pylint##########
No config file found, using default configuration
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
INFO no standard startup: panel is active
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:13:90)
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at e.$acceptDirtyStateChanged (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:685:973)
at e._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:832)
at e._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:550)
at e._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:631)
at e._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:400)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:634:315
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:637:395
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:95:432
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at Socket.<anonymous> (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:154:338)
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 @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:13:90)
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at e.$acceptDirtyStateChanged (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:685:973)
at e.$acceptModelSaved (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:685:723)
at e._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:832)
at e._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:550)
at e._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:631)
at e._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:400)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:634:315
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:637:395
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:95:432
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at Socket.<anonymous> (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:154:338)
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 @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:13:90)
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at e.$acceptDirtyStateChanged (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:685:973)
at e._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:832)
at e._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:550)
at e._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:631)
at e._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:400)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:634:315
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:637:395
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:95:432
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at Socket.<anonymous> (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:154:338)
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 @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 [njpwerner.autodocstring]Cannot read property 'rangeLength' of undefined
e.$onExtensionRuntimeError @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960 TypeError: Cannot read property 'rangeLength' of undefined
at activateOnEnter (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:21:38)
at context.subscriptions.push.vs.workspace.onDidChangeTextDocument.changeEvent (/home/ale/.vscode/extensions/njpwerner.autodocstring-0.2.1/out/src/extension.js:13:90)
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at e.$acceptDirtyStateChanged (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:685:973)
at e.$acceptModelSaved (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:685:723)
at e._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:832)
at e._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:636:550)
at e._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:631)
at e._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:635:400)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:634:315
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:637:395
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:95:432
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:764)
at Socket.<anonymous> (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:154:338)
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 @ /usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2960
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Issue 46180: Button clicked failed when mouse hover tooltip ...
Button no response when clicked if mouse move into tooltip and tooltip ... This is unusual as tkinter has been rock solid since...
Read more >jQuery UI ToolTip strange behavior of position - Stack Overflow
I try connect tooltip to table cells, table have width more than width of window. The width of tooltips of cells out of...
Read more >Strange ToolTip Behaviour - wxpython-users@lists.wxwidgets.org
It is strange that if the TextCtrl is created before the StaticBitmap, the ToolTip shows up ok. I tested it inside the wx.Python...
Read more >problems with wx.ComboBox and wx.ToolTip - wxPython Users
Hi all, I just noticed a kind of strange behaviour of tooltips in connection with comboboxes in wxPython (win XPh, Python 2.5.4, ...
Read more >Newest 'tooltip' Questions - GIS Stack Exchange
Can a 'regular' Folium tooltip show information dynamically? ... Is there any way to fine-tune this behaviour (without ... qgis · tooltip.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@MikhailArkhipov Notice what it says under
param columns=None
. It doesn’t look like a text wrapping issue. At least not only.Closing in favour of microsoft/vscode#14165.