pycharm fails to catch a syntax error in Python, or causes a syntax error even after the error has been fixed.

 

 

Take a look at the photo above. In the photo above, the category_id is clearly defined, so there shouldn't be any syntax errors.
However, Pycharm still complains that there is an error.

Pycharm also often says that there are no syntax issues, even though there are clearly syntax errors. This is pretty annoying because you think your app is all done, and you only find out about the problem when you launch it.

 

The operating system I'm using is shown above.

 

and this is my PyCharm Version. I don't remember getting that error when I was using version 2022.2.5. But we can't use an outdated version of the program forever, is there any way to fix this?

 

0
Hi, please check autoreparse delay under **Preferences | Editor | Code Editing**

If that doesn't help, please submit an issue to https://youtrack.jetbrains.com and provide your logs from **Help | Collect Logs and Diagnostic Data**, so we could analyze it.
Also, does the issue reproduce in a new minimal project?
0

Andrey Resler

Hi, thank you for your response.
First, the delay settings are as follows.

I haven't touched anything since installing PyCharm, so that's probably not the cause of the problem.
I'm not sure yet if this issue is reproduced with the new minimal project, because it doesn't happen 100% after turning on the project - it seems to happen after turning on the project (which already exists), and working on it for a few hours.

0

Let's continue in the YouTrack ticket you created recently.

0

have the same problem, what was the solution? (i am using intellij ultimate with python plugin)

i get no syntax check, or wrong syntax check - after restart at least some wrong errors are gone but syntax is not checked at all.

If i restart intellij the syntax check works for some minutes and then it completely stops again (can add complete garbage nothing is shown)

0
Some users reported that rebuilding caches helped (File | Invalidate Caches... | Clear file system cache and Local History | Invalidate and Restart)

If it doesn't help, could you please submit an issue to https://youtrack.jetbrains.com/issues/py with the following data? 

- logs from **Help | Collect Logs and Diagnostic Data**
- CPU snapshot according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems
0

请先登录再写评论。