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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 BUG: Quoted markup in frontmatter causes a panic #920

Open
natemoo-re opened this issue Dec 21, 2023 · 1 comment
Open

馃悰 BUG: Quoted markup in frontmatter causes a panic #920

natemoo-re opened this issue Dec 21, 2023 · 1 comment
Labels
- P4: important Violate documented behavior or significantly improves performance (priority)

Comments

@natemoo-re
Copy link
Member

What version of @astrojs/compiler are you using?

2.0.0

What package manager are you using?

yarn

What operating system are you using?

Linux

Describe the Bug

User reported error on Discord that causes a very weird panic. I opened #919 to try to debug this, but wasn't able to reproduce it for myself. Seems to have something to do with HTML embedded in an object inside of the frontmatter.

Stacktrace:
goroutine 106 [running]:
runtime/debug.Stack()
        runtime/debug/stack.go:24 +0x6
github.com/withastro/compiler/internal_wasm/utils.ErrorToJSError(0x1026900, {0xaec3a5d8, 0x90ffe7b0})
        github.com/withastro/compiler/internal_wasm/utils/utils.go:68 +0x2
main.Transform.func1.1.1.1()
        ./astro-wasm.go:290 +0x5
panic({0x2db80, 0x90ffe7b0})
        runtime/panic.go:884 +0x29
github.com/withastro/compiler/internal.(*Tokenizer).readUnclosedTag(0x11dda00)
        github.com/withastro/compiler/internal/token.go:1257 +0x30
github.com/withastro/compiler/internal.(*Tokenizer).Next(0x11dda00)
        github.com/withastro/compiler/internal/token.go:1764 +0x94
github.com/withastro/compiler/internal.(*parser).parse(0x1026a20)
        github.com/withastro/compiler/internal/parser.go:2987 +0x1e
github.com/withastro/compiler/internal.ParseWithOptions({0x7b7c8, 0x42c9a0}, {0x436b80, 0x1, 0x1})
        github.com/withastro/compiler/internal/parser.go:3059 +0x1c
main.Transform.func1.1.1()
        ./astro-wasm.go:295 +0xc
created by main.Transform.func1.1
        ./astro-wasm.go:286 +0x14

Link to Minimal Reproducible Example

please forgive me

@github-actions github-actions bot added the needs triage Issue needs to be triaged label Dec 21, 2023
@natemoo-re natemoo-re added the - P4: important Violate documented behavior or significantly improves performance (priority) label Dec 21, 2023
@github-actions github-actions bot removed the needs triage Issue needs to be triaged label Dec 21, 2023
@MoustaphaDev
Copy link
Member

No reproduction 馃槧, closing now!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly improves performance (priority)
Projects
None yet
Development

No branches or pull requests

2 participants