Cs50 VScode仅在恢复模式下运行



每当我尝试打开cs50 vscode工作空间时,它就会发出以下通知:

由于容器错误,此代码空间当前运行在恢复模式。查看创建日志,根据需要更新devcontainer配置,然后运行"Rebuild container"命令。命令重试。

那么所有预安装的工具(sqlite3, python等)都不能工作

下面是创建日志的最后几行:

2022-04-21 01:59:29.258Z: Stop (3 ms): Run in container: cat /root/.vscode-remote/data/Machine/settings.json
2022-04-21 01:59:29.271Z: $ ls /root/.vscode-remote/bin/*/node | head -n 1
2022-04-21 01:59:29.284Z: 
2022-04-21 01:59:29.299Z: ls: cannot access '/root/.vscode-remote/bin/*/node': No such file or directory
2022-04-21 01:59:29.312Z: Stop (21 ms): Run in container: ls /root/.vscode-remote/bin/*/node | head -n 1
2022-04-21 01:59:29.330Z: userEnvProbe: none (default)
2022-04-21 01:59:29.343Z: $55.88679008Z' > '/root/.vscode-remote/data/Machine/.onCreateCommandMarker'
2022-04-21 01:59:29.358Z: 
2022-04-21 01:59:29.371Z: 
2022-04-21 01:59:29.385Z: Exit code 1
2022-04-21 01:59:29.400Z: && echo '2022-04-20T15:04:55.88679008Z' > '/root/.vscode-remote/data/Machine/.onCreateCommandMarker'
2022-04-21 01:59:29.414Z: $55.88679008Z' > '/root/.vscode-remote/data/Machine/.updateContentCommandMarker'
2022-04-21 01:59:29.428Z: 
2022-04-21 01:59:29.446Z: 
2022-04-21 01:59:29.461Z: Exit code 1
2022-04-21 01:59:29.474Z: && echo '2022-04-20T15:04:55.88679008Z' > '/root/.vscode-remote/data/Machine/.updateContentCommandMarker'
2022-04-21 01:59:29.487Z: $55.88679008Z' > '/root/.vscode-remote/data/Machine/.postCreateCommandMarker'
2022-04-21 01:59:29.503Z: Stop (455 ms): Resolving Remote
2022-04-21 01:59:29.517Z: 
2022-04-21 01:59:29.531Z: 
2022-04-21 01:59:29.545Z: Exit code 1
2022-04-21 01:59:29.578Z: && echo '2022-04-20T15:04:55.88679008Z' > '/root/.vscode-remote/data/Machine/.postCreateCommandMarker'
2022-04-21 01:59:29.610Z: $23.284538754Z' > '/root/.vscode-remote/data/Machine/.postStartCommandMarker'
2022-04-21 01:59:29.629Z: 
2022-04-21 01:59:29.643Z: 
2022-04-21 01:59:29.659Z: && echo '2022-04-21T01:59:23.284538754Z' > '/root/.vscode-remote/data/Machine/.postStartCommandMarker'

下面是其余创建日志的Pastebin: https://pastebin.com/PnWaBv7W

有办法解决这个问题吗?

我运行touch /workspaces/GITHUB_USERID/.devcontainer.json,其中GITHUB_USERID是我自己的GitHub用户id。

然后点击"立即重建";重建容器。

CS50学生可以通过访问www.github.com/code50找到他们的。

相关内容

  • 没有找到相关文章

最新更新