[QUESTION] Robotcode resource file paths
We have robot resource files and Settings section Resource paths are actually relative paths, which starts from root_directory_of_our_repo/robot. However when I configure root_directory_of_our_repo/robot.toml file like this, Robotcode IDE doesn't find those resource files:
[profiles.shared] output-dir = "reports" paths = [ "robot" ]
Desktop (please complete the following information):
- VS Code Version 1.96.4 (vscoce devcontainer plugin in use)
- RobotCode Version 0.108.1
- OS: Windows
- Python Version 3.10.16
- RobotFramework Version 7.0.0
- Additional tools obocop, robotidy, devcontainer
How to get jump in to keywords forward and back working with vscode devcontainer? We are trying to move away from Robot Language Server, there this setup works fine but deprecation is reason.
Or is this robot.toml only for e.g. robotcode cli and CI/CD usage and settings.json for vscode IDE? Still, same issue with settings.json in vscode devcontainer env:
`{ "editor.tokenColorCustomizations": { "textMateRules": [ { "scope": "variable.function.keyword-call.inner.robotframework", "settings": { "fontStyle": "italic" } }, { "scope": "variable.function.keyword-call.robotframework", "settings": { //"fontStyle": "bold" } }, { "scope": "string.unquoted.embeddedArgument.robotframework", "settings": { "fontStyle": "italic" } }, { "scope": "entity.name.function.testcase.name.robotframework", "settings": { "fontStyle": "bold underline" } }, { "scope": "entity.name.function.keyword.name.robotframework", "settings": { "fontStyle": "bold italic" } }, { "scope": "variable.name.readwrite.robotframework", "settings": { //"fontStyle": "italic", } }, { "scope": "keyword.control.import.robotframework", "settings": { "fontStyle": "italic" } }, { "scope": "keyword.other.header.setting.robotframework", "settings": { "fontStyle": "bold underline" } }, { "scope": "keyword.other.header.variable.robotframework", "settings": { "fontStyle": "bold underline" } }, { "scope": "keyword.other.header.testcase.robotframework", "settings": { "fontStyle": "bold underline" } }, { "scope": "keyword.other.header.keyword.robotframework", "settings": { "fontStyle": "bold underline" } }, { "scope": "keyword.other.header.setting.robotframework", "settings": { "fontStyle": "bold underline" } }, { "scope": "keyword.other.header.comment.robotframework", "settings": { "fontStyle": "bold italic underline" } }, { "scope": "string.unquoted.escape.robotframework", "settings": { //"foreground": "#FF0000", } } ] },
"editor.semanticTokenColorCustomizations": { "rules": { "*.documentation:robotframework": { "fontStyle": "italic" //"foreground": "#aaaaaa" } } }, "python.defaultInterpreterPath": "/usr/local/bin/python", "[python]": { "editor.defaultFormatter": "ms-python.autopep8" }, "robot.libraries.libdoc.needsArgs": [
"remote",
"fakerlib"
]
,
"robotcode.debug.defaultConfiguration": {
},
"robotcode.robot.pythonPath": [
"/usr/local/bin/python"
],
"python.experiments.optInto": [],
"editor.codeActionsOnSave": {},
"robot.completions.keywords.prefixImportNameIgnore": [
],
"robotcode.robot.paths": [
"/workspaces/lift_integration/robot"
],
"robot.language-server.args": [
]
} ` which python /usr/local/bin/python
And robot test suites are in /workspaces/lift_integration/robot/tests and resources in /workspaces/lift_integration/robot/resources folder. Devcontainer is opened to /workspaces/lift_integration folder.
Not sure if it's your case, but maybe it helps someone. I overlooked this tutorial and solution was quite simple for me. https://docs.robotframework.org/docs/examples/project_structure
Just go to File -> Preferences -> Settings, search for robotcode.robot.pythonPath and add item with ./ to set your relative path