question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dottydoc crashes when upgrading liqp to 0.7.2

See original GitHub issue

Dottydoc currently uses liqp 0.6.7, when upgrading to 0.7.2 (see branch https://github.com/dotty-staging/dotty/commits/upgrade/liqp-0.7.2) and running genDocs we get:

java.lang.ArrayIndexOutOfBoundsException: 1
        at scala.collection.mutable.WrappedArray$ofRef.apply(WrappedArray.scala:130)
        at dotty.tools.dottydoc.staticsite.tags$RenderTitle.render(tags.scala:189)
        at dotty.tools.dottydoc.staticsite.tags$RenderTitle.render(tags.scala:166)
        at liqp.nodes.TagNode.render(TagNode.java:32)
        at liqp.tags.For.renderArray(For.java:112)
        at liqp.tags.For.render(For.java:56)
        at liqp.nodes.TagNode.render(TagNode.java:32)
        at liqp.nodes.BlockNode.render(BlockNode.java:38)
        at liqp.Template$1.call(Template.java:266)
        ... 5 more

The crash happens here: https://github.com/lampepfl/dotty/blob/517ba8cbd7c4c0cd5058a4dd1bdfce2c0fe441cf/doc-tool/src/dotty/tools/dottydoc/staticsite/tags.scala#L189 maybe @felixmulder can give some context on what this does? 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
bkierscommented, Jan 17, 2018

Interesting, I wonder what prompted that changerge. … Apparently it’s to conform with the spec of Liquid.

True: it’s the specs of Liquid that say all parameters to tags are to be treated as a single string. Me implementing them as expressions was wrong.

… and there’s no way to automatically parse that

No need to parse it; evaluating is all that’s needed. I posted a possible workaround how to evaluate the string/expression member.alias: https://github.com/bkiers/Liqp/issues/70

0reactions
smartercommented, Feb 12, 2021

The new scaladoc still uses liqp and it’s still an old version so I’d say yes: https://github.com/lampepfl/dotty/blob/3d85473ee9706b00882f2a1419575b8f0d88487e/project/Build.scala#L1486 /cc @romanowski

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Crashes & Freezing | Warzone 2 Guide | Simple | Easy Fixes
While it's impossible to cover EVERYTHING, this video puts together some of the simplest and most common fixes to crashing and freezing for ......
Read more >
latte-dock crashes after upgrade to Plasma 5.11.4
today a new update was installed. After upgrade it was impossible to launch Latte Settings. It crashed every time. Deleting files in ~/.cache/ ......
Read more >
Freezing and crashing issues after macOS Ventura upgrade
Go to System Preferences > Software Update. These updates might fix the crash issues. Ensure all your installed apps are updated. Mac A...
Read more >
[0.64] Crashes on app launch · Issue #31269 - GitHub
Our app is currently crashing selectively on RN 0.63.4, but after upgrade to RN 0.64, it crashes everytime on app launch.
Read more >
Console crashes after you upgrade to Configuration Manager ...
The Configuration Manager console crashes after you update to Configuration Manager current branch, version 2107.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found