Skip to content
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

Robocop on CI is failing #911

Open
krassowski opened this issue Mar 13, 2023 · 0 comments
Open

Robocop on CI is failing #911

krassowski opened this issue Mar 13, 2023 · 0 comments

Comments

@krassowski
Copy link
Member

I am going to temporarily disable robocop as it started failing with:

19 paths: robocop --exclude empty-lines-between-sections --exclude file-too-long --exclude missing-doc-keyword --exclude missing-doc-suite --exclude missing-doc-test-case --exclude todo-in-comment --exclude too-long-test-case --exclude too-many-arguments --exclude too-many-calls-in-keyword --exclude too-many-calls-in-test-case --exclude wrong-case-in-keyword-name --configure line-too-long:line_length:200
Traceback (most recent call last):
  File "/usr/share/miniconda3/envs/test/bin/robocop", line 10, in <module>
    sys.exit(run_robocop())
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/run.py", line [31](https://github.com/jupyter-lsp/jupyterlab-lsp/actions/runs/4093289787/jobs/7058620947#step:12:32)7, in run_robocop
    linter.run()
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/run.py", line 84, in run
    self.run_checks()
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/run.py", line 129, in run_checks
    found_issues = self.run_check(model, str(file))
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/run.py", line 148, in run_check
    for issue in checker.scan_file(ast_model, filename, source, templated)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/checkers/__init__.py", line 103, in scan_file
    self.visit_File(ast_model)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/checkers/__init__.py", line 108, in visit_File
    self.generic_visit(node)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/ast.py", line [41](https://github.com/jupyter-lsp/jupyterlab-lsp/actions/runs/4093289787/jobs/7058620947#step:12:42)5, in generic_visit
    self.visit(item)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robot/parsing/model/visitor.py", line 49, in visit
    visitor(node)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/ast.py", line 417, in generic_visit
    self.visit(value)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robot/parsing/model/visitor.py", line [49](https://github.com/jupyter-lsp/jupyterlab-lsp/actions/runs/4093289787/jobs/7058620947#step:12:50), in visit
    visitor(node)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/checkers/errors.py", line 101, in visit_Statement
    self.parse_errors(node)
  File "/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/robocop/checkers/errors.py", line 110, in parse_errors
    self.handle_error(node, node.error)
AttributeError: 'SectionHeader' object has no attribute 'error'

... ERROR 1 robocop --exclude empty-lines-between-sections --exclude file-too-long --exclude missing-doc-keyword --exclude missing-doc-suite --exclude missing-doc-test-case --exclude todo-in-comment --exclude too-long-test-case --exclude too-many-arguments --exclude too-many-calls-in-keyword --exclude too-many-calls-in-test-case --exclude wrong-case-in-keyword-name --configure line-too-long:line_length:200

Which was previously reported in MarketSquare/robotframework-robocop#579 but there seems to be no resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant