Skip to content
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

[email protected]` regression (TLDR: no issue here, everything is good) #3356

Closed
zachleat opened this issue Jul 9, 2024 · 1 comment
Closed

Comments

@zachleat
Copy link
Member

zachleat commented Jul 9, 2024

[11ty] Problem writing Eleventy templates: (more in DEBUG output)
[11ty] 1. Having trouble writing to "./_site/web/livecoding-ca/index.html" from "./_posts/2022-10-12-livecoding-ca.md" (via EleventyTemplateError)
[11ty] 2. unexpected "if webmention.url != \"\"", file:/Users/zachleat/Code/zachleat.com/_includes/webmention.liquid, line:20, col:5 (via ParseError)
[11ty] 3. unexpected "if webmention.url != \"\"" (via AssertionError)
[11ty] 
[11ty] Original error stack trace: AssertionError: unexpected "if webmention.url != \"\""
[11ty]     at assert (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:358:15)
[11ty]     at assertEmpty (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:362:5)
[11ty]     at ParseStream.<anonymous> (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:3761:13)
[11ty]     at ParseStream.trigger (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:2201:23)
[11ty]     at ParseStream.start (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:2209:43)
[11ty]     at new IfTag (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:3768:14)
[11ty]     at Parser.parseToken (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:2465:24)
[11ty]     at ParseStream.parseToken (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:2479:64)
[11ty]     at ParseStream.start (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:2212:35)
[11ty]     at new IfTag (/Users/zachleat/Code/eleventy/node_modules/liquidjs/dist/liquid.node.cjs.js:3768:14)
[11ty] Copied 1546 Wrote 24 files in 6.51 seconds (271.3ms each, v3.0.0-alpha.16)

After reverting the version for 3.0.0-alpha.16 I’m now realizing this might be an error in my project code?

Related: harttle/liquidjs#713

@zachleat zachleat added bug bug: dependency A problem in one of Eleventy’s dependencies template language: liquid labels Jul 9, 2024
@zachleat
Copy link
Member Author

zachleat commented Jul 9, 2024

It was an application code error!

{% if webmention.published %}
{% else if webmention.url != "" %}
{% endif %}

My code should have been:

{% if webmention.published %}
{% elsif webmention.url != "" %}
{% endif %}

I reverted too quickly here, there is no issue!

@zachleat zachleat closed this as completed Jul 9, 2024
@zachleat zachleat added education and removed bug bug: dependency A problem in one of Eleventy’s dependencies labels Jul 9, 2024
@zachleat zachleat changed the title Investigating: [email protected] regression Investigating: [email protected] regression (TLDR: no issue here, everything is good) Jul 9, 2024
zachleat added a commit that referenced this issue Jul 9, 2024
@zachleat zachleat changed the title Investigating: [email protected] regression (TLDR: no issue here, everything is good) [email protected]` regression (TLDR: no issue here, everything is good) Jul 9, 2024
zachleat added a commit that referenced this issue Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant