Managing multiple projects with multiple pip package versions

Answered

Hello,

My pycharm setup is a multi project setup with 5 projects.
All of these projects a have their own python dependencies with similar package versions.
These are also all docker-compose based interpreters.
Often I'll want to explore some of pip package source code when I'm debugging an issue, I'll probably want to read some of the code, and add a breakpoint.

For example these projects will all have the pip package pymongo.
When I do a symbol look up for Collection, I can see there are 5 results, 1 for each project.
However, it's not clear which project each symbol belongs to, I can also not narrow down the search to a specific project.

When I open up one of the references, this takes me to the source file. However, the path seems to be randomly generated. ( see picture ) 
This also does not help me understand which project this source code belongs to.
This is actually really important, because if I want to add a breakpoint, I have to add it to the correct remote sources, otherwise it wont hit. 


Is there a better way to associate the remote sources with the project ? So I can be more effective navigating and debugging when dealing with pip packages ? 

 

 

 

 

1 comment
Comment actions Permalink

Hello,

The problem with search results is known https://youtrack.jetbrains.com/issue/PY-35256, please vote for it if you find it relevant and follow for updates.

>When I open up one of the references, this takes me to the source file. However, the path seems to be randomly generated. ( see picture ) 

This isn't random. Albeit it is confusing. It is a local copy of your interpreter which is needed to provide code completion, inspections, and other features much faster.

If you use more than one remote interpreter, the problem with identifying the project will remain even if we correctly show relative paths. So I guess it worth submitting an issue to our issue tracker about better naming of 'remote_sources' directory or some identification in search results.

EDIT: the link for submitting an issue https://youtrack.jetbrains.com/issues/IDEA

0

Please sign in to leave a comment.