exercism / exercism/cli

Configuring exercism on MacOS seems broken

Open
#971 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.4k
Forks
363
Avg merge
6d 13h
Merged PRs (30d)
2

Description

I'm on MacOs Mojave, and things used to work months ago when I was using this cli.

Now, it seems that, when you set an workspace, and execute `exercism troubleshoot`, it only recognizes the token when you are in the directory that you issued the `exercism configure` command. See:

```
~ $ exercism configure --token=*************** --workspace=/Users/teixeira/Exercism

You have configured the Exercism command-line client:

Config dir: ~/.config/exercism
Token: (-t, --token) ***********
Workspace: (-w, --workspace) /Users/teixeira/Exercism
API Base URL: (-a, --api) https://api.exercism.io/v1

```

```
~ $ exercism troubleshoot

Troubleshooting Information
===========================

Version
----------------
Current: 3.0.13
Latest: 3.0.13

Operating System
----------------
OS: darwin
Architecture: amd64

Configuration
----------------
Home: /Users/teixeira
Workspace: /Users/teixeira/Exercism
Config: ~/.config/exercism
API key: 4358*****************************657

API Reachability
----------------

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

Exercism:
* https://api.exercism.io/v1/ping
* [connected]
* 1.224142255s

If you are having trouble please file a GitHub issue at
https://github.com/exercism/exercism.io/issues and include
this information.
```

So token was recognized ok. Now if I cd into a subdir:

```
~ $ cd Exercism/python/
~/Exercism/python $ ls
acronym grade-school hello-world isogram luhn matrix scrabble-score twelve-days word-count
clock hamming high-scores kindergarten-garden markdown raindrops teste_markdown.py two-fer
~/Exercism/python $ exercism troubleshoot

Troubleshooting Information
===========================

Version
----------------
Current: 3.0.13
Latest: 3.0.13

Operating System
----------------
OS: darwin
Architecture: amd64

Configuration
----------------
Home: /Users/teixeira
Workspace: /Users/teixeira/Exercism (default)
Config: ~/.config/exercism
API key:
Find your API key at https://exercism.io/my/settings

API Reachability
----------------

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

Exercism:
* https://api.exercism.io/v1/ping
* [connected]
* 1.101968641s

If you are having trouble please file a GitHub issue at
https://github.com/exercism/exercism.io/issues and include
this information.
```

Not configured!

The workaround is to call `exercism configure` inside EVERY single challenge directory, so it creates a `~/.config` structure and recognizes the token, but this is broken and didn't work like that before.....

Thanks for your attention.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.