You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] ConfigManager is imported from RoboCop but not available in RoboCop 8 #577
When running the current latest version RobotCode 2.2.0 and RoboCop 8.2.2 in VS Code, the RoboCop formatter/linter does not work anymore. This seems to be because of an invalid import:
ERROR:robotcode.language_server.common.parts.diagnostics.DiagnosticsProtocolPart:ImportError: cannot import name 'ConfigManager' from 'robocop.config' (/home/hcomuser/projects/hoyailog/test/robot/.venv/lib/python3.12/site-packages/robocop/config/__init__.py)
Traceback (most recent call last):
File "/home/hcomuser/.vscode/extensions/d-biehl.robotcode-2.2.0/bundled/libs/robotcode/core/event.py", line 85, in _notify
yield method(*__args, **__kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hcomuser/.vscode/extensions/d-biehl.robotcode-2.2.0/bundled/libs/robotcode/language_server/robotframework/parts/robocop_diagnostics.py", line 60, in collect_diagnostics
return DiagnosticsResult(self.collect_diagnostics, self.collect(document, workspace_folder))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hcomuser/.vscode/extensions/d-biehl.robotcode-2.2.0/bundled/libs/robotcode/language_server/robotframework/parts/robocop_diagnostics.py", line 77, in collect
config_manager = self.parent.robocop_helper.get_config_manager(workspace_folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hcomuser/.vscode/extensions/d-biehl.robotcode-2.2.0/bundled/libs/robotcode/language_server/robotframework/parts/robocop_helper.py", line 62, in get_config_manager
from robocop.config import ConfigManager
ImportError: cannot import name 'ConfigManager' from 'robocop.config' (/home/hcomuser/projects/hoyailog/test/robot/.venv/lib/python3.12/site-packages/robocop/config/__init__.py)
Steps To Reproduce
Steps to reproduce the behavior:
Have RobotCode 2.2.0 and RoboCop 8.0.0 or newer running in VSCode
Check the output of RobotCode Language Server
Desktop (please complete the following information):
Activity
d-biehl commentedon Mar 6, 2026
there is already a pull request for this #571
need to merge it. Will do this next week.
d-biehl commentedon Mar 17, 2026
it is merged in the last version, so I can close this. see here f723d98