-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSP library search path does not match Robot Framework #266
Comments
It's true that Robot Framework tries to find imports like |
Describe the bug
Robot Framework searches relative library imports based on
sys.path
as a fallback. LSP only searches relative to the working directory. As a result, certain imports work while running robots, but fail when creating libspec for LSP.RF implementation visible here: https://github.com/robotframework/robotframework/blob/f45747dfec1095359379ba0088cecd955a83e576/src/robot/utils/robotpath.py#L157
Originally reported on forums: https://forum.robocorp.com/t/vscode-new-create-robot-project-cant-find-python-keywords/589
To Reproduce
Steps to reproduce the behavior:
tasks.robot
with LSPor
libraries
toPYTHONPATH
tasks.robot
write:Expected behavior
Not sure. This functionality of RF doesn't seem to be documented anywhere and works differently than I expected. It is however a difference, so decided to document it here as an issue.
Versions:
Logs
See attached forum post
The text was updated successfully, but these errors were encountered: