Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error: UNKNOWN: unknown error, lstat" during indexing #280

Closed
dgunay opened this issue Feb 27, 2019 · 3 comments
Closed

"Error: UNKNOWN: unknown error, lstat" during indexing #280

dgunay opened this issue Feb 27, 2019 · 3 comments

Comments

@dgunay
Copy link

dgunay commented Feb 27, 2019

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.

@dgunay
Copy link
Author

dgunay commented Feb 27, 2019

My bad, duplicate of #260

I am using WSL so the new fastglob dependency causes issues when reading WSL symlinks.

@dgunay
Copy link
Author

dgunay commented Feb 27, 2019

Duplicate of #260

@dgunay
Copy link
Author

dgunay commented Feb 27, 2019

Was able to fix it by:

  1. Deleting vendor/*

  2. Running composer install from Powershell/cmd

WSL users take note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants