Skip to content

v0.6.0

Compare
Choose a tag to compare
@d-biehl d-biehl released this 27 Feb 23:45
· 1689 commits to main since this release
v0.6.0
17ebe8e

added

  • Improved variable analysis

    • In an expression like ${A+'${B+"${F}"}'+'${D}'} ${C}, every single 'inner' variable will be recognized, you can hover over it, it can be found as reference, you can go to the definition, ...
    • Also in python expressions like ${{$a+$b}} variables are recognized
    • Support for variables in expression in IF and WHILE statements
      • in something like $i<5 the variables are recognized
    • Only the name of the variable is used for hovering, goto and ..., not the surrounding ${}
  • Support importing variable files as module for RobotFramework 5

  • Depending on selected testcase names contains a colon, a semicolon is used as separator of prerunmodifier for executing testcases

    • fixes #20
    • note: i think you should not use colons or semicolon in testcase names ;-)
  • Improve Debugger

    • The debugger shows variables as inline values and when hovering, it shows the current variable value not the evaluted expression
    • Variables in the debugger are now resolved correctly and are sorted into Local/Test/Suite and Global variables
    • Fix stepping/halt on breakpoint for IF/ELSE statements if the expression is evaluated as False
    • Rework of stepping and stacktrace in the debugger
      • Only the real steps are displayed in the stack trace
  • Optimize keyword matching

    • all keyword references also with embedded arguments + regex are found
    • ambigous embedded keywords are recognized correctly, also with regex
    • speed up finding keyword references
    • fix #28
    • addresses #24
  • Ignoring robotcode diagnostics

    • you can put a line comment to disable robotcode diagnostics (i.e errors or warnings) for a single line, like this:
    *** Test cases ***
    first
        unknown keyword  a param   # robotcode: ignore
        Run Keyword If    ${True}
        ...    Log    ${Invalid var        # robotcode: ignore
        ...  ELSE
        ...    Unknown keyword  No  # robotcode: ignore
  • Propagate import errors from resources

    • errors like: Resource file with 'Test Cases' section is invalid are shown at import statement
    • Note: Robocop has it's own ignore mechanism
  • Initialize logging only of "--log" parameter is set from commandline

  • Optimize loading of imports and collecting keywords

    • this addresses #24
    • one of the big points here is, beware of namespace pollution ;-)
  • Full Support for BDD Style keywords

    • includes hover, goto, highlight, references, ...