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

Failed to index file - TypeError: Cannot read properties of undefined (reading 'match') #3115

Open
theMajc opened this issue Nov 15, 2024 · 0 comments
Labels

Comments

@theMajc
Copy link

theMajc commented Nov 15, 2024

Describe the bug
Fails to index file, causes the class being used not being recognized, underlines its uses as error.

To Reproduce

  • Create a new PHP project having "async-aws/core" dependency.
  • Open the project folder with VS Code
  • Open the intelephense output log in VS Code to see error

Expected behavior
Index the async-aws/core/src/Configuration.php class.
Able to have intelisense on use AsyncAws\Core\Configuration.

Screenshots
image
image

[Info  - 3:04:55 PM] Indexing started.
[Error - 3:05:05 PM] Failed to index file:///Users/u/other-projects/test-intelephense/vendor/async-aws/core/src/Configuration.php TypeError: Cannot read properties of undefined (reading 'match')
    at t.isWhitespace (/Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:3177359)
    at Y (/Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2740668)
    at /Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2741749
    at W (/Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2741791)
    at Y (/Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2740433)
    at l (/Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2736748)
    at r (/Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2732012)
    at /Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2745017
    at e.parse (/Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2745064)
    at /Users/u/.vscode/extensions/bmewburn.vscode-intelephense-client-1.12.6/node_modules/intelephense/lib/intelephense.js:2:2474194

Platform and version
Intelephense version

  • v1.12.6 [ERROR]
  • v1.12.0 [ERROR]
  • v1.10.4 [WORKING]

VS Code version 1.95.3

OS attempted on

  • Ubuntu 18
  • Ubuntu 24
  • MacOS 14.6.1

NodeJS version

  • 16
  • 22
@bmewburn bmewburn added the bug label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants