Skip to content

Configuring exercism on MacOS seems broken #971

@niloct

Description

@niloct

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:   <not configured>
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions