Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

VSCode text and cquery's internal representation frequently falls out of sync #792

Open
@trond-snekvik

Description

@trond-snekvik

While using cquery with VSCode, I frequently have to reload the window (restarting cquery) because of errors like these:

image

image

Note that in the first error the offending line hasn't been changed, although the ones before it were, triggering similar errors in multiple locations. The errors never seem to occur before the change that made them appear. Reverting the change that triggers the errors does not resolve them.

The error occurs randomly at a rate of once or twice per hour.

Occasionally, the error seems to resolve itself during auto completion requests around the broken area, but this seems rare, and I suspect it's just cquery crashing and restarting.

As a workaround, I think an option to run the text sync in full update mode should resolve the issue, but I don't know enough about the internals of cquery to test it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions