FATAL error in beta 0.0.11-beta
richtera opened this issue · comments
I wasn't sure where to put this, but when using the latest beta version it's no longer recognizing the {{ end }} in some cases.
Version 0.0.11-beta
This file for example (gallery.html inside of hugo)
<div class="article-gallery">
<div class="article-gallery-photos">
{{ range .Params }}
<a class="article-gallery-img fancybox" href="{{ . }}" rel="group1">
<img src="{{ . | relURL }}" />
</a>
{{ end }}
</div>
</div>
Will cause the following error:
["ERROR" - 10:35:18 AM] Unexpected closing tag "BPGTundefinedEPGT". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (7:5)
5 | <img src="BPGT3EPGT" itemprop="image" />
6 | </a>
> 7 | </BPGTundefinedEPGT>
| ^
8 | </div>
9 | </div>
SyntaxError: Unexpected closing tag "BPGTundefinedEPGT". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags (7:5)
5 | <img src="BPGT3EPGT" itemprop="image" />
6 | </a>
> 7 | </BPGTundefinedEPGT>
| ^
8 | </div>
9 | </div>
at Ft (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/parser-html.js:1:52073)
at ps (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/parser-html.js:113:2319)
at e (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/parser-html.js:113:4291)
at Object.parse (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/parser-html.js:113:4830)
at Object.parse (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/index.js:13565:19)
at coreFormat (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/index.js:14841:25)
at format (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/index.js:15063:14)
at formatWithCursor (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/index.js:15080:12)
at /home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/index.js:54672:12
at Object.format (/home/ubuntu/platform-themes/themes/module-student-template-cme@feature-data-builds/node_modules/prettier/index.js:54692:12)
at t.default.<anonymous> (/home/ubuntu/.vscode-server/extensions/esbenp.prettier-vscode-5.6.0/dist/extension.js:1:59826)
at Generator.next (<anonymous>)
at s (/home/ubuntu/.vscode-server/extensions/esbenp.prettier-vscode-5.6.0/dist/extension.js:1:54110)`
See #24 (comment) 😺 .
Really sorry for that, latest
now again points to 0.0.10
.
Just npm i
again and install the "latest" version. 0.0.10
@NiklasPor, as a German saying goes
Wo gehobelt wird, fallen Späne
😜 😄 .
(English translation: »Where wood is chopped, splinters must fall.«)
Haha "genau!"