spyder-ide / ux-improvements

Discussion about UX improvements for Spyder 5 and beyond
4 stars 2 forks source link

"No documentation available" hover tooltip is shown over string, list and dict variable contents. #53

Closed ghost closed 3 years ago

ghost commented 3 years ago

Issue Report Checklist

Problem Description

A useless tooltip appears above the contents of string, list and dictionary variables informing the user that no documentation is available on the contents of the variable.

What steps reproduce the problem?

  1. Open Spyder.
  2. Create a string, list or dictionary variable and assign content to it.
  3. Hover your mouse over the variable contents.

What is the expected output? What do you see instead?

I expect to see no tooltip, instead a tooltip with the the following text appears:

No documentation available
Click anywhere in this tooltip for additional help

String

image

List

image

Dictionary

image

Paste Traceback/Error Below (if applicable)


Nothing to copy

Versions

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  1.6.0 (OK)
cookiecutter >=1.6.0          :  1.7.3 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree                  :  None (OK)
IPython >=7.6.0               :  7.23.1 (OK)
jedi =0.17.2                  :  0.17.2 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  23.0.1 (OK)
nbconvert >=4.0               :  6.0.7 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
paramiko >=2.4.0              :  2.7.2 (OK)
parso =0.7.0                  :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.9.0 (OK)
pylint >=1.0                  :  2.8.2 (OK)
pyls >=0.36.2;<1.0.0          :  0.36.2 (OK)
pyls_black >=0.4.6            :  0.4.6 (OK)
pyls_spyder >=0.3.2;<0.4.0    :  0.3.2 (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.2.0 (OK)
qtawesome >=1.0.2             :  1.0.2 (OK)
qtconsole >=5.1.0             :  5.1.0 (OK)
qtpy >=1.5.0                  :  1.9.0 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=39.0.0           :  56.2.0 (OK)
sphinx >=0.6.6                :  3.5.4 (OK)
spyder_kernels >=2.0.3;<2.1.0 :  2.0.3 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog                      :  1.0.2 (OK)
zmq >=17                      :  22.0.3 (OK)

# Optional:
cython >=0.21                 :  0.29.23 (OK)
matplotlib >=2.0.0            :  3.4.2 (OK)
numpy >=1.7                   :  1.19.3 (OK)
pandas >=1.1.1                :  1.2.4 (OK)
scipy >=0.17.0                :  1.6.3 (OK)
sympy >=0.7.3                 :  1.8 (OK)
steff456 commented 3 years ago

Hi @ba-tno,

This depends on the information retrieved by the PyLS and sometimes it is filled with information that may help you, while in some cases there's no information to show. I'm going to move this issue to our ux repository so we can discuss what will be the expected behavior for these tooltips.

Thanks for reporting!

ccordoba12 commented 3 years ago

@steff456, I think this is really a bug because Spyder shouldn't try to display hovers for strings and comments, which is what's happening right now and basically the problem reported by the user.

@ba-tno, I'm going to close this one in favor of issue https://github.com/spyder-ide/spyder/issues/16079 and fix it in our 5.1.0 version, to be released at the end of the month.

ZaamlamLeung commented 3 years ago

try this Tools > Preferences > Completion and linting > Introspection and deactivate the option called Enable hover hints.

ref: https://stackoverflow.com/questions/59225879/how-to-hide-hover-tooltips-on-spyder-4

ghost commented 3 years ago

@ZaamlamLeung That's not really a solution as that disables all hover hints, not only the empty ones.