Closed XDK-Support closed 5 years ago
Hi,
indeed, referencing variables is not supported everywhere intentionally. We might extend this in the future but for now in some places static values must be used.
We will look into your println
-bugs, thanks for the report!
I can reproduce the UI freeze
The UI freeze looks like an Xtext bug for me. Still trying to break it down to something small and reproducible. It is related to syntax highlighting: if the string-like highlighting is removed (ProgramDslSemanticHighlightingCalculator) the UI does not freeze anymore.
The UI freeze is fixed with PR https://github.com/eclipse/mita/pull/294
The last issue with in
and as
within println
statements will be fixed with PR https://github.com/eclipse/mita/pull/322
Closing due to fixes in #294 and #322
Mita in general seems to struggle with interpreting variables and brackets in certain functions, here are a few examples i stumbled upon using the XDK 3.5 workbench
Entering variables
same with setups, this also is the correct type for standby_time
println will cause the workbench to freeze up, but be accepted in mita code
but will result with generated code in application.c
if we leave out the round bracket
resulting in
other Mita println issues: