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 on KDL layout file with pane template and children #1779

Closed
raphCode opened this issue Oct 5, 2022 · 0 comments · Fixed by #1791
Closed

Panic on KDL layout file with pane template and children #1779

raphCode opened this issue Oct 5, 2022 · 0 comments · Fixed by #1791

Comments

@raphCode
Copy link
Contributor

raphCode commented Oct 5, 2022

#1759

I tried to convert my layout file utilizing the pane templates but managed to crash zellij on startup. I am currently not sure if my kdl is invalid, but if that would be the case, I expected an error message.

Minimal repro:

layout {
    pane_template name="aaa" {
        command "bash"
        children
    }
    aaa
}
thread 'main' panicked at 'insertion index (is 1) should be <= len (is 0)', library/alloc/src/vec/mod.rs:1345:13

Some things I tried:

  • Removing children works
  • Inserting child panes does not work
  • Doing both of the previous at the same time yields a KDL error message that tells me to insert a children block in the template, which is exactly how I was guided towards this bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant