Using latest (1.0.3) on Win10 Enterprise x64.
When I start up VS Code and Intelephense begins indexing, it very quickly fails. The log looks like this:
[Info - 10:51:58 AM] Initialising
[Info - 10:51:58 AM] Reading state from c:\Users\REDACTED\AppData\Roaming\Code\User\workspaceStorage\e2655c0a9e6d9d18301db0135138e08f\bmewburn.vscode-intelephense-client\13948457.
[Info - 10:51:58 AM] Initialised in 12 ms
[Info - 10:51:58 AM] Intelephense 1.0.3
[Info - 10:51:58 AM] Indexing started.
[Error - 10:51:58 AM] Error: UNKNOWN: unknown error, lstat 'c:\Users\REDACTED\vendor\bin\php-parse'
[Info - 10:52:00 AM] Indexing ended. Elapsed 2s.
I do see that vendor/bin/php-parse is there, but I don't know why it is causing this problem.
I deleted vendor/* and ran composer install again, now I get this:
# (next line happens for hundreds of files)
'c:\Users\REDACTED\vendor\composer\9d03df7e\vimeo-psalm-db3ddaa\tests\stubs\partial_class.php'
[Warn - 10:57:16 AM] Error: ENOENT: no such file or directory, open
[Info - 10:57:16 AM] Indexing ended. Elapsed 0s.
[Info - 10:57:19 AM] Indexing started.
[Info - 10:57:20 AM] Indexing ended. Elapsed 0s.
[Error - 10:57:37 AM] Error: UNKNOWN: unknown error, lstat 'c:\Users\dtg31259\Documents\Projects\agile_fit_check\code\backend_code\vendor\bin\phpunit'
Rolled back to 1.0.0 and I get this while editing a file after indexing:
[Info - 11:01:20 AM] Writing state to c:\Users\REDACTED\AppData\Roaming\Code\User\workspaceStorage\e2655c0a9e6d9d18301db0135138e08f\bmewburn.vscode-intelephense-client\9e4a60d.
[Info - 11:01:20 AM] Finished writing state to c:\Users\REDACTED\AppData\Roaming\Code\User\workspaceStorage\e2655c0a9e6d9d18301db0135138e08f\bmewburn.vscode-intelephense-client\9e4a60d in 0.3s
[Error - 11:01:30 AM] Failed to apply changes to file:///c%3A/REDACTED/FileIJustEdited.php
[Error - 11:01:30 AM] Failed to apply changes to file:///c%3A/REDACTED/FileIJustEdited.php
[Error - 11:01:30 AM] Failed to apply changes to file:///c%3A/REDACTED/FileIJustEdited.php
[Error - 11:01:32 AM] Failed to apply changes to file:///c%3A/REDACTED/FileIJustEdited.php
[Info - 11:01:42 AM] Indexing started.
(node:1760) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'c:\c%3A\Users\REDACTED\FileIJustEdited.php'
(node:1760) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1760) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I'm currently rolled back to 0.8.8 and it works fine. Hope this helps fix up 1.0.x, would love to get back on the latest version but it's currently unusable on my machine.
My bad, duplicate of #260
I am using WSL so the new fastglob dependency causes issues when reading WSL symlinks.
Duplicate of #260
Was able to fix it by:
Deleting vendor/*
Running composer install from Powershell/cmd
WSL users take note.
Most helpful comment
Was able to fix it by:
Deleting
vendor/*Running
composer installfrom Powershell/cmdWSL users take note.