Skip to content

[core] Stop falling back on Java when language is unknown #3779

@oowekyala

Description

@oowekyala

...

I assume, you have used the file extension ".html" for your html file? Then, as no language module supports ".html" files, we fall back trying to parse it as a Java file - that's the exception stacktrace you are seeing.

We might change this behaviour in the future to display a nicer message, such as "HTML is not supported".

...

Originally posted by @adangel in #3521 (comment)

Falling back on Java creates confusing error messages (parsing errors from the java parser). It's more sensible to report "unknown language" or so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions