解决VSCode更新后无法启动Remote WSL的问题

  1. 打开wsl,输入以下指令:

    1
    
    $ VSCODE_WSL_DEBUG_INFO=true code .
    

    此时terminal会输出调试信息:

    此时所执行的脚本路径为~//.vscode//extensions//ms-vscode-remote.remote-wsl-0.xx.x//scripts//wslDownload.sh(On Windows)。定位程序发生卡死的位置:

    将该程序的第110行(或临近位置,带tar的那行)删掉:

    image-20220619200059954

    手动下载,并解压该文件,将其名称改为其SHA-1值。然后移动到~/.vscode-server/bin/中:

    image-20220619200509487

    成功解决!

Licensed under CC BY-NC-SA 4.0
Built with Hugo
Theme Stack designed by Jimmy
visitors: total visits: time(s) reads: time(s)