Describe the bug
The internal Robotcode cache is not always rebuild for files when it should be. This can lead to stale diagnostics and highlighting being shown to the user.
Steps To Reproduce
Note on screenshots: Yellow underlines are created by RoboCop due to missing docstring.
When removing a keyword
Given the .resource file below. All diagnostics are correct.
When I remove Cute Keyword, the diagnostics do not update. Waiting does not help:
I expect Beautiful Keyword to be recognized as used. And the full keyword name to be the same styling.
When adding a keyword
Given the .resource file below. All diagnostics are correct.
When I add Cute Keyword, it does not show up in IntelliSense. The diagnostics are also not updated. Waiting does not help:
I expect Cute Keyword to be recognized as unused.
I expect Beautiful Keyword to be recognized as used.
I expect Cute Keyword to show up in IntelliSense.
Workaround
Run command RobotCode: Clear Cache and Restart Language Servers
Expected behavior
See reproduction
Screenshots/ Videos
See reproduction
Logs
N/A
Additional context
Please let me know how I can help you with this :)
AI / tooling disclosure
No AI
Desktop (please complete the following information):
- VS Code Version 1.128.0
- RobotCode Version 2.6.2
- OS: Windows 11
- Python Version 3.13.12
- RobotFramework Version 7.2
Describe the bug
The internal Robotcode cache is not always rebuild for files when it should be. This can lead to stale diagnostics and highlighting being shown to the user.
Steps To Reproduce
Note on screenshots: Yellow underlines are created by RoboCop due to missing docstring.
When removing a keyword
Given the
.resourcefile below. All diagnostics are correct.When I remove
Cute Keyword, the diagnostics do not update. Waiting does not help:I expect
Beautiful Keywordto be recognized as used. And the full keyword name to be the same styling.When adding a keyword
Given the
.resourcefile below. All diagnostics are correct.When I add
Cute Keyword, it does not show up in IntelliSense. The diagnostics are also not updated. Waiting does not help:I expect
Cute Keywordto be recognized as unused.I expect
Beautiful Keywordto be recognized as used.I expect
Cute Keywordto show up in IntelliSense.Workaround
Run command
RobotCode: Clear Cache and Restart Language ServersExpected behavior
See reproduction
Screenshots/ Videos
See reproduction
Logs
N/A
Additional context
Please let me know how I can help you with this :)
AI / tooling disclosure
No AI
Desktop (please complete the following information):