Code Inspection Does Not Refresh on Edit

When I'm making code modifications, even though I follow the guidance provided by the inspections, the guidance underline does not disappear. It seems like this issue has been happening since the 2023.1 version. Is there any way I can solve this issue?

For your reference, I have tried clearing all PyCharm cache and doing a clean reinstall on m1 mac. I'm currently using PyCharm version 2023.1.2.

I just found out that this issue occurs when the code is very long (over 1500 lines). When I erased all the code in the same file and tested it by modifying it to a simple method, the inspection worked well.

 

3
3 comments
Could you please submit a bug report to https://youtrack.jetbrains.com/issues/py and provide the following information, which is essential for troubleshooting the issue? 

- logs from **Help | Collect Logs and Diagnostic Data** after reproducing the issue
- Is the issue project-specific? Is it reproduced in a new project? 
- Please specify the type of Python interpreter used in the project, where it's located and the Python version.
0

Hello, thank you for the answer. I've managed to work around and resolve the issue by referring to the information here.

0

GUYS! I SOLVED IT! You just need to go to File > setting > project:python-workspace(under"version control"),

 then set your Project Interpreter from None to your current Python version,

 and that will solve the case!

-1

Please sign in to leave a comment.