-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Indexing hangs endlessly #497
Comments
Could you post the output of the developer tools console? Don't forget to enable verbose mode there. There may be some useful output there. |
Before posting some endless output... ;-) |
I have the same problem I'm working on: atom -v output
Windows 10 1903 OS The message I get that is repeating itself
The whole console.log content exported https://pastebin.com/h85mUAZk (to long to paste here) |
@ThomasLandauer I don't think it's related to the Atom version. This problem existed before as well, but it appears to have gotten worse recently, perhaps this has to do with recent PHP versions changing something (though I already fixed a bunch of errors in e.g. PHP 7.4). If in your console you see errors related to "Entity of type 'Serenata\Indexing\Structures\File' for IDs id(...) was not found", this is likely related to this upstream issue. |
I tried reporting this earlier but my ticket got lost. I've noticed that running PHP apps in Docker containers, when source code is shared through a Docker volume, make indexing repeat and repeat and repeat. Setting Another issue is that after closing all PHP file tabs, the Serenata server process is killed. When opening a new file tab after this, the process will be booted again and it will then commence to reindex all files, which will take ages on large projects. This is, sorry, very poor behavior. There seem to be other problems that trigger massive reindexing as well, but I haven't exactly figured them out yet. My presumption is that the Serenata Atom plugin is listening to some very generic event and will basically trigger reindexing even when just moving the text cursor around in a document. Serenata server is also ignoring the In my case the index size is about 180 MB. Before I learned to exclude files properly via |
Okay, I've noticed other bad behavior too. Flushing Symfony caches while Atom editor is open causes the Atom plugin to trigger a reindexing on the Serenata server. This seems to be a bug both in the Atom plugin and Serenata server code. My Serenata config looks like this: {
"uris": [
"file:///home/.../bundles",
"file:///home/.../backend/src",
"file:///home/.../backend/vendor"
],
"indexDatabaseUri": ":memory:",
"phpVersion": 7.4,
"excludedPathExpressions": [
"/backend/phpunit",
"/backend/var"
],
"fileExtensions": [
"php"
]
} Folder It also seems that if I flush the cache again while a previous Serenata indexing operation is still being executed, the Serenata server will enter a semi-infinite loop and consume massive amounts of CPU time but never finish whatever it is doing. It also seems to not dispatch any updates back to the Atom client. (Normally it would announce progress and what file it finished indexing.) |
I was hoping that #483 (comment) fixed it, but obviously it didn't :-(
Status: Indexing starts; when I change something in a file, it restarts. Sometimes it even (re)starts by itself; this goes on for hours...
The text was updated successfully, but these errors were encountered: