Skip to content

autocomplete crash #4075

@remyleone

Description

@remyleone
$ scw autocomplete complete bash compl 4 -- scw rdb instance create engine=
---------------------------------------------------------------------------------------
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 *rdb.rdbCreateInstanceRequestCustom, not *rdb.CreateInstanceRequest
stacktrace from panic: 
goroutine 1 [running]:
runtime/debug.Stack()
	runtime/debug/stack.go:24 +0x64
main.cleanup(0x140002c23f0)
	github.com/scaleway/scaleway-cli/v2/cmd/scw/main.go:42 +0xb4
panic({0x1063c7060?, 0x14000ba2780?})
	runtime/panic.go:770 +0x124
github.com/scaleway/scaleway-cli/v2/internal/namespaces/rdb/v1.autoCompleteDatabaseEngines({0x106660b70?, 0x1400069dc80?}, {0x16b0d2f52?, 0x14000886dd8?}, {0x10629ea00?, 0x14000ba2750?})
	github.com/scaleway/scaleway-cli/v2/internal/namespaces/rdb/v1/custom_instance.go:207 +0x298
github.com/scaleway/scaleway-cli/v2/internal/core.AutoCompleteArgValue({0x106660b70, 0x1400069dc80}, 0x7?, 0x140003bd900, {0x16b0d2f52, 0x0}, 0x140005dceb8?)
	github.com/scaleway/scaleway-cli/v2/internal/core/autocomplete.go:367 +0x158
github.com/scaleway/scaleway-cli/v2/internal/core.AutoComplete({0x106660b70, 0x1400069dc80}, {0x14000254400, 0x4, 0x4}, {0x16b0d2f52, 0x7}, {0x1073dac80, 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({0x106660b70, 0x1400069dc80}, {0x106562840?, 0x140006fe2e8?})
	github.com/scaleway/scaleway-cli/v2/internal/namespaces/autocomplete/autocomplete.go:291 +0x158
github.com/scaleway/scaleway-cli/v2/internal/core.run.func1({0x106660b70?, 0x1400069dc80?}, {0x106562840?, 0x140006fe2e8?})
	github.com/scaleway/scaleway-cli/v2/internal/core/cobra_utils.go:173 +0x38
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdTypeInterceptor({0x106660b70, 0x1400069dc80}, {0x106562840?, 0x140006fe2e8?}, 0x140005dd3f8?)
	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({0x106660b70?, 0x1400069dc80?}, {0x0?, 0xb508ae8900000000?})
	github.com/scaleway/scaleway-cli/v2/internal/core/command_interceptor.go:30 +0x38
github.com/scaleway/scaleway-cli/v2/internal/core.sdkStdErrorInterceptor({0x106660b70?, 0x1400069dc80?}, {0x106562840?, 0x140006fe2e8?}, 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({0x106660b70, 0x1400069dc80}, {0x106562840, 0x140006fe2e8}, 0x14000130c10)
	github.com/scaleway/scaleway-cli/v2/internal/core/command_interceptor.go:29 +0xb8
github.com/scaleway/scaleway-cli/v2/internal/core.run({0x106660b70, 0x1400069dc80}, 0x140005f7208, 0x140003a6dc0, {0x140006e4380, 0x7, 0x8})
	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(0x140005f7208, {0x140006e4380, 0x7, 0x8})
	github.com/scaleway/scaleway-cli/v2/internal/core/cobra_utils.go:46 +0x4e0
github.com/spf13/cobra.(*Command).execute(0x140005f7208, {0x140006e4300, 0x8, 0x8})
	github.com/spf13/[email protected]/command.go:985 +0x840
github.com/spf13/cobra.(*Command).ExecuteC(0x1400070c608)
	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(0x14000887e70)
	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

Metadata

Metadata

Assignees

Labels

bugpriority:highestBugs filled by customers, security issuesrdbManaged MySQL and PostgreSQL issues, bugs and feature requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions