Skip to content

nil pointer while execute ve enable-color #30

@kylinsoong

Description

@kylinsoong

Does enable-color depend on set profile?

Once I have installed the volcengine-cli_1.0.28_darwin_arm64.zip and try to enable-color, the above nil pointer exception throw, after set the connection key, and profile, then re set enable color, no error throw

$ ve enable-color
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x1025e655c]

goroutine 1 [running]:
github.com/volcengine/volcengine-cli/cmd.initRootCmd.func1(0x1400102c600, {0x102a0f890, 0x0, 0x0})
	github.com/volcengine/volcengine-cli/cmd/cmd_root.go:35 +0x2c
github.com/spf13/cobra.(*Command).execute(0x1400102c600, {0x102a0f890, 0x0, 0x0})
	github.com/spf13/cobra@v1.6.1/command.go:920 +0x70c
github.com/spf13/cobra.(*Command).ExecuteC(0x1029d9e00)
	github.com/spf13/cobra@v1.6.1/command.go:1044 +0x41c
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.6.1/command.go:968
github.com/volcengine/volcengine-cli/cmd.Execute()
	github.com/volcengine/volcengine-cli/cmd/cmd_root.go:52 +0x34
main.main()
	github.com/volcengine/volcengine-cli/run.go:10 +0x20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions