question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python tooltip strange behaviour

See original GitHub issue

Environment 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 schermata del 2018-06-09 19-01-24

Moreover, if the argument has a default value type of str, this happens schermata del 2018-06-09 19-42-01

Expected behavior

I expect the lines in the tooltip to look like this schermata del 2018-06-09 19-21-11

Steps to reproduce:

To reproduce the result in the first image:

  1. Create a new python file
  2. Import Pandas with import pandas as pd
  3. Try to write pd.DataFrame( and wait for the tooltip to appear
  4. Observe the strange tooltip lines.

Logs

Output for Python in the Output panel (ViewOutput, 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
patryscommented, Jun 11, 2018

@MikhailArkhipov Notice what it says under param columns=None. It doesn’t look like a text wrapping issue. At least not only.

0reactions
luabudcommented, Mar 11, 2020

Closing in favour of microsoft/vscode#14165.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found