【发布时间】:2022-06-16 10:53:34
【问题描述】:
我查看了与我类似的问题,但似乎没有一个能解决我的问题。
它返回一个提示,上面写着Could not establish connection to "hostname": The VS Code Server failed to start. 当我使用命令ssh pi@raspberrypi 并输入我的密码时,一切似乎都可以正常工作。
我的电脑:Windows 11
远程计算机:Raspbian 操作系统
server.sh 文件好像坏了,但我不知道文件应该是什么样子:
#!/usr/bin/env sh
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
case "$1" in
--inspect*) INSPECT="$1"; shift;;
esac
ROOT="$(dirname "$0")"
"$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" --compatibility=1.63 "$@"
这是远程计算机上的日志文件:
/home/pi/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/bin/code-server: 12: /home/pi/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/bin/code-server: /home/pi/.vscode-server/bin/c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5/node: not found
【问题讨论】:
标签: visual-studio-code vscode-remote