lte2000 / intellibot

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

Intellibot does not support new FOR syntax #3

Closed zastress closed 4 years ago

zastress commented 4 years ago

Starting with RF 3.1 there is a new syntax for FOR loops. Old Implementation:

:FOR    ${animal}    IN    cat    dog    cow
\    Keyword    ${animal}
\    Another keyword

New implementation:

FOR    ${animal}    IN    cat    dog    cow
    Keyword    ${animal}
    Another keyword
END

More details here: https://github.com/robotframework/robotframework/blob/master/doc/releasenotes/rf-3.1.rst#for-loop-enhancements

lte2000 commented 4 years ago

Neither new loop syntax nor old for loop is supported by original Intellibot. You don't see red underline with old : FOR just because it skip inspection explicitly.

I do some quick dev, now it should resolve keyword and variable in the loop correctly (you can see different font used comapring with old plugin). Please try the attached intellibot.jar intellibot.zip

It also support resolve variables using extended syntax, e.g, ${var * 10 + 3}

zastress commented 4 years ago

Installed the plugin in the archive. It seems it only recognizes de END section. See printscreen 2019-11-18_1437 Also, the variable inside the FOR is underlined ( ${PASSWD} ) in this screenshot

lte2000 commented 4 years ago

updated: intellibot.zip

zastress commented 4 years ago

It's ok now.

lte2000 commented 4 years ago

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