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

Completion panics #6353

Closed
feloy opened this issue Nov 28, 2022 · 1 comment · Fixed by #6354
Closed

Completion panics #6353

feloy opened this issue Nov 28, 2022 · 1 comment · Fixed by #6354
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@feloy
Copy link
Contributor

feloy commented Nov 28, 2022

/kind bug

How did you run odo exactly?

$ odo <tab>

Actual behavior

[phmartin@fedora empty]$ odo panic: runtime error: index out of range [-1]

goroutine 1 [running]:
github.com/redhat-developer/odo/pkg/odo/cli/list/namespace.NewCmdNamespaceList({0x2f570a3, 0x9}, {0xc000158ab0, 0x12})
	/home/phmartin/Documents/gits/odo/pkg/odo/cli/list/namespace/namespace.go:103 +0x3bf
github.com/redhat-developer/odo/pkg/odo/cli/list.NewCmdList({0x2f4f209, 0x4}, {0xc000aea498, 0x8})
	/home/phmartin/Documents/gits/odo/pkg/odo/cli/list/list.go:155 +0x305
github.com/redhat-developer/odo/pkg/odo/cli.odoRootCmd({0x3357e80, 0xc0004dae70}, {0x2f4e6fb, 0x3}, {0x2f4e6fb, 0x3})
	/home/phmartin/Documents/gits/odo/pkg/odo/cli/cli.go:183 +0x5ad
github.com/redhat-developer/odo/pkg/odo/cli.NewCmdOdo({0x3357e80?, 0xc0004dae70?}, {0x2f4e6fb?, 0x46248f0?}, {0x2f4e6fb?, 0xc0003a5b20?})
	/home/phmartin/Documents/gits/odo/pkg/odo/cli/cli.go:106 +0x34
main.main()
	/home/phmartin/Documents/gits/odo/cmd/odo/odo.go:38 +0x1a5

Expected behavior

Any logs, error output, etc?

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 28, 2022
@rm3l rm3l added this to odo Project Nov 28, 2022
@github-actions github-actions bot added the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Nov 28, 2022
@anandrkskd
Copy link
Contributor

@feloy can you add information about the version or commit of the odo binary, you're getting this error?

I tried it on latest main, and it works fine for me

-> % odo version
odo v3.3.0 (6172a16fc)

-> % odo add
add           build-images  create        deploy        dev           list          logout        preference    remove        version                                                                                                       
analyze       completion    delete        describe      init          login         logs          registry      set                   

@rm3l rm3l added this to the v3.4.0 🚀 milestone Nov 28, 2022
@rm3l rm3l moved this to In Review 👀 in odo Project Nov 28, 2022
Repository owner moved this from In Review 👀 to Done ✅ in odo Project Nov 30, 2022
@rm3l rm3l removed the needs-triage Indicates an issue or PR lacks a `triage/*` and requires one. label Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants