-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Dottydoc crashes when upgrading liqp to 0.7.2 #3859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like functionality to implement a custom tag like:
|
Yes, the syntax in my previous response was wrong - but the sentiment the same. It's using liqp to add some custom tags to the markup language. It tries to get the arguments from "nodes" but I guess there has been some changes to liqp |
I'd say most likely someone is calling the tag with the wrong number of args - or liqp changed in some unexpected way |
Apparently all params are parsed as one string now: bkiers/Liqp#46, I'll try to make a PR. |
Interesting, I wonder what prompted that changerge. |
Apparently it's to conform with the spec of Liquid. |
Alright, I give up for now, in 0.7.2 when we want to handle |
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.
No need to parse it; evaluating is all that's needed. I posted a possible workaround how to evaluate the string/expression |
@abgruszecki is this issue still relevant? |
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 |
Uh oh!
There was an error while loading. Please reload this page.
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: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? :)
The text was updated successfully, but these errors were encountered: