exercism / cli

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

Update broken urls #1016

Closed NChechulin closed 4 weeks ago

NChechulin commented 3 years ago

Exercism CLI still provides "old" links. As far as I understand, the whole project moved to https://exercism.org/, but some output still contains https://exercism.io/.

Example:

$ exercism configure 
> Error: There is no token configured. Find your token on https://exercism.io/my/settings, and call this command again with --token=<your-token>.

Exercism version: 3.0.13

kotp commented 3 years ago

Can you give the version as reported by exercism -v?

NChechulin commented 3 years ago

Oh, it seems like -v stands for --verbose ~and exercism --help also doesn't provide a flag for version.~ However, I am using the latest version from AUR: 3.0.13

kotp commented 2 years ago

Oops. I should have said exercism v rather than exercism -v. Or exercism version. Habit put that dash in there.

miwojc commented 2 years ago

exercism version 3.0.13 Windows 10

exercism submit .\twelve_days.py returns a link to 404 page:

The exercise you are submitting doesn't have the necessary metadata.
Please see https://exercism.io/cli-v1-to-v2 for instructions on how to fix it.
kotp commented 2 years ago

The referece to io is probably not a functional issue, rather a documentation issue. Version 3.0.13 is fine, and should not have an issue.

The issue is specifically indicating that the ./.exercism/ directory is not there.

If you do exercism download --track=python --exercise=twelve-days is the current directory where it is downloaded at?

miwojc commented 2 years ago

exercism download --track=python --exercise=twelve-days solved the issue for me. Thank you.

Edit: i have downloaded the exercise long time ago, now im back to working on it. Seems like exercism folder is set up and it re downloaded the exercise in the right place. Submit worked.

kotp commented 2 years ago

I would say that it solved your immediate issue, however the updated URL issue is still something that should be fixed.

Would you care to update the title of this issue to reflect the desired correction to the URL as stated in the error message?

miwojc commented 2 years ago

@NChechulin opened this issue, so i can't edit title but i think title and description is correct?

NChechulin commented 2 years ago

@kotp Hi! When I opened the issue, I tried to emphasize the breadth of the problem. I believe, it's not about one or several particular commands, but about the whole project in general.

That's why the title is kind of very general.

kotp commented 2 years ago

Right on. I thought that now that we have found a specific action that can be addressed…

kotp commented 2 years ago

@NChechulin Yes, it probably is not wrong, but now we can focus it on "Error message shows URL as .io instead of .org."