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

server/template.Defer: panic: html/template: cannot Clone "" after it has executed #12963

Open
bep opened this issue Oct 18, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@bep
Copy link
Member

bep commented Oct 18, 2024

I thought I had fixed this, but working on a new JS feature I'm using template.Defer extensively and get the error above on some rebuilds. Note that this is not an issue for regular builds.

@bep bep self-assigned this Oct 18, 2024
@bep bep removed the NeedsTriage label Oct 18, 2024
@bep bep modified the milestones: v0.137.0, v0.138.0 Oct 18, 2024
@bep bep modified the milestones: v0.137.0, v0.138.0, v0.139.0 Oct 30, 2024
@bep bep modified the milestones: v0.139.0, v0.140.0 Nov 21, 2024
@bep bep modified the milestones: v0.140.0, Unscheduled Dec 11, 2024
@bep
Copy link
Member Author

bep commented Dec 13, 2024

OK; I think I finally understand how this happens, which is a great start:

  1. Start server in fast render mode (default) and load home page. Edit baseof.html template, home rebuilds OK.
  2. Navigate to some other page that uses that same baseof.html template ... boom.

Note that since we fixed the issue with "stuck server errors", this issue isn't as painful as it was, as one more edit will get you out of the error state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@bep and others