Skip to content

panic: runtime error: index out of range [0] with length 0 #1480

@dufguix

Description

@dufguix

Hi.
Trying cogentcore on windows 11 24H2.

Followed: https://www.cogentcore.org/core/install

Demo -> Panic

go run cogentcore.org/core/examples/demo@main
panic: runtime error: index out of range [0] with length 0

Other test -> Good

go run github.com/cogentcore/webgpu/examples/triangle@main
works as expected.

Simple code test ->Panic

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

package main

import "cogentcore.org/core/core"

func main() {
	b := core.NewBody()
	core.NewButton(b).SetText("Hello, World!")
	b.RunMainWindow()
}

Am I missing something ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions