SublimeJEDI icon indicating copy to clipboard operation
SublimeJEDI copied to clipboard

Hover for function definition does not work with MagicPython

Open fhchl opened this issue 5 years ago • 3 comments

I am not sure if this is a bug in MagicPython or SublimeJEDI.

On my machine, hovering over a Python function does not show the tooltip with the function definition and docstring when MagicPython is used. However, it does work with the default Python package.

Using the context menu option works in both cases.

ST 3207 SublimeJEDI 0.14.0 MagicPython 1.1.1

fhchl avatar May 11 '19 16:05 fhchl

I can confirm this. The reason is that SublimeJEDI will show docstrings only on scopes source.python & (variable | entity.name). The default Python syntax assings the following scopes to functions:

  • source.python
  • meta.function-call.python
  • meta.qualified-name.python
  • variable.function.python
  • meta.generic-name.python

MagicPython on the other hand will only assign the scopes

  • source.python
  • meta.function-call.python
  • meta.function-call.generic.python

Therefore the & variable condition is not met. The same holds for PythonImproved.

dhelonious avatar Jun 18 '19 22:06 dhelonious

https://github.com/srusskih/SublimeJEDI/blob/master/sublime_jedi/helper.py#L82

srusskih avatar Jun 27 '19 08:06 srusskih

Any idea how one could make these compatible? I could help to implement that.

fhchl avatar Jun 07 '20 18:06 fhchl