TysonAndre / vscode-php-phan

Phan - PHP Static Analysis for VS Code
Other
24 stars 4 forks source link

Unable to use the extension with WSL2 (Windows Subsystem for Linux 2) #96

Open ghost opened 3 years ago

ghost commented 3 years ago

Current Behavior

  1. Unable to install the extension in a WSL2 ubuntu environment (there is no "install on remote" button, settings get ignored when connected to WSL2).
  2. 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

  1. Try to use the extension while connected to a remote (WSL2) folder.

Specifications

TysonAndre commented 3 years ago

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.