intellij wsl issues

  1. there is an issue when running the projects out of WSL, intellij website got some explanation for this issue, but unfortuantelly it’s not completely right

https://www.jetbrains.com/help/idea/how-to-use-wsl-development-environment-in-product.html#debugging_system_settings

while the first step to enable traffic for WSL is right

New-NetFirewallRule -DisplayName "WSL" -Direction Inbound  -InterfaceAlias "vEthernet (WSL)"  -Action Allow

the second step to enable intellij is not

https://stackoverflow.com/questions/67116880/how-to-correctly-set-up-intellij-with-wsl2

in the end, what i have done is to open the inbound rules for windows firewall advanced settings, and mannually grant the permission for the newest idea.exe

2. another problem is when intellij runs the application, it failed for accessing the WSL folders, something like

https://youtrack.jetbrains.com/issue/IDEA-277490

to solve that, is basically restart the intellij, wsl, and recreate new folders.

wsl could be restarted either through wsl --terminate or

`wsl –shutdown`

or restart windows.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s