it's weird that PyCharm jumped to wrong standard lib in another system path.

as you can see, i have two projects, and each is bound to their own interpreter.

and when i clicked and jumped to the definition of `dataclass` in either main.py, both led me to the file dataclasses.py in system's python 3.13 lib path, which is D:\Python313\Lib.

this is i guess not an expected behavior.

why i can't upload my screen shot?

0
5 comments
Official comment

Hi Allenling3 

 

Can you please provide some more information regarding the issue you are facing? 

What PyCharm version are you using?

- Could you try to do a cache invalidation File | Invalidate caches

- If the above does not help an you check if the issue affects a specific project or also a new project?

 

What is the format and size fo the image you were trying to attach?

Could you try again in case this was a temporary issue of the servers?

You can also use our upload service  for larger files.

 

Kind regards,

hi Ervis Velika,

yes i have tried to do a cache invalidation File, and it didn't solve the problem.

and this affects both my existing projects and new projects, but it only affects standard libs not  third party libs, meaning i can jump to a third party python file at correct position.

and i've uploaded my screen shot, the id is Upload id: 2025_08_21_aciNcQyPnsJunHd4gKc2pX (file: 20250821-105854.gif)

0

oh by the way i am using PyCharm 2025.2.0.1, and still have the problem on PyCharm Community Edition 2022.1.3

0

Hi Allenling3 

 

Sorry for the delay here:

The issue can be replicated and it looks related to this report in YouTrack: 

https://youtrack.jetbrains.com/issue/PY-51581/Multi-project-wrong-dependency-resolution

Please feel free to follow / upvote and comment in the above YouTrack case directly 

 

Kind regards,

 

0

Please sign in to leave a comment.