PiCharma assistants do not appear in tramps

I am trying to configure remote debugging in pycharm on a rogue, but when I run, I get the following error:

ssh:// vagrant@127.0.0.1 :2222/usr/local/strongarm_venv/bin/python2.7 -u /home/vagrant/.pycharm_helpers/pydev/pydevd.py --multiproc --client '0.0.0.0' --port 49921 --file /vagrant/manage.py runserver 8000 /usr/local/strongarm_venv/bin/python2.7: can't open file '/home/vagrant/.pycharm_helpers/pydev/pydevd.py': [Errno 2] No such file or directory 

I searched the Internet and my entire drive for a directory called .pycharm_helpers, but all I can find is that pycharm had to create it at some point on the VM, which it hadn't done yet. Where can I find a copy for manual insertion, or how can I say pycharm to put it there?

+6
source share
5 answers

If you go to the default settings under Project Default> Project Interpreter and make sure your Vagrant VM pigment is selected as the project interpreter.

If it does not appear as the current selection, leave the list of interpreters and select it.

Most likely, if it does not appear as the selected interpreter, the stray machine does not match the configuration the first time the interpreter is connected to the machine, in which case PyCharm will try to fix it.

If this fails to fix, remove the interpreter and add it again.

+8
source

I had the same problem after updating the project firewall. Thus, the easiest way to fix this is to remove Project Interpreter in the settings, and then add it again. After that, you will see that PyCharm updates its helpers for the new interpreter.

+4
source

If other options do not work here, you can delete the .pycharm_helpers folder from the virtual machine. Open an SSH session for your stroller:

 Tools > Start SSH Session... > Vagrant at \your\path\to\vagrant 

Do the following:

 -rf /home/vagrant/.pycharm_helpers/ 

This will remove the PyCharm helpers. Then you want to reinstall them.

 File > Settings > Project: primary > Project Interpreter 

Change Project Interpreter to the default interpreter. Click Apply , then go back to the roaming virtual machine and click Apply again.

This should do .pycharm_helpers again.

+2
source

Pycharm filed an application to download these files to a virtual virtual machine when loading a remote interpreter. Something may be wrong with your connection with the vagrant machine, can you connect via ssh from pycharm to VM?

+1
source

This happened to me if I started IntelliJ before my roaming instance. Or, if he was vagrant destroy/up while IntelliJ was running. Just restarting IntelliJ (or PyCharm) seems to have launched the login and created the necessary /home/vagrant/.pycharm_helpers/ .

+1
source

Source: https://habr.com/ru/post/989819/


All Articles