exercism configure not saving configuration

Open
#928 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Reproduce the issue with exercism configure followed by an Exercism command and exercism troubleshoot on the reported Linux Snap installation. Compare the configuration path written by configure with the path read by troubleshoot; done means the token persists and subsequent commands no longer request configuration.

Written by the indexing model from the issue text.

Description

Hello,

I'm trying to get my token set up so I can download exercises. When I run the command to configure my token I get the response:

You have configured the Exercism command-line client:

Config dir: /home/brian/.config/exercism
Token: (-t, --token) 7b1e2471-c246-4aee-a288-53ff07ac9fbe
Workspace: (-w, --workspace) /home/brian/exercism
API Base URL: (-a, --api) https://api.exercism.io/v1

However when I attempt to use exercism I get the prompt to configure again. Checking exercism troubleshoot I find:

Troubleshooting Information

Version

Current: 3.0.13
Latest: 3.0.13

Operating System

OS: linux
Architecture: amd64

Configuration

Home: /home/brian/snap/exercism/5
Workspace: /home/brian/snap/exercism/5/exercism (default)
Config: /home/brian/snap/exercism/5/.config/exercism
API key:
Find your API key at https://exercism.io/my/settings

API Reachability

GitHub:
* https://api.github.com
* [connected]
* 85.167273ms

Exercism:
* https://api.exercism.io/v1/ping
* [connected]
* 938.798165ms

It seems that I still only have the default configuration in place. I've rebooted a few times to make sure I don't have some strange state from installing. Is there some configuration file I can just manually edit?

Cheers

Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from exercism/cli

All issues in exercism/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.