Skip to content

[BUG] File cache does not rebuild when meaningfully changed #636

Description

@Lakitna

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.

Image

When I remove Cute Keyword, the diagnostics do not update. Waiting does not help:

Image

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.

Image

When I add Cute Keyword, it does not show up in IntelliSense. The diagnostics are also not updated. Waiting does not help:

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions