-
-
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
Reindex on Composer Require #299
Comments
It should be sufficient to reindex the project (i.e. not forcibly reindex), as the former will scan for new, updated and removed files. That way you don't have to wait as long. Regarding your question: I think it may be possible, but I don't think there's an easy way to currently do it. In theory the only thing the "Reindex" command does is send a reindex request to the PHP server with the paths of the project attached, after which the server will do the rest. Currently it would involve doing anything of the following:
This may or may not be too complex for what you're looking for :-). The last option is to simply wait, as this (watching file modifications) is something that is on the roadmap. I can't give any guarantees as to when it might be implemented, though. I can say it likely won't be anytime soon on my part, as Atom's currently already working towards it, so I'd rather wait to save myself work on things I'll have to remove later :-). |
Another way to do this would just be to watch the |
I agree. There currently is some bandaid code that listens to "Git repository updates" (when they happen isn't really clear) from Atom and fires an index for the project when they happen. File watching would be a much better solution and is tracked in [1] for the core. However, Atom now might implement this client-side, which would make this substantially easier for me (and according to the Language Server Protocol it's not the server's responsibility to actually watch paths, only to process events related to them). File watching would also work for any file, i.e. there wouldn't be a need to watch (Closing this to keep the discussion centralized.) |
I use the Composer CLI to install packages, like
However the classes in the package do not become visable in Atom until I forcibly re-index the project.
Is there a way I can invoke the reindex? (i.e. add a script to my
composer.json
or something?)The text was updated successfully, but these errors were encountered: