首页 > 解决方案 > 在 WSL 中运行 vscode 会引发 v8 二进制文件和快照之间的致命错误版本不匹配

问题描述

每当我code-insiders在 WSL 中运行命令时,都会出现以下错误:

~/dev ᐅ code-insiders .
#
# Fatal error in , line 0
# Version mismatch between V8 binary and snapshot.
#   V8 binary version: 7.7.299.13-node.16
#    Snapshot version:
# The snapshot consists of 327888 bytes and contains 0 context(s).
#
#
#
#FailureMessage Object: 0x7fff0aac4bc0Illegal instruction

这已经开始自发地发生了。我之前在 WSL 中使用 code-insiders 有一段时间没有出现这样的问题。

标签: visual-studio-codewindows-subsystem-for-linuxvscode-remote

解决方案


为我解决的问题是关闭正在运行的 vscode 内部人员窗口。这运行了 vscode 本身的自动更新(它显示了一个带有进度条的灰色小窗口)。之后,code-insiders .在 WSL 终端中运行下载了新的 vscode 服务器版本,然后我可以在 WSL 中正常启动 code-insiders。


推荐阅读