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

No annotations at all in PyCharm #506

Open
siouxmathware opened this issue Sep 17, 2024 · 9 comments
Open

No annotations at all in PyCharm #506

siouxmathware opened this issue Sep 17, 2024 · 9 comments

Comments

@siouxmathware
Copy link

Describe the bug
After installing the plugin, I do not see it annotate any warnings or errors at all. With ruff check in the command-line, I do see there are several issues in the code, but these are not picked up by the plugin.

To Reproduce
Steps to reproduce the behavior:
Create a file ruff_failure.py with the contents

test0 = 0; test1 = 1

Observe no Ruff issues in PyCharm.

Run ruff check ruff_failure.py

Observe there is in fact an issue with the code.

E702 Multiple statements on one line (semicolon)

Expected behavior
I expect the PyCharm plugin to also warn or error on the E702 violation.

Screenshots
not necessary

Environments (please complete the following information):

  • IDE: PyCharm Professional 2024.2
  • OS: Windows 11
  • Ruff Version 0.6.5
  • Plugin version 0.0.39

Additional context
Thanks for the plugin, hope this can be easily resolved so we can roll it out in our organisation.

@fadhely
Copy link

fadhely commented Sep 23, 2024

+1
Same issue with the PyCharm 2024.2.2. Can't see the popup with rule code.
image
By the way i think that the plugin still work with previous version of Pycharm.

@fadhely
Copy link

fadhely commented Oct 1, 2024

Since version 2024.2.3 in Pycharm the popup with rule code is shown but it's still not the case in PycharmPro 2024.2.3
@siouxmathware and @AntoineD Could you confirm please ?

@siouxmathware
Copy link
Author

I realize now that I was in fact not using PyCharm professional, but only the "Community Edition". Also, the issue has resolved itself, without even updating PyCharm. I had already restarted PyCharm several times before submitting the issue, but when starting up PyCharm to check for updates, I was warned about the IDE requiring a restart. After the restart I browsed the PyCharm settings a bit to see if anything was wrong, but did not change anything (as far as I know), yet the plugin then suddenly appeared to be working.

I will investigate more.

@siouxmathware
Copy link
Author

I did the following:

  • Uinstalled the plugin (annotation go away)
  • Restarted PyCharm (requested by PyCharm)
  • Installed the plugin (no annotations seen, no request to restart)
  • Restarted PyCharm (annotations appear once more)

This is all with PyCharm (CE) 2024.2.1. I think I may have been doing something wrong before, but the issue appears to have resolved itself.

@fadhely
Copy link

fadhely commented Oct 3, 2024

Thanks @siouxmathware for the answer.
I will try this on my end and keep the thread updated.

I uninstall the plugin then re-install it, relaunch and still face the issue with PycharmPro (PyCharm 2024.2.3 (Professional Edition))
It works like a charm with Pycharm Community. (PyCharm 2024.2.3 (Community Edition))

idk....

@fadhely
Copy link

fadhely commented Oct 3, 2024

I removed the installation of the plugin LSP4IJ also remove the configuration in Ruff and then it works like a charm in I mean in PyCharm Pro 2024.2.3 (Professional Edition).

I might think that this thread can be closed ?!!

@siouxmathware
Copy link
Author

I can also confirm that it works in PyCharm Pro 2024.2.3. Actually worked without issue the first time I installed Pro after removing CE. Not sure if removing CE was necessary, but at first it would not install Pro.

@KiranMohan
Copy link

KiranMohan commented Oct 23, 2024

For me, the Ruff errors are detected but highlighting is not working.

image

@CarliJoy
Copy link

CarliJoy commented Dec 2, 2024

Using Pycharm Pro 2024.2.3 i also can't get the notification to get working:
I see some hints from the LSP so:

grafik

But I don't see any linter errors related to my config file (i.e. S603)
I can get the unassigend so like KiranMohan.

It seems my config file is not respected?

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

4 participants