pycharm在启动时总是"将pycharm helpers"上传到同一个远程python解释器

use*_*322 18 python remote-debugging pycharm

当我启动PyCharm for remote python interpreter时,它总是执行"Uploading PyCharm helpers",即使远程机器IP是相同的并且已经包含以前上传的帮助程序.行为是否正确?

xAp*_*ple 8

这是一个众所周知的问题,可能是生产力的主要障碍,特别是如果您在工作流程中使用一次性实例.每次要连接到远程系统时,都会导致20分钟的强制咖啡休息时间.不能接受的.

好像PyCharm在远程帮助文件夹中创建了一个build.txt文件,该文件只包含当前的PyCharm内部版本号作为其内容,例如:

PY-171.4694.38
Run Code Online (Sandbox Code Playgroud)

因此,可以通过使用rsyncon 手动上载帮助程序/Applications/PyCharm.app/Contents/helpers/,最后使用当前的内部版本号手动创建build.txt文件.之后,PyCharm不应该尝试重新上传它们.

例:

 $ rsync -avz /Applications/PyCharm.app/Contents/helpers/ cluster:/home/xapple/.pycharm_helpers/
 $ echo "PY-171.4694.38" > /home/xapple/.pycharm_helpers/build.txt
 $ python /home/xapple/.pycharm_helpers/pydev/setup_cython.py build_ext --inplace
Run Code Online (Sandbox Code Playgroud)


uta*_*ngo 0

根据文档

PyCharm 在每次远程运行时检查远程助手版本,因此如果您更新 PyCharm 版本,新助手将自动上传,您无需重新创建远程解释器。