mtrubs / intellibot

IntelliJ/PyCharm plugin for Robot Automation Framework
https://github.com/millennialmedia/intellibot/wiki
MIT License
159 stars 109 forks source link

Settings/Library Imported from .resource file treated as "unused", even though removing it produces errors #215

Open stdedos opened 5 years ago

stdedos commented 5 years ago

Disclaimer: May be related to #213

On a file, I have

# xyz.resource
*** Settings ***
Library   Collections

and, in the test, I get Keyword not found:

# test.robot
# This is a mock
*** Settings ***
Resource   path/to/xyz.resource
#          ^^^^^^^^^^^^^^^^^^^^ Unused import statement

*** Keywords ***
    Set To Dictionary  &{kwargs}     ANSIBLE_DEBUG=1

or Unused import statement:

# test.robot
# This is a mock
*** Settings ***
# Resource   path/to/xyz.resource

*** Keywords ***
    Set To Dictionary  &{kwargs}     ANSIBLE_DEBUG=1
#   ^^^^^^^^^^^^^^^^^  Keyword not found