vscode-php-phan icon indicating copy to clipboard operation
vscode-php-phan copied to clipboard

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

Open ghost opened this issue 4 years ago • 1 comments
trafficstars

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

  • Extension Version: 1.4.4
  • PHP Version: 8.0
  • Platform: Windows 10
  • Subsystem: Ubuntu 20.04

ghost avatar Apr 26 '21 14:04 ghost

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.

TysonAndre avatar Apr 26 '21 14:04 TysonAndre