vscode-php-phan
vscode-php-phan copied to clipboard
Unable to use the extension with WSL2 (Windows Subsystem for Linux 2)
trafficstars
Current Behavior
- Unable to install the extension in a WSL2 ubuntu environment (there is no "install on remote" button, settings get ignored when connected to WSL2).
- When trying to use the extension in local using the wsl$ share the following error pops up:
ERROR: Unable to read file \\WSL$\UBUNTU-20.04\home\user\dev\SGN\app\Providers\EventServiceProvider.php: SplFileInfo->isReadable() is false, getPerms()=100666(octal)
Steps to Reproduce the Problem
- Try to use the extension while connected to a remote (WSL2) folder.
Specifications
- Extension Version: 1.4.4
- PHP Version: 8.0
- Platform: Windows 10
- Subsystem: Ubuntu 20.04
There seem to have been similar issues with WSL in other applications. https://github.com/microsoft/WSL/issues/4260
If there's a place it could be fixed, it'd be php-src (tsrm_win32_access handling for R_OK in php-src/TSRM/tsrm_win32.c) or WSL itself, probably WSL. I'm not familiar enough with windows programming to know and don't have windows 10 installed.