Compilation error: IntelliJ IDEA build tool and String Templates
See original GitHub issueDescribe the bug String Templates can’t be turned off. This causes a compilation error in IntelliJ IDEA.
To Reproduce Test project: https://github.com/marksto/spring-manifold-test
Open it in the IntelliJ IDEA.
Pay attention on how it highlights the syntax of the @Value
annotation’s value.
Try to build or run the project with IntelliJ IDEA built-in tools:
Expected behavior
The absent strings
plugin argument actively disables Manifold’s string templating.
Project compiles without errors.
There is no need in extra @DisableStringLiteralTemplates
annotations (this is too invasive).
Desktop (please complete the following information):
- OS Type & Version: “mac os x”, version: “10.14.3”, arch: “x86_64”, family: “mac”
- Java/JDK version: Java version: 1.8.0_172, vendor: Oracle Corporation
- IntelliJ IDEA version: 2018.1.2
- Manifold version: 0.59-alpha
- Manifold IntelliJ plugin version: 0.59-alpha
Additional context
The mvn clean install
(and the test suite in particular) runs successfully.
One can mitigate this with extra @DisableStringLiteralTemplates
annotations (see #44).
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
I see. I am considering an option to qualify a string literal like this:
Where only string literals starting with
$"
will be processed for string templates. Would that work for you?Yes, this feature will be previewed in a future version