Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

[BUG] Getting error when running rit set server in Windows #83

Closed
brunocarvalhozup opened this issue May 12, 2020 · 0 comments
Closed
Labels
🪲 bug Report a bug encountered while operating Ritchie

Comments

@brunocarvalhozup
Copy link

What happened: I just have restored my Windows, and I was trying to set the Rit CLI. I've downloaded the team version for 1.0.0-beta.6, and added to my System PATH. When I tried to set my server as https://ritchie-server.zup.io I got the following:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0xc05e69]

goroutine 1 [running]:
github.com/ZupIT/ritchie-cli/pkg/server.SetterManager.Set(0xc00002be20, 0x1a, 0xc00021a520, 0x1d, 0x0, 0x0)
        /workspace/pkg/server/setter.go:35 +0xd9
github.com/ZupIT/ritchie-cli/pkg/cmd.setServerCmd.runFunc.func1(0xc0001ff8c0, 0x15b1ee0, 0x0, 0x0, 0x0, 0x0)
        /workspace/pkg/cmd/set_server.go:41 +0x9a
github.com/spf13/cobra.(*Command).execute(0xc0001ff8c0, 0x15b1ee0, 0x0, 0x0, 0xc0001ff8c0, 0x15b1ee0)
        /home/circleci/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:842 +0x45a
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001b2840, 0x444c11, 0x1529480, 0xc00005ff78)
        /home/circleci/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
        /home/circleci/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main()
        /workspace/cmd/team/main.go:34 +0x32

What you expected to happen: I was expecting to have my server set.

How to reproduce it (as minimally and precisely as possible): I've described all the steps on the What Happened section.

Anything else we need to know?: This also happens if I try to set the server as my localhost

Environment:

  • Ritchie version (use rit --version): it version 1.0.0-beta.6 (team)
  • Operating System: Windows 10 Home
  • Network plugin / Tool and version (if this is a network-related / tool bug): Tried in CMD and Powershell
  • Others:
@brunocarvalhozup brunocarvalhozup added the 🪲 bug Report a bug encountered while operating Ritchie label May 12, 2020
@brunocarvalhozup brunocarvalhozup changed the title [BUG] Getting error on running rit set server in Windows [BUG] Getting error when running rit set server in Windows May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🪲 bug Report a bug encountered while operating Ritchie
Projects
None yet
Development

No branches or pull requests

2 participants