Cleanup and document WSL network connectivity for cases like PY-59150.

* Unify host and WSL fetching logic
* Handle error explicitly by exception
* Extract messages
* Log stdout/stderr to logs, not to show em in dialogs
* Test added

Cleanup and document WSL network connectivity for cases like PY-59150.

* No need to deal with IP address obtaining problems each time: encapsulate it in ``WslDistribution``.
* Use one registry key to switch to ``127.0.0.1`` for Windows To Linux connection
* Document current approach and usage
* Make methods not nullable (some usages do not check null at all)

Merge-request: IJ-MR-106936
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: 8bb9415ea9859e76365dff79a57d2b4661897334
This commit is contained in:
Ilya.Kazakevich
2023-05-05 12:25:02 +00:00
committed by intellij-monorepo-bot
parent 963398ea2b
commit 382a86c6e1
10 changed files with 187 additions and 80 deletions

View File

@@ -326,7 +326,6 @@ notification.action.jps.open.configuration.dialog=Configure...
notification.title.jps.cannot.start.compiler=Cannot start compiler
notification.title.cpu.snapshot.build.has.been.captured=Build CPU snapshot has been captured
action.show.snapshot.location.text=Show Snapshot Location
dialog.message.failed.to.determine.host.ip.for.wsl.jdk=Failed to determine host IP for WSL JDK
progress.preparing.wsl.build.environment=Preparing WSL build environment...
plugins.advertiser.feature.artifact=artifact
notification.group.compiler=Build finished