Community
Participate
Working Groups
Right now we have no scanner discovery working for remote builds. This will probably be tricky to do, as the existing scanner info/scanner discovery systems in CDT are a mess.
Created attachment 113772 [details] proposed patch This patch gets remote scanner discovery to work, barely... The patch adds a remote scanner discovery profile, but I cannot find any way to set it on a project automatically. The only way to get it to work is to manually select it from the Discovery Options property page. And even then it does not seem to work for Remote Makefile projects. None of the collectors provided by CDT worked, they all just seemed to ignore the collected data. I ended up creating my own collector that writes the discovery paths and macros directly to the project description. So the paths don't show up as "built in", but at least they do show up and the indexer can use them. Also, after the discovery runs the paths don't show up right away. This is clearly a bug. If you close and reopen the project the paths show up. The patch only provides scanner discovery for gcc. Most of it is reusable for xlc, but I think we would need a separate plugin for that. Scanner Discovery in CDT is so broken, I think its a miracle I got this to work at all...
Whoops, there are three calls to System.out.println() in ProjectDescriptionCollector.contributeToScannerConfig() that need to be removed.
I have applied this patch.
Mike, I think we should mark this fixed and open some separate bugs for any of the remaining scanner info issues (which result from CDT). If we can hack in some workarounds then we can track them separately. What do you think?
(In reply to comment #4) Yeah, close the bug.
Ok I'm marking this as FIXED. Mike, please open any new bugs you require to track any remaining issues.