Community
Participate
Working Groups
CDT allows the user to choose several preferences for the indexer. These preferences are maintained by the class IndexerPreferences. RDT is not passing these preferences to the remote indexer. There are several set() methods in the StandaloneIndexer class for setting up these options, but they are not being called. I propose to fix this in a similar way to how remote scanner info works. Currently when the remote indexer is invoked it is sent a scanner info provider. The preferences object can also be sent over as well. I also propose that we introduce a parameter object for the subsystem methods that invoke the remote indexer (call it RemoteIndexerData or something). This parameter object will store the scanner info provider and the preferences in a single object that is passed as a single parameter. Otherwise we will end up with too many parameters to these methods. This will also make it very easy to pass additional data to the remote indexer in the future, because adding a field to the parameter object does not require that the signature of the subsystem method be changed. Introduce Parameter Object: http://books.google.ca/books?id=1MsETFPD3I0C&pg=PA295&lpg=PA8&dq=Martin+Fowler+refactoring&output=html&sig=ACfU3U1i3onoccylP-NJQKBIJRA88C5c5Q
I'll leave the target milestone blank on this one so you can self-triage.
Looks like the standalone indexer is ignoring the indexer preferences. I'll open a bug on CDT for that. But for now this is looking to be a lot more complicated than I thought.
Opened bug 251100
Created attachment 115272 [details] preliminary patch This is a patch of the work I have done so far on this bug. I'm just posting it here for safekeeping. Basically it passes the preferences to the remote indexer, however the preferences are ignored.
If there is nothing to do here for this release, then please target this bug at Future.
Created attachment 141455 [details] proposed patch
Fixed in 2.1 and head.