-
Notifications
You must be signed in to change notification settings - Fork 185
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
Files with classes that declare itself to be it's parent can cause an infinite loop when indexing. #669
Comments
I'm curious: The example code throws Fatal Errors with php7.2 and php7.3; I agree that it shouldn't cause infinite loops in a parser/language-server -- why such code would be written alludes me! Would you care/be so kind to elaborate? |
There is no reason. But it shouldn’t cause infinite loops |
@tomterl In my case, a project I'm working on uses a dev dependency (phan) that includes code that's deliberately written to trigger an error among it's tests. Furthermore, simply typing an error like this by mistake is plausible, especially given that VSCode and this extension supports live feedback as you type. |
@d0x2f you might wanna suggest to Phan to not ship tests in their package |
Now that I'm thinking about it, during typing this might easily occur ( |
…nt can cause an infinite loop when indexing. felixfbecker#669
🎉 This issue has been resolved in version 5.4.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
I noticed this happening often when a project had phan installed as a dependency.
As a minimal example, the server will enter an infinite loop trying to index this file:
PR to follow.
The text was updated successfully, but these errors were encountered: