-
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
Keywords not imported correctly when resource path contains ${CURDIR} #449
Comments
Actually, reopening, I had misunderstood CURDIR... it maps the current directory of the .robot or .resource, thus, the language server should support it. As a note, I don't really see any reason to use CURDIR at that context (since you can just make the path relative), but the language server should support it anyways. |
@wwuoti |
I had a similar issue and resolved it by specifying a custom variable in my project's {
"robot.variables": {
"RESOURCES":"C:\\my_project\\Resources",
}
} Reference: Configuration setting Then using it like this: *** Settings ***
Resource ${RESOURCES}/my_resource.robot Naturally for Robot Framework, I needed to define the same variable (e.g. in a variable file) and pass it as parameter (using either |
When specifying a resource with a path containing
CURDIR
, the path to the resource is not resolved.Consider the following example:
curdir_import_test.zip
resource1.robot:
But when the resource is imported in
test-importing_form_curdir.robot
Removing
${CURDIR}
from the file path fixes this issue:The text was updated successfully, but these errors were encountered: