Windows 10 x64: Can't configure Clion with Windows Subsystem for Linux

Answered

I try to configure Clion with WSL on Windows 10 x64 and I can't do that. When I setup credentials to "ssh://user@localhost:2222" I can see the error: "Credentials are not valid for this WSL distribution (Ubuntu 18.04)". 

How can I fix this?

Thanks

0
7 comments
Avatar
Permanently deleted user

Same problem here...

0

Hello! What CLion version do you use? The issue should be fixed in CLion 2018.1.5 and CLion 2018.2. EAP.

0
Avatar
Permanently deleted user

I'm using CLion 2018.1.5 but the error is still existing.

/usr/bin/cmake, /usr/bin/make, /usr/bin/cc, /usr/bin/c++ and WSL GDB (\usr\bin\gdb) detected successfully but I can see the error: "Credentials are not valid for this WSL distribution (Ubuntu 18.04)".

As a result there is no possibility to config a project.

0

@Prus1337, did you install WSL distribution via the Windows Store? 

If you did, please provide the following additional information to clion-support at jetbrains.com:

  1. The screenshot of WSL toolchain screen (Settings | Build, Execution, Deployment | Toolchains).
  2. Check windows registry using the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss key and share the results.
  3. Enable WSL-logging by entering #com.jetbrains.cidr.cpp.toolchains.WSL into  Help | Debug Log Settings, restart CLion, reproduce the problem and send us idea.log (Help | Show Log in Explorer).

Thanks in advance!

0
Avatar
Permanently deleted user

I have sent the requested information

0

For all who face the “Credentials are not valid for this WSL distribution" error:

Please check value of HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss{<ubuntu_id>}\BasePath. If it contains non-ASCII characters, please see the related issue in our tracker (https://youtrack.jetbrains.com/issue/CPP-13614) which describes a workaround.

2
Avatar
Permanently deleted user

It's works for me. Thanks!

0

Please sign in to leave a comment.