Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH/RFC] Completion: Add _composer



Daniel Shahaf wrote on Tue, 18 Dec 2018 00:19 +0000:
> dana wrote on Mon, 17 Dec 2018 17:09 -0600:
> > * Perhaps most questionable is __composer_packages. I couldn't figure out how
> >   to reliably complete arbitrary package names, because Composer is incredibly
> >   slow to return them, and there are so many that it didn't perform much better
> >   when i tried the usual array-caching mechanism. Even asking Composer about
> >   packages listed in the project JSON files is pretty slow, and not always
> >   accurate. To work around those problems i 'seeded' the function with a bunch
> >   of the most popular packages, and then i used `grep -o` to 'parse' the names
> >   out of the JSON files. Hard-coding package names in feels especially weird,
> >   but...?
> 
> Are you familiar with _store_cache and cache-policy?  It's not clear 
> from the comments
> whether you've tried that.

(And sorry for the fullquote. I thought I'd trimmed it.)



Messages sorted by: Reverse Date, Date, Thread, Author