exercism / cli

A Go based command line tool for exercism.org.
https://exercism.org/docs/using/solving-exercises/working-locally
MIT License
1.33k stars 359 forks source link

WSL2 snap exercism token not configuring #949

Open nickdrivergit opened 4 years ago

nickdrivergit commented 4 years ago

I am trying to run exercism in WSL2. I installed exercism using snap.

When I run exercism configure --token=XXXXX

The output is as follows: ''' You have configured the Exercism command-line client:

Config dir: /home/pc/.config/exercism Token: (-t, --token) XXXXX Workspace: (-w, --workspace) /mnt/d/dev/projects/exercism API Base URL: (-a, --api) https://api.exercism.io/v1 '''

If I try to download an exercise I get told to run the configure command. ''' Then run the configure command:

    /snap/exercism/5/exercism configure --token=YOUR_TOKEN

'''

As I stated above when configuring token I receive an output that I expect with the correct token.

Running "exercism troubleshoot" produces the following output. ''' Troubleshooting Information

Version

Current: 3.0.13 Latest: 3.0.13

Operating System

OS: linux Architecture: amd64

Configuration

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

API Reachability

GitHub:

Exercism:

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

The troubleshooting config file "/home/pc/snap/exercism/5/.config/" doesn't exist. I've tried ls -la and that produces no results.

How do I correct this issue?

kotp commented 4 years ago

The exercism troubleshoot command does show that the token is not configured.

I suggest uninstalling exercism with snap and instead download the executable for your architecture and place the executable into your Path. You can find the executable contained inside one of archives from the releases page.

ric2b commented 4 years ago

Possible duplicate of https://github.com/exercism/cli/issues/905