-
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
RF Language Server Plugin for Pycharm: Cannot find external rule file for robocop #703
Comments
@horsewithnoname1985 it should be fixed by fabioz in lsp already but it was actually issue in Robocop as well - we are searching for config files automatically, and thus our working directory is often different that config file directory. Relative paths in config then would point to wrong paths. In the next release of the Robocop it should be fixed for |
Thank you, @bhirsz. For me, version 0.49 fixed the issue. |
Describe the bug
When using a custom robocop rule file (here:
custom_robocop_rules.py
) the RF Language Server Plugin somehow does not find it and the very first line of any robot file in my project (commonly contains *** Settings ***) is marked as erroneous and its tooltip shows the message::Though when putting the rule file's absolute path into the .robocop file
(and reopen the project), the error is not shown anymore (of course,
using absolute paths is not an option, since the project is version
controlled and shared across the team).
To Reproduce
Steps to reproduce the behavior:
custom_robocop_rules.py
.robocop
config file (use path relative to project root path):--ext-rules custom_robocop_rules.py
robocop
via command lines -> successfully applies custom rulesExpected behavior
Any violations of custom rules are marked
Versions:
Logs
I found this log message in the .intellij-rf-ls-2022-06-13-18898.log:
The text was updated successfully, but these errors were encountered: