Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PathGroupLoader portability on Windows and multiple drives #2

Open
StephaneSeyvoz opened this issue May 16, 2013 · 0 comments
Open

Comments

@StephaneSeyvoz
Copy link

Hello,

Class org.antlr.stringtemplate.PathGroupLoader.java has an issue concerning Windows-specific applications, when the program using StringTemplates is located on a hard drive (e.g. "C:") and you run the program from another drive (e.g. "D:"), having it in your path.

Error message in that case:
"String template error: no such group file " (+ file name)

At line 36, tokenization is done thanks to the ":" separator which is wrong with Windows (think about "C:"...).

Suggestion: use File.pathSeparator instead and the problem is solved. An other solution for users is to override the constructor and do this instead.

Best regards !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant