andriyko / sublime-robot-framework-assistant

Robot Framework plugin for Sublime Text3
MIT License
109 stars 43 forks source link

Feature request: Discover variables inside a module/package besides resource file #218

Open frostming opened 6 years ago

frostming commented 6 years ago

Robotframework does support import variables by a python module/package, however, there is no IDE or editor plugin which discovers variables imported by this method correctly.

It would be good to support this, because people usually use a large variable library instead of a file.

aaltat commented 6 years ago

There should be support for discovering variables from variable files. As long they are imported in the test data, command line import is not supported. But are you describing something else, because libraries don't resolve to variables.

frostming commented 6 years ago

Does it search the PYTHONPATH to find the variable module? It seems not from my observation.

aaltat commented 6 years ago

Searching variable files from module search paths is not supported by the plugin. Only libraries are searched from the module search paths. Would you like to make a PR to improve the support.