lte2000 / intellibot

IntelliJ/PyCharm plugin for Robot Automation Framework
https://github.com/lte2000/intellibot
MIT License
91 stars 26 forks source link

Support for the new IF in Robot Framework 4.x #20

Closed sd-yazzoom closed 3 years ago

sd-yazzoom commented 3 years ago

I'm currently using the 4.0b1 of robot framework and the good news is that intellibot is working quite nicely with the newer robot framework version, so not much will need to be changed to make it compatible I think.

One thing that needs changing however is support for the new IF (ELSE ELSEIF).

As a workaround I'm currently defining the new syntax as keywords (in a common resource file I use for all my tests):

# Preliminary support RF 4.x

IF
    No Operation

ELSE
    No Operation

ELSE IF
    No Operation

The framework is smart enough to ignore it, and the plugin is smart enough to no longer see IF, ELSE and ELSE IF as missing keywords! (END was already covered by the new FOR loop)

This is very "hacky" though, and I would love to see a more robust fix when the new RF version will be launched.

lte2000 commented 3 years ago

code in dev_0.10.143.392. Please download and install the intellibot.jar from https://github.com/lte2000/intellibot

sd-yazzoom commented 3 years ago

thanks @lte2000 ! Installed it and will give some feedback/close the ticket after playing around with it for a while. First impression... awesome! :-)

sd-yazzoom commented 3 years ago

Been using it for a few days now, works like a (Py)charm, thanks again @lte2000 !