Skip to content

[Bug] Broken Parsing Breaks Language Server #18

@SSlinky

Description

@SSlinky

Describe the bug
Whenever parsing throws, the entire LSP throws. Due to error handling, it immediately restarts but breaks again. After five times, it is not restarted.

To Reproduce
Any code that breaks parsing, e.g., a function with no return type.

Code (if relevant)

Public Function Identifier() As 
Attribute Identifier.VB_Description = "Dosctring."
'   Dosctring.
'
'   Args:
'       param1:
'
'   Returns:
'
'   Raises:
'
    Dim result As 
    

    Identifier = result
End Function

Expected behavior
Should be parsed as invalid code. Errors handled by parser if possible, or LSP if not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions