我通过Windows store安装了Ubuntu,然后按照Jetbrains CLion/WSL安装指南进行了安装:https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-clion.html
然而,在遵循了该指南之后,我在CLion中仍然是一个错误,说“找不到WSL”


我尝试重新启动CLion,但没有解决问题。
我验证了WSL在我的PC上工作正常:

CLion版本信息:
CLion 2019.2.1
Build #CL-192.6262.62, built on August 21, 2019
Runtime version: 11.0.3+12-b304.39 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1987M
Cores: 8
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: Windows版本:Microsoft Windows [Version 10.0.16299.1331]
我发现了这个相关的问题,但不幸的是修复/重置对我不起作用CLION: WSL not found, ssh connected?
发布于 2021-10-04 13:10:27
您所需要做的就是从/etc/ssh/sshd_config中删除不推荐使用的选项,将ListenAddress更改为0.0.0.0,学习您的WSL (主机名为-I),并在CLion工具链配置中将本地主机更改为它。
为此,您需要:
在bottom
su
nano /etc/ssh/sshd_config
ListenAddress 0.0.0.0
service ssh restart
hostname -I
ListenAddress 0.0.0.0service ssh restarthostname -I请注意,此IP通常会在重新加载后发生变化。使用这个工具来对抗它https://github.com/shayne/go-wsl2-host
https://stackoverflow.com/questions/57715802
复制相似问题