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

Sourcery plugin not working for Pycharm #426

Open
1 task done
Whisht opened this issue Apr 19, 2024 · 4 comments
Open
1 task done

Sourcery plugin not working for Pycharm #426

Whisht opened this issue Apr 19, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Whisht
Copy link

Whisht commented Apr 19, 2024

Checklist

Description

Sourcery plugin is not working for Pycharm 2024.1.
I installed Sourcery plugin from Pycharm plugins store and copy the demo code from the Default Rules - Sourcery Documentation, but no hints for these code. By the way, it works in vscode.

Code snippet that reproduces issue

I simply copy the example code from Default Rules - Sourcery Documentation, and paste it into Pycharm. But there is no underline hints for some code. And I disabled all other plugins in Pycharm, then tested it, the problem still exists.

Some config info

I enable all rule in Pycharm.
rule

It works normally in VSCode
vscode

But it perform differently in Pycharm
sourcey

Debug Information

IDE Version:

Pycharm Professional 2024.1

Sourcery Version:

Sorcery 1.16.0

Operating system and Version:

Macos 14.4.1

Sorcery.log:
sourcery.log

@Whisht Whisht added the bug Something isn't working label Apr 19, 2024
@Hellebore
Copy link
Collaborator

Hi @Whisht - sorry you're having trouble.

I can't reproduce this yet on my end, so a few questions to help track it down:

  • What does the sourcery tool window show and does the chat assistant work?
  • Are any Sourcery entries showing up in the Problems tool window?
  • Do you have a .sourcery.yaml config file in the project or at a user level (If so could you share it)? The user one would be (~/.config/sourcery/sourcery.yaml
  • Are you working in files with a standard .py file extension or something else?

@Whisht
Copy link
Author

Whisht commented Apr 22, 2024

Hi, @Hellebore.

  1. The chat assistant is not always working normally. Sometimes I have to restart Pycharm, the chat assistant start to respond. And Soucery is stuck at the scanning without any response.
image
  1. When I restart pycharm, the entries are shown up, but they will be vanish after I input some codes that sourcery launch a new scanning task.
  2. The config file is just a default one : coding_assistant:\n enabled: true
  3. Yes. A standard .py file.

@Whisht
Copy link
Author

Whisht commented Apr 22, 2024

Here is a screen record in which I only have two operations - close and open the tabs. You will see that the entries are suddenly disappeared.
CleanShot 2024-04-22 at 11 13 39

@Hellebore
Copy link
Collaborator

@Whisht thanks that's great information - we will investigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants