antlr / antlrcs

The C# port of ANTLR 3, StringTemplate 3, and StringTemplate 4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"new TemplateGroupFile(fileName)" only works with full file path

brikken opened this issue · comments

The constructor for a new template group, created from an .stg file, only works when a full path is supplied. A call like:
var stg = new TemplateGroupFile("Template.stg");
gives a System.UriFormatException

I suggest calling System.IO.Path.GetFullPath on the supplied filename, before creating the Uri.

I just ran into the same issue, and created PR #93, which fixes this.

Addressed by #87