Panic when workspace path contains reserved characters
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- go
- Domain
- cli, operating-systems
Research direction
Start at cmd/configure.go:147 and reproduce the failure with exercism.exe configure --workspace "c:\?" on Windows. Trace why the reserved workspace path leads to a nil pointer, then verify that configure reports the invalid path without panicking.
Written by the indexing model from the issue text.
Description
Version
exercism-3.0.13-windows-x86_64
Os
Windows 7
Reproduce
exercism.exe configure --workspace "c:\?"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x84d9e9]
goroutine 1 [running]:
github.com/exercism/cli/cmd.runConfigure(0x95ba0b, 0x7, 0xc00006e4a0, 0xf, 0xc0000861e0, 0x28, 0x967b7a, 0x1a, 0xc0000706d0, 0x8, ...)
/Users/ekingery/dev/exercism/cli/cmd/configure.go:147 +0x959
github.com/exercism/cli/cmd.glob..func1(0xdd5cc0, 0xc000064e40, 0x0, 0x2, 0x0, 0x0)
/Users/ekingery/dev/exercism/cli/cmd/configure.go:43 +0x167
github.com/spf13/cobra.(*Command).execute(0xdd5cc0, 0xc000064e00, 0x2, 0x2, 0xdd5cc0, 0xc000064e00)
/Users/ekingery/golang/pkg/mod/github.com/spf13/cobra@v0.0.0-20170731170427-b26b538f6930/command.go:649 +0x40f
github.com/spf13/cobra.(*Command).ExecuteC(0xdd65c0, 0x0, 0x0, 0x0)
/Users/ekingery/golang/pkg/mod/github.com/spf13/cobra@v0.0.0-20170731170427-b26b538f6930/command.go:728 +0x2c3
github.com/spf13/cobra.(*Command).Execute(...)
/Users/ekingery/golang/pkg/mod/github.com/spf13/cobra@v0.0.0-20170731170427-b26b538f6930/command.go:687
github.com/exercism/cli/cmd.Execute()
/Users/ekingery/dev/exercism/cli/cmd/root.go:39 +0x34
main.main()
/Users/ekingery/dev/exercism/cli/exercism/main.go:6 +0x27
- Dominant language
- Go
- Stars
- 1.4k
- Forks
- 363
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from exercism/cli
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Fetch next exercise Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
needs-acceptance wg/data-plane-networking
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#4024 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
alexgorbatchev/dotfiles#107 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100