Skip to content

ERB file with dash (-) in the filename causing parsing issues when ERB is in the file #388

Open
@silasb

Description

I have several ERB files that have dash in the filename which cause:

Exception occurred when processing: lib/pdfs/templates/xyz/discounts-savings_table/additional-pairs-of.svg.erb
If this file cannot be processed by erb_lint, you can exclude it in your configuration file.
undefined method `begin' for an instance of RuboCop::Cop::Offense::PseudoSourceRange

If I rename the file to use underscores instead of dashes it parses fine OR if the file contains dashes in the name, but contains no ERB it parses fine.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions