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

Upgrade stringtemplate to version 4 #122

Merged
merged 1 commit into from
Apr 12, 2020

Conversation

MaT1g3R
Copy link
Contributor

@MaT1g3R MaT1g3R commented Apr 10, 2020

- Stringtemplate3 is very outdated (last commit in 2015) and depends on a
  outdated version of antlr. It's causing this issue: 47degrees/sbt-microsites#457

- The `setAttributes` method in stringtemplate3 was always broken,
  as it goes down a different code path compared to `setAttribute` in
  stringtemplate3.

  See [setAttributes](https://github.com/antlr/stringtemplate3/blob/e60b23544539d64d2f57a87e87a5b383cc2b0ba9/src/org/antlr/stringtemplate/StringTemplate.java#L918)
  and [setAttribute](https://github.com/antlr/stringtemplate3/blob/e60b23544539d64d2f57a87e87a5b383cc2b0ba9/src/org/antlr/stringtemplate/StringTemplate.java#L570)
  for details,

  Stringtemplate4 removed the `setAttributes` method, so I had to write a
  custom function to handle the '.' characters in the properties.
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MaT1g3R!

@eed3si9n eed3si9n merged commit 1ed10cb into foundweekends:master Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants