zen0wu / topcoder-greed

greedy editor for topcoder arena
Apache License 2.0
229 stars 48 forks source link

Contents of greedconf.shared.templateDef are ignored #121

Closed vexorian closed 10 years ago

vexorian commented 10 years ago

120 is fixed but I have a new issue. All the info in my shared.templateDef seem to be getting ignored. At least the data for custom templates is completely gone. In order to set them, I have to modify the data for the language.

zen0wu commented 10 years ago

You mean you have defined something in shared.templateDef in your greed.conf, and these parts get ignored. All other parts are OK?

vexorian commented 10 years ago

It seems the rest is fine.

I got it to work (for c++ only) by replacing shared { with language.cpp. { in my greed.conf. It seems the entirety of the shared.templateDef { section is ignored.

zen0wu commented 10 years ago

Now it should be OK, turns out ConfigFactory.load() will resolve the config object directly, should use ConfigFactory.parseResources