I setuup Project Interpreter pointing virtualenv on vagrant virtual machine (Settings / Project Interpreter / Add Remote), but when I click ctrl+B or use 'go to definition' I always end up in location like this: /home/<my_user_name>/.PyCharm50/system/remote_sources/1174787026/154306353/django/...
how to avoid such pycharm behaviour? How to force it to use virtualenvs code when go to declaration
?
Using Pycharm 5.0 on Ubuntu 14.04
UPDATE: with pycharm 2017.2.* it works now good!
I also had this issue setting up a remote interpreter with Vagrant.
It appears that for a remote interpreter you need to mark Python source root folders as "Source Folders" under Project Structure in Preferences. They should then show up as blue in your Project browser. You don't need to mark all the sub folders, just the root folder for each python project/package.
Without doing this it seems like Pycharm can't find the source files and takes you to the readonly cached code derived from the remote interpreter environment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With