Skip to content

Syntax Error: expected SEMICOLON, Rust Analyzer BugΒ #18745

Open
@PNDTG

Description

#4829

This is the continuation of the closed issue above.

Image

I started having this issue a couple of weeks ago, I'm certain there is no issue with my syntax because even when I remove everything and just leave in the standard main function with the "Hello, World!" text it still gives this error.

The issue goes away if I restart VSCode as people did in the mentioned thread.
It also goes away if I make a new file and copy all my code into it again.

When I run cargo run for that project it builds with no errors.

Although I could not exactly reproduce this error consistently, I think moving lines using Alt+ArrowKeys could cause this sometimes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-salsamight be a salsa issueBroken WindowBugs / technical debt to be addressed immediatelyC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions