Last modified: 2013-01-20 20:01:12 UTC
In latest git (changes must me from last days) the inclusion of templates fails. The output looks like it's wrapped in <nowiki> Example: http://www.wecowi.de/wiki/2012
How do you figure this is an SMW issue?
You are right. This [1] change switched the namespace to SMW. A preliminary analysis shows that when switching back to the SMWResultPrinter instead of SMW\ResultPrinter, the template parsing works as normal. So something happends with the parsing while in SMW\ResultPrinter. The errors has nothing to do with the ContextSource object. [1] Change-Id: I3c056c5b4c5f6f
I haven't figured out what makes the difference between SMW\ResultPrinter and SMWResultPrinter because when using SMW\ResultPrinter the use parameter includes //use SMWQueryResult, SMWQuery, SMWOutputs; //use Parser, ParserOptions, Sanitizer, DummyLinker, IContextSource;
I made a temp fix [1] which is only to be used until we figure out what is causing the problem. [1] https://gerrit.wikimedia.org/r/#/c/44924/
Probably this https://gerrit.wikimedia.org/r/#/c/44935/
And https://gerrit.wikimedia.org/r/#/c/44936/
James, perhaps you should use an IDE that highlights such errors? Really not something you want to lose time on, and it can easily be spotted by static code analysis :) PhpStorm is great for this, and as MW dev you can get a free license
This particular SMW\ change made me ..., it looks good though just checked a template generate list that was broken before. Again thanks for the swift response.