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
System functions such as template.execute() appear not to work when there are new lines following parentheses, which breaks with conventions of most programming languages.
Code Style > Indentation does reference "brace/bracket/parenthesis on multiline constructs". So having parentheses behave similar to braces and brackets is expected.
1. Minimal reproduce step (Required)
This is an example of a template function would would be good to wrap due to line length:
4. What is your KCL components version? (Required)
kcl version
0.8.7-darwin-arm64
The text was updated successfully, but these errors were encountered:
excalq
changed the title
System Functions disallow use of line wrapping (line beaks, newlines)
System Functions disallow use of line wrapping (newlines around params)
May 16, 2024
Bug Report
System functions such as
template.execute()
appear not to work when there are new lines following parentheses, which breaks with conventions of most programming languages.Code Style > Indentation does reference "brace/bracket/parenthesis on multiline constructs". So having parentheses behave similar to braces and brackets is expected.
1. Minimal reproduce step (Required)
This is an example of a template function would would be good to wrap due to line length:
The above will produce an
InvalidSyntax
error.The following, using
\
does compile, but feels unwarranted given expected syntax.2. What did you expect to see? (Required)
That, like braces/brackets, parentheses ignore following/leading newlines during parsing.
3. What did you see instead (Required)
The following compiler error:
4. What is your KCL components version? (Required)
kcl version
0.8.7-darwin-arm64
The text was updated successfully, but these errors were encountered: