Skip to content

[BUG] Mojo LSP starts parsing multiple times in Google's Antigravity #42

@JackM33

Description

@JackM33

Actual behavior

Sometimes the Mojo vscode extension/language server appears to be parsing the files multiple times concurrently in Google's Antigravity which causes the language server to never finish and just hangs forever. **Note I have not tested or reproduced this issue with VSCode, but antigravity is a modified fork of vscode so the extension is the same extension.

Image

You can see in the image how the document is being parsed multiple times. I've killed the background parsing processes repeatedly but they keep starting up when I save my file. I'm not sure if this is a bug with the Mojo language server/extension, or if this is an issue with Google's Antigravity. Restarting the LSP Server works to resolve the issue, but it happens frequently enough to become an issue. Sometimes I repeatedly press Ctrl. S to save quickly which might increase the likelihood of the issue, though I can't be certain.

Expected behavior

The language server should parse my documents (when it does successfully parse through the handful of documents I have, it does so in a matter of seconds) It should be quickly parsing each document once and not hanging forever causing syntax highlighting and errors to never resolve.

Steps to reproduce

  • Open some mojo files in Google's Antigravity
  • Make a change to one of the files
  • Press Ctrl S (possibly repeatedly multiple times)
  • Notice that often the Parsing Document notification on the status bar at the bottom hangs at parsing the current file and does not resolve. Clicking on it shows the list of files being parsed and often it shows the same file being parsed multiple times and never finishes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions