我在Ubuntu WSL中使用vscode,它在几个小时前工作正常,当我开始写js时突然停止工作。
我尝试过删除和重新安装vscode,但这不起作用,并且出现错误:当我尝试清除时,出现无法找到包代码。
将vscode远程连接到wsl时,出现如下错误:
2020-09-30 09:20:11.585] Resolving wsl+Ubuntu, resolveAttempt: 1
[2020-09-30 09:20:11.625] Starting VS Code Server inside WSL (Ubuntu)
[2020-09-30 09:20:11.625] Extension version: 0.44.5, Windows build: 19041. Multi distro support: available. WSL path support: enabled
[2020-09-30 09:20:11.756] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c "[ -d ~/.vscode-server/bin/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
[2020-09-30 09:20:11.886] Probing result: found
[2020-09-30 09:20:11.886] Server install found in WSL
[2020-09-30 09:20:11.887] Launching C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" e5e9e69aed6e1984f7499b7af85b3d05f9a6883a stable .vscode-server 0 ' in c:\Users\divya\.vscode\extensions\ms-vscode-remote.remote-wsl-0.44.5}
[2020-09-30 09:20:11.996] Setting up server environment: Looking for /home/dgoel/.vscode-server/server-env-setup. Not found.
[2020-09-30 09:20:11.996] WSL version: 4.4.0-19041-Microsoft Ubuntu
[2020-09-30 09:20:11.996] Starting server: /home/dgoel/.vscode-server/bin/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a/server.sh --port=0 --use-host-proxy --fileWatcherPolling=0
[2020-09-30 09:20:11.996] /mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts/wslServer.sh: 63: /home/dgoel/.vscode-server/bin/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a/server.sh: not found
[2020-09-30 09:20:11.997] VS Code Server for WSL closed unexpectedly.
[2020-09-30 09:20:11.997] For help with startup problems, go to
[2020-09-30 09:20:11.997] https://code.visualstudio.com/docs/remote/troubleshooting#_wsl-tips
以下是来自 wsl 乌班图的调试报告:
VSCODE_WSL_DEBUG_INFO=true code .
+ COMMIT=e5e9e69aed6e1984f7499b7af85b3d05f9a6883a
+ APP_NAME=code
+ QUALITY=stable
+ NAME=Code
+ DATAFOLDER=.vscode
+ realpath /mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/bin/code
+ dirname /mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/bin/code
+ dirname /mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/bin
+ VSCODE_PATH=/mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code
+ ELECTRON=/mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/Code.exe
+ IN_WSL=false
+ [ -n Ubuntu ]
+ IN_WSL=true
+ [ true = true ]
+ export WSLENV=ELECTRON_RUN_AS_NODE/w:
+ wslpath -m /mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/resources/app/out/cli.js
+ CLI=C:/Users/divya/AppData/Local/Programs/Microsoft VS Code/resources/app/out/cli.js
+ WSL_EXT_ID=ms-vscode-remote.remote-wsl
+ ELECTRON_RUN_AS_NODE=1 /mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/Code.exe C:/Users/divya/AppData/Local/Programs/Microsoft VS Code/resources/app/out/cli.js --locate-extension ms-vscode-remote.remote-wsl
+ cat /tmp/remote-wsl-loc.txt
+ WSL_EXT_WLOC=c:\Users\divya\.vscode\extensions\ms-vscode-remote.remote-wsl-0.44.5
+ [ -n c:\Users\divya\.vscode\extensions\ms-vscode-remote.remote-wsl-0.44.5 ]
+ wslpath -u c:\Users\divya\.vscode\extensions\ms-vscode-remote.remote-wsl-0.44.5
+ WSL_CODE=/mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts/wslCode.sh
+ /mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts/wslCode.sh e5e9e69aed6e1984f7499b7af85b3d05f9a6883a stable /mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/Code.exe code .vscode .
+ [ -z .vscode ]
+ echo .vscode
+ sed -e s/.vscode/.vscode-server/g
+ DATAFOLDER=.vscode-server
+ VSCODE_REMOTE_BIN=/home/dgoel/.vscode-server/bin
+ AUTHORITY=wsl+default
+ [ Ubuntu ]
+ AUTHORITY=wsl+Ubuntu
+ [ ! -d /home/dgoel/.vscode-server ]
+ dirname /mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts/wslCode.sh
+ /mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts/wslDownload.sh e5e9e69aed6e1984f7499b7af85b3d05f9a6883a stable /home/dgoel/.vscode-server/bin
+ [ ! -d /home/dgoel/.vscode-server/bin/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a ]
+ RC=0
+ [ 0 -ne 0 ]
+ dirname /mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts/wslCode.sh
+ VSCODE_CLIENT_COMMAND=/mnt/c/Users/divya/AppData/Local/Programs/Microsoft VS Code/Code.exe VSCODE_CLIENT_COMMAND_CWD=/mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts VSCODE_CLI_AUTHORITY=wsl+Ubuntu /home/dgoel/.vscode-server/bin/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a/bin/code .
/mnt/c/Users/divya/.vscode/extensions/ms-vscode-remote.remote-wsl-0.44.5/scripts/wslCode.sh: 53: /home/dgoel/.vscode-server/bin/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a/bin/code: not found
+ exit 127
这对我很有用——请点击此链接:https://code.visualstudio.com/docs/remote/wsl-tutorial如果您不想要Python开发部分,请跳过它,然后转到Run in WSL部分并运行:“code.”来安装VS代码服务器。
然后打开VSCode并选择新的WSL窗口选择您的文件夹。
您可能需要重新设置WSL或升级到WSL2。以下是一个有用的链接:https://learn.microsoft.com/en-us/windows/wsl/install-win10
或者试试这个链接:https://code.visualstudio.com/docs/remote/wsl-tutorial#:~:text=Run 终端>新终端(Ctrl,VS代码在Windows上运行。它主要用于在vscode上运行Python,但是如果您遵循“集成终端”步骤,它可能会起作用。
也许比公认的答案更简单,我能够通过以下方式解决这个问题:
我刚刚安装了weblogic server和OSB的新副本。在快速启动屏幕上成功安装weblogic 10.3.6后,我尝试配置域。但是,屏幕没有进一步处理,下面的屏幕截图中出现了错误。 此外,在eclipse中,当我尝试添加服务器时,它会提示我创建一个域,但这也不起作用。我在控制台中遇到的错误是:
我刚刚配置了JBoss Wildfly。它正在运行,可以从同一台机器上访问,一切都很好... 我的问题是它不能从另一个系统访问(我的意思是在网络中,服务器(主机)URL不能从另一个系统访问)。 我该怎么解决这个?
我按照这个https://spring.io/guides/gs/accessing-data-mysql/指南连接mysql db到Spring启动项目 但是在运行应用程序时出现以下错误,我正在生成Spring starter项目,并且在通过Spring工具套件创建项目时仅选择web、mysql和jpa框 以下是application.properties 和pom.xml 编辑:添加sprin
我在VS代码上得到了这个错误,但不知道为什么它会失败
我正在尝试为我的kubernetes项目使用。 我遵循仙丹指南和凤凰指南。在Connect to your Cloud SQL实例中,该指南指出,运行“cloud_sql_proxy-dir=/tmp/cloudsql”和“psql-h/tmp/cloudsql/[CONNECTION-NAME]-u postgres”将打开代理。 所以我尝试用下面的这些命令创建一个新的目录。 然后我尝试连接云s
我已经在运行Ubuntu的VirtualBox VM上安装了Hadoop和Hbase;Hadoop和Hbase都在伪分布式模式下成功运行。我在Ubuntu上禁用了IPv6,并将VM上的hosts文件中的localhost更改为127.0.0.1。 我正尝试在Eclipse中的Windows机器上编写一些基本的Java代码,以连接Hbase实例、创建表、插入和检索数据等,代码失败,错误是无法连接到主