AmailP / robot-plugin

Robot Framework support plugin for IntelliJ Idea
Other
72 stars 38 forks source link

Jump to Source / Implementation (Cannot find declaration to go to) #10

Closed Tset-Noitamotua closed 8 years ago

Tset-Noitamotua commented 9 years ago

Hi!

I have a resource file keywords.robot and a module calc.py with a class which contains the implementation of my keywords (code snippets below). And I would like to be able to jump from verify hostname in keywords.robot to def verify hostname(self): in calc.py. In my case this is not possible. Is it not supported to do that or does it have something to do with how I import the implementation as a library?

calc.py module:

class Calculator(BaseLogger):

    def verify_hostname(self):
        privateLog("VERIFY HOSTNAME")

keywords.robot:

*** Settings ***
Library    calc.Calculator    WITH NAME    Calculator

*** Keywords ***

Hostname Überprüfen
    verify hostname

As one can see in the screenshot below when I start typing verify (in the keywords.robot file) code completion works and shows me some definitions from Calculator class of calc.py module (calc.Calculator) - so it knows where the difinition comes from:

image

BUT when I hold CTRL + mouseover over the keyword verify hostname it tells that it cannot find the declaration:

image

(I´m using IntelliJ IDEA 14.0.3 Community Edition.)