Skip to content

NoMethodError location for "":String in on_regexp_add #316

@vinistock

Description

@vinistock

I don't know what Ruby code triggers this error, but we caught it in the Ruby LSP's telemetry. It appears that part is an empty string and then invoking location on it breaks.

Happens on this line

location: regexp_content.location.to(part.location)

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