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

autocomplete crash #4077

Open
remyleone opened this issue Aug 23, 2024 · 0 comments
Open

autocomplete crash #4077

remyleone opened this issue Aug 23, 2024 · 0 comments

Comments

@remyleone
Copy link
Member

$ scw autocomplete complete bash compl 5 -- scw inference deployment create model-name=meta/llama-3-8b-instruct:bf16 node-type=
---------------------------------------------------------------------------------------
An error occurred, we are sorry, please consider opening a ticket on github using: 'scw feedback bug'
Give us as many details as possible so we can reproduce the error and fix it.
---------------------------------------------------------------------------------------
interface conversion: interface {} is *inference.llmInferenceCreateDeploymentRequestCustom, not *inference.CreateDeploymentRequest
stacktrace from panic: 
goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x64
main.cleanup(0x140004830a0)
	github.com/scaleway/scaleway-cli/v2/cmd/scw/main.go:42 +0xb4
panic({0x102393060?, 0x14000c808a0?})
	runtime/panic.go:770 +0x124
github.com/scaleway/scaleway-cli/v2/internal/namespaces/inference/v1beta1.autocompleteDeploymentNodeType({0x10262cb70?, 0x14000267140?}, {0x16f106f3b?, 0x14000056dd8?}, {0x102269180?, 0x14000908040?})
	github.com/scaleway/scaleway-cli/v2/internal/namespaces/inference/v1beta1/custom_deployment.go:147 +0x288
github.com/scaleway/scaleway-cli/v2/internal/core.AutoCompleteArgValue({0x10262cb70, 0x14000267140}, 0xa?, 0x140004f9e80, {0x16f106f3b, 0x0}, 0x1400053eeb8?)
	github.com/scaleway/scaleway-cli/v2/internal/core/autocomplete.go:367 +0x158
github.com/scaleway/scaleway-cli/v2/internal/core.AutoComplete({0x10262cb70, 0x14000267140}, {0x14000024ff0, 0x5, 0x5}, {0x16f106f3b, 0xa}, {0x1033a6c80, 0x0, 0x0?})
	github.com/scaleway/scaleway-cli/v2/internal/core/autocomplete.go:306 +0x59c
github.com/scaleway/scaleway-cli/v2/internal/namespaces/autocomplete.GetCommands.autocompleteCompleteBashCommand.func2({0x10262cb70, 0x14000267140}, {0x10252e840?, 0x14000794408?})
	github.com/scaleway/scaleway-cli/v2/internal/namespaces/autocomplete/autocomplete.go:291 +0x158
github.com/scaleway/scaleway-cli/v2/internal/core.run.func1({0x10262cb70?, 0x14000267140?}, {0x10252e840?, 0x14000794408?})
	github.com/scaleway/scaleway-cli/v2/internal/core/cobra_utils.go:173 +0x38
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdTypeInterceptor({0x10262cb70, 0x14000267140}, {0x10252e840?, 0x14000794408?}, 0x1400053f3f8?)
	github.com/scaleway/scaleway-cli/v2/internal/core/command_interceptor.go:123 +0x34
github.com/scaleway/scaleway-cli/v2/internal/core.run.CombineCommandInterceptor.func3.1({0x10262cb70?, 0x14000267140?}, {0x0?, 0xbb7b155200000000?})
	github.com/scaleway/scaleway-cli/v2/internal/core/command_interceptor.go:30 +0x38
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdErrorInterceptor({0x10262cb70?, 0x14000267140?}, {0x10252e840?, 0x14000794408?}, 0x10?)
	github.com/scaleway/scaleway-cli/v2/internal/core/command_interceptor.go:39 +0x3c
github.com/scaleway/scaleway-cli/v2/internal/core.run.CombineCommandInterceptor.func3({0x10262cb70, 0x14000267140}, {0x10252e840, 0x14000794408}, 0x14000396ac0)
	github.com/scaleway/scaleway-cli/v2/internal/core/command_interceptor.go:29 +0xb8
github.com/scaleway/scaleway-cli/v2/internal/core.run({0x10262cb70, 0x14000267140}, 0x14000651208, 0x140004b5080, {0x1400017d950, 0x8, 0x9})
	github.com/scaleway/scaleway-cli/v2/internal/core/cobra_utils.go:172 +0x358
github.com/scaleway/scaleway-cli/v2/internal/core.(*cobraBuilder).hydrateCobra.cobraRun.func3(0x14000651208, {0x1400017d950, 0x8, 0x9})
	github.com/scaleway/scaleway-cli/v2/internal/core/cobra_utils.go:46 +0x4e0
github.com/spf13/cobra.(*Command).execute(0x14000651208, {0x1400017d8c0, 0x9, 0x9})
	github.com/spf13/[email protected]/command.go:985 +0x840
github.com/spf13/cobra.(*Command).ExecuteC(0x1400022f208)
	github.com/spf13/[email protected]/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:1041
github.com/scaleway/scaleway-cli/v2/internal/core.Bootstrap(0x14000057e70)
	github.com/scaleway/scaleway-cli/v2/internal/core/bootstrap.go:263 +0xfec
main.main()
	github.com/scaleway/scaleway-cli/v2/cmd/scw/main.go:74 +0x304

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

No branches or pull requests

2 participants