Hi,
so if you use a standard lib they are all linked (known by) with the Language Server.
For example in a Robot file
Library String
Is automatically completed, one can use “go to Definition” and all underlying Keywords are shown.
I would like to achieve this behavior with some libs installed via pip eg
I tryied to link those file into /usr/local/lib/python3.6/dist-packages/robot/libraries (which all std. libs are located) and include those files in the init.py
STDLIBS = frozenset(('BuiltIn', 'Collections', 'DateTime', 'Dialogs', 'Easter',
'OperatingSystem', 'Process', 'Remote', 'Reserved',
'Screenshot', 'String', 'Bing', 'Telnet', 'XML'))
note: I am currently using Visual Studio Code and the RF Language server
one but ugly solution is to use a Ressource file used in the venv
Resource ../venv/lib64/python/site-packages/FancyLib/robotframework-Keyword-Lib-collection/resources/FancyKeywordLibrary/Fancy.resource
Other Libs are using
class RequestsLibrary(RequestsKeywords):
version = VERSION
ROBOT_LIBRARY_SCOPE = ‘GLOBAL’
But this is just for the Python/RF binding at runtime.