davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.27k stars 370 forks source link

Keyowrd not recognized #985

Closed PsySc0rpi0n closed 4 years ago

PsySc0rpi0n commented 4 years ago

Issue - 'self' keyword not recognized/colored

Description: The 'self' keyword, apparently, is not recognized by jedi-vim, or at least is not colored after we type it. I'm using my repository python3-jedi-vim 0.13.2-1

Steps to reproduce

Just type the 'self' keyword when creating a class and it won't be colored

Output of “:verbose JediDebugInfo”

davidhalter commented 4 years ago

Please fill out the form to have enough information to debug your issue. You have intentionally ignored it, by deleting the form when creating a new issue. I'm just pointing it out, because the form is there for a reason. It saves us a lot of time and questions if we have it.

We are happy to reopen this issue if you add the necessary information.

PsySc0rpi0n commented 4 years ago

I'm sorry I deleted something. It was not on purpose. I'll add what is needed tomorrow. I just got into bed. Bed time here. Sorry for the trouble. I'll fix it tomorrow.

Thanks

Sent from Galaxy S 7 Edge

On Sun, 12 Jan 2020, 23:53 Dave Halter, notifications@github.com wrote:

Please fill out the form to have enough information to debug your issue. You have intentionally ignored it, by deleting the form when creating a new issue. I'm just pointing it out, because the form is there for a reason. It saves us a lot of time and questions if we have it.

We are happy to reopen this issue if you add the necessary information.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidhalter/jedi-vim/issues/985?email_source=notifications&email_token=ABHPFZVT3ZAGW5BGLXFB2ULQ5OURFA5CNFSM4KF2RQAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIXH2RQ#issuecomment-573472070, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHPFZVH75DGCOIZZHLMX7LQ5OURFANCNFSM4KF2RQAA .

PsySc0rpi0n commented 4 years ago

Please fill out the form to have enough information to debug your issue. You have intentionally ignored it, by deleting the form when creating a new issue. I'm just pointing it out, because the form is there for a reason. It saves us a lot of time and questions if we have it.

We are happy to reopen this issue if you add the necessary information.

Hi. I think I haven't deleted anything from the form, but for some reason it's not showing up.

I filled the title and steps to reproduce and yet the field where we should say if we are using a repository version or github version. Can't you edit my post an try to figure out why things are not showing up?

blueyed commented 4 years ago

The 'self' keyword, apparently, is not recognized by jedi-vim, or at least is not colored after we type it.

Sounds like a syntax highlight issue only? (which is nothing jedi-vim really changes)

Please provide steps to show what is happening and what you would expect.

PsySc0rpi0n commented 4 years ago

The 'self' keyword, apparently, is not recognized by jedi-vim, or at least is not colored after we type it.

Sounds like a syntax highlight issue only? (which is nothing jedi-vim really changes)

Please provide steps to show what is happening and what you would expect.

I have provided the steps to reproduce. I just open a new file with .py extension, and when I start writing a python class, for instance, and I use the keyword 'self', I expected it to turn into a different color, maybe the same color as when you use 'print' keyword. But in that case, maybe this is not a jedi-vim issue. Is it supposed jedi-vim to highlight keywords or is that a rule of other plugins? If this is work for other plugins, then I'm sorry I posted this here. I thought jedi-vim would also take care of syntax highlight.

blueyed commented 4 years ago

No, that's not a jedi-vim issue. Vim's Python syntax highlighting is pretty plain in this regard. You can either try to find a plugin that improves on this (e.g. https://github.com/numirias/semshi for Neovim), or just extend it yourself (e.g. :syn keyword Identifier self). (variables/identifiers are not colored in python files by default, and self is a regular var/identifier after all)

blueyed commented 4 years ago

FWIW https://github.com/numirias/semshi is awesome (but requires Neovim).

davidhalter commented 4 years ago

I think I haven't deleted anything from the form, but for some reason it's not showing up.

You did not provide :verbose JediDebugInfo. It's still in there on your first comment...

PsySc0rpi0n commented 4 years ago

Hi. Are you still interested in the output? If this is not a jedi-vim issue...

Em ter., 14 de jan. de 2020 às 20:07, Dave Halter notifications@github.com escreveu:

I think I haven't deleted anything from the form, but for some reason it's not showing up.

You did not provide :verbose JediDebugInfo.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidhalter/jedi-vim/issues/985?email_source=notifications&email_token=ABHPFZWC4T2IF6FSUQO334LQ5YLQFA5CNFSM4KF2RQAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI56EHY#issuecomment-574349855, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHPFZSZIOP3VBEM5FGZ4Z3Q5YLQFANCNFSM4KF2RQAA .

--

AtenciosamenteJosé Carlos Oliveira Ferreira