Code Monkey home page Code Monkey logo

Comments (7)

exterm avatar exterm commented on July 30, 2024

Thank you for this bug report and tracing it upstream to better_html!

from packwerk.

alexevanczuk avatar alexevanczuk commented on July 30, 2024

@remvee

Thanks for the bug report. Since parsing ERB files with CDATA blocks is currently unsupported, I wonder if an initial stopgap for us for now would be to catch this particular error and ignore ERB files with CDATA blocks. Later, as needed, we can decide to investigate other approaches (different parser, changes to better_html, etc.). Does this sound reasonable to you? I figure this would be an improvement since it unblocks you to use packwerk (and anyways packwerk already has a lot of areas where it doesn't capture all references between packages).

from packwerk.

exterm avatar exterm commented on July 30, 2024

I think a temporary workaround may make sense as it seems that the underlying bug is in html_tokenizer (https://github.com/EiNSTeiN-/html_tokenizer/pull/7) and that repo doesn't look like it's maintained.

from packwerk.

remvee avatar remvee commented on July 30, 2024

from packwerk.

alexevanczuk avatar alexevanczuk commented on July 30, 2024

@remvee I've attempted to fix this here: #214

Let me know what ya think!

I think it makes sense to keep this open to make it clear we don't yet support parsing ERB with CDATA tags.

from packwerk.

remvee avatar remvee commented on July 30, 2024

from packwerk.

rafaelfranca avatar rafaelfranca commented on July 30, 2024

It should be fixed now in the version 2.0 of better_html.

from packwerk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.