You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using const strings in the code, the generated XML is incorrect. Instead of correctly including the value of the constant in the XML, it generates empty sting.
Hello @jprokopski! Thank you for contributing that issue to the project. We really appreciate your time doing this.
Currently, constants, static fields and other value storing structures are not supported in the compiler. We know that this is one of the most useful features which would allow reusability of parts of the configuration. The feature has as well few problems which we need to discuss and solve, like how to do referencing of elements across files should work or how to do a value inlining in the expressions. We definity want to bring that in as a feature in the future releases.
As a part of this issue, we can improve the code to report an unsupported error to user when the unsupported policy parameter value is used. The code which handles policy parameters is now silently putting the empty string when unknow structure is used. Reporting the error there should cover the issue for now until the feature will not be implemented.
What do you think? Is the above fix acceptable before we will work on the feature?
Report
When using const strings in the code, the generated XML is incorrect. Instead of correctly including the value of the constant in the XML, it generates empty sting.
Expected Behavior
should return
Actual Behavior
returns
Steps to Reproduce the Problem
Component
Compiler
Version
v1.0.0
Contact Details
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: