snap package prints erroneous token config instructions
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Reproduce the issue with the snap installation and the exercism download --exercise=hello-world --track=typescript command, then compare the displayed configure path with the working exercism configure --token=... command. Trace where the token error message is assembled and how the snap executable path is determined. Done means the guidance works for snap users without requiring a hard-coded /snap/exercism/5/exercism path.
Written by the indexing model from the issue text.
Description
I haven't used exercism for a while, but upon deciding to revisit after a hiatus, I was pleased to find there is now a snap package available. Following the instructions at
https://exercism.io/cli-walkthrough
> sudo snap install exercism
and then, admittedly, not completely following all the instructions, I jumped to trying to install an exercise, and got the following error message
> exercism download --exercise=hello-world --track=typescript
Error:
Welcome to Exercism!
To get started, you need to configure the tool with your API token.
Find your token at
https://exercism.io/my/settings
Then run the configure command:
/snap/exercism/5/exercism configure --token=YOUR_TOKEN
In copying the instructions and replacing with my token
/snap/exercism/5/exercism configure --token=<my_token>
and getting a positive confirmation message that it had worked correctly, I tried re-downloading the exercise
> exercism download --exercise=hello-world --track=typescript
only to receive the same error message. After a minor amount of debugging to determine the path of the actual exercism binary
> which exercism
/snap/bin/exercism
and using the updated path when running configure
/snap/bin/exercism configure --token=<my_token>
it worked. Ultimately, I stumbled upon the correct instruction on the third page of
https://exercism.io/cli-walkthrough
exercism configure --token=<my_token>
But it seems like the command
> exercism download --exercise=<exercise-name> --track=<language>
should output this instead of the /snap/exercism/5/exercism path.
I realize I probably should have RTFM and I don't know enough about snaps to know how hard it is to fix, but seems like a reasonable fix given it's a beginner tool and the much appreciated effort for creating the snap.
- 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 2/5 1-3 hours Newbie friendliness 65/100
-
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
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