lte2000 / intellibot

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

builtin keywords of resource files are not recognized #27

Closed zrqsar closed 2 years ago

zrqsar commented 3 years ago

Error : No keyword with name 'Make Connection' found.

Make Connection is a keyword in DBLibrary2.py with below implementation :

    def make_connection(hostname, port, sid, username, password):
        global connection
        global cursor
        my_dsn = cx_Oracle.makedsn(hostname,port,sid)
        connection = cx_Oracle.connect(username, password, dsn=my_dsn)
        cursor = connection.cursor()

DBLibrary2 is imported in .robot file as "Library DBLibrary2" under Settings

code : Run keyword if '${system}' == 'Windows' Run keyword Make Connection

pycharm version : 2020.3

lte2000 commented 3 years ago

@zrqsar I can't reproduce the issue you decribed.

I just create DBLibrary2.py with the function make_connection: image

and create robot file to use that keyword, it can resolve that keyword, and can jump to that function with ctrl+click: image