Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hover for function definition does not work with MagicPython #291

Open
fhchl opened this issue May 11, 2019 · 3 comments
Open

Hover for function definition does not work with MagicPython #291

fhchl opened this issue May 11, 2019 · 3 comments

Comments

@fhchl
Copy link

fhchl commented May 11, 2019

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

@dhelonious
Copy link

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.

@srusskih
Copy link
Owner

@fhchl
Copy link
Author

fhchl commented Jun 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants