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

Panic parsing URL #313

Closed
denisa opened this issue Apr 2, 2023 · 0 comments · Fixed by #316
Closed

Panic parsing URL #313

denisa opened this issue Apr 2, 2023 · 0 comments · Fixed by #316
Assignees
Labels
bug Something isn't working

Comments

@denisa
Copy link
Owner

denisa commented Apr 2, 2023

With - multi-line output with HERE doc (<https://github.com/github/docs/issues/21529>), emits

panic: runtime error: index out of range [18] with length 18 [recovered]
	panic: runtime error: index out of range [18] with length 18

goroutine 71 [running]:
testing.tRunner.func1.2({0x7135e0, 0xc00043d968})
	/opt/hostedtoolcache/go/1.20.2/x64/src/testing/testing.go:1526 +0x24e
testing.tRunner.func1()
	/opt/hostedtoolcache/go/1.20.2/x64/src/testing/testing.go:1529 +0x39f
panic({0x7135e0, 0xc00043d968})
	/opt/hostedtoolcache/go/1.20.2/x64/src/runtime/panic.go:884 +0x213
github.com/yuin/goldmark/renderer.(*renderer).Render.func2({0x7e5910, 0xc0001cbc20}, 0x80?)
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/renderer/renderer.go:164 +0xd9
github.com/yuin/goldmark/ast.walkHelper({0x7e5910, 0xc0001cbc20}, 0xc0004e9c18)
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/ast/ast.go:492 +0x34
github.com/yuin/goldmark/ast.walkHelper({0x7e6c30, 0xc000261600}, 0xc0004e9c18)
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/ast/ast.go:498 +0x8e
github.com/yuin/goldmark/ast.walkHelper({0x7e6690, 0xc0002d55f0}, 0xc0004e9c18)
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/ast/ast.go:498 +0x8e
github.com/yuin/goldmark/ast.walkHelper({0x7e6570, 0xc0002d5560}, 0xc0004e9c18)
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/ast/ast.go:498 +0x8e
github.com/yuin/goldmark/ast.walkHelper({0x7e5d90, 0xc0002d4990}, 0xc0004e9c18)
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/ast/ast.go:498 +0x8e
github.com/yuin/goldmark/ast.Walk(...)
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/ast/ast.go:487
github.com/yuin/goldmark/renderer.(*renderer).Render(0xc000415b80, {0x7e17a0?, 0xc0004ec3f0?}, {0xc0004ee000, 0x1f2c, 0x1f2d}, {0x7e5d90, 0xc0002d4990})
	/home/runner/go/pkg/mod/github.com/yuin/goldmark@v1.5.4/renderer/renderer.go:161 +0x225
github.com/denisa/clq.(*Clq).entryPoint(0xc000415b30, {0x72cfe4, 0x3}, {0xc0001c0500, 0x3, 0x4})
	/home/runner/work/clq/clq/clq.go:94 +0x9f4
github.com/denisa/clq.Scenario.executeClq({{0x0, 0x0}, {0xc000129950, 0x10}, {0x0, 0x0}, 0x0, {0xc0001c0500, 0x3, 0x4}, ...}, ...)
	/home/runner/work/clq/clq/clq_test.go:108 +0x18e
github.com/denisa/clq.TestScenarios.func1(0x0?)
	/home/runner/work/clq/clq/clq_test.go:84 +0x2c5
testing.tRunner(0xc000347860, 0xc000136e00)
	/opt/hostedtoolcache/go/1.20.2/x64/src/testing/testing.go:1576 +0x10b
created by testing.(*T).Run
	/opt/hostedtoolcache/go/1.20.2/x64/src/testing/testing.go:1629 +0x3ea
@denisa denisa added the bug Something isn't working label Apr 2, 2023
@denisa denisa assigned denisa and unassigned denisa Apr 2, 2023
@denisa denisa linked a pull request Apr 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant