plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: Plugin not working with WSL2

Open keyboardSmasher opened this issue 2 years ago • 4 comments

Bug description

Plugin crashes

com.intellij.util.IncorrectOperationException: java.io.IOException: Cannot create directory '\\wsl$\Ubuntu-20.04\home\me\Sites\mysite\vendor\_laravel_idea'

Plugin version

4.4.5.213

Operating system

Windows

Steps to reproduce

Create a site inside of WSL2 with PHPStorm installed in Windows and try to use the plugin.

Relevant log output

No response

keyboardSmasher avatar Dec 18 '21 16:12 keyboardSmasher

Hello, Rob. Could you create files from PhpStorm? In the vendor folder? It seems there are some issues with folder rights...

adelf avatar Dec 20 '21 13:12 adelf

I use WSL2 and the plugin works normally so it's not about the OS.

usernotnull avatar Dec 24 '21 07:12 usernotnull

@keyboardSmasher Hello, using WSL2 for PHP is not that good, i would suggest this tutorial if you really need to use Windows or WSL2 https://www.pimwiddershoven.nl/entry/lightning-speed-development-on-windows-10-with-wsl-2-docker-terminal-and-jetbrains-intellij-pycharm-phpstorm

You might have better luck with WSL1 as the Filesystem is a bit better for PHP projects shared with Host OS as the io throughput is better.

dyanakiev avatar Dec 26 '21 12:12 dyanakiev

Had similar problems with wsl2. It looks you've created directory inside your ubuntu with another user. Try just to change permissions for that directory recursively.

nbah1990 avatar Dec 28 '21 05:12 nbah1990