我正在 PyCharm 中设置远程 SSH 解释器,但是当我尝试在远程计算机上选择解释器的位置时,出现以下错误:
Indicated packet length 1952805748 too large
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
and*_*ino 13
我收到此错误是因为我的.bashrc文件打印到标准输出。.bashrc当 PyCharm 通过 SFTP 连接到远程解释器的计算机时获取。它必须保持安静,否则会干扰 SFTP 协议。
解决方案是在不交互运行时提前退出,.bashrc方法是将此行放在顶部:
# If not running interactively, return early
[[ $- == *i* ]] || return
Run Code Online (Sandbox Code Playgroud)
进一步阅读:
| 归档时间: |
|
| 查看次数: |
6989 次 |
| 最近记录: |