Official Murl Engine Forum
Unintended TraceUnusedAttributes()? - Printable Version

+- Official Murl Engine Forum (http://murlengine.com/forum)
+-- Forum: Murl Engine (http://murlengine.com/forum/forumdisplay.php?fid=5)
+--- Forum: General (http://murlengine.com/forum/forumdisplay.php?fid=8)
+--- Thread: Unintended TraceUnusedAttributes()? (/showthread.php?tid=216)



Unintended TraceUnusedAttributes()? - Stefan - 08 Jan 2015

Hi,
when using the "excludeForUserConfigurations" attribute in a package.xml file, probably unintended warnings will show up in the debug console.
Example:

<Resource id="gfx_popup_youwin_en"          fileName="gfx_popup_youwin_en_mid1136.png"
       includeForUserConfigurations="MID"
       includeForOperatingSystems="IOS,OSX"
       excludeForUserConfigurations="DEBUG_ANDROID_QUALITY_LEVELS"
       outputStreamFormat="WEBP"
       outputPixelFormat="R8_G8_B8_A8"
       outputCompressionType="LOSSY"
       outputCompressionQuality="90"/>


Output:
Murl::Util::XmlParser::TraceUnusedAttributes(), line 208: Resource::XmlPackage: Package 'popup_youwin_en.murlres': Line 13, unknown attribute "outputStreamFormat"
Murl::Util::XmlParser::TraceUnusedAttributes(), line 208: Resource::XmlPackage: Package 'popup_youwin_en.murlres': Line 13, unknown attribute "outputPixelFormat"
Murl::Util::XmlParser::TraceUnusedAttributes(), line 208: Resource::XmlPackage: Package 'popup_youwin_en.murlres': Line 13, unknown attribute "outputCompressionType"
Murl::Util::XmlParser::TraceUnusedAttributes(), line 208: Resource::XmlPackage: Package 'popup_youwin_en.murlres': Line 13, unknown attribute "outputCompressionQuality"



RE: Unintended TraceUnusedAttributes()? - dizzy - 09 Jan 2015

Thanks for the report, the fix is already done and will be available with the upcoming update (next week).

The problem only occurred when there were both an "include" and "exclude" condition for a given item at the same time.

Best regards,

dizzy