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

Cannot download executeable from exercise solution. #661

Open desdulianto opened 6 years ago

desdulianto commented 6 years ago

Hi, I opened this ticket because @kotp told me that when he downloaded my exercise solution of ruby track rna-transcription, it did not deliver executable file.

Here is the screenshot of the command history when I submitted the solution. image

I first submitted the solution when exercism haven't launch the new version yet. And after that I just manually download the exercise as instructed and submit it as usual.

Let me know if you need anything for helping closing the bug.

Thank you very much.

NB. I've learn much from the new mentor feature. Thanks very much exercism and the mentors.

kytrinyx commented 6 years ago

@desdulianto Thanks so much for following up here!

Would you show me the output of exercism troubleshoot?

desdulianto commented 6 years ago

Here it is @kytrinyx

david@pegasus:~/exercism/ruby/rna-transcription-2$ exercism troubleshoot

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

Version
----------------
Current: 3.0.4
Latest:  3.0.5

Call 'exercism upgrade' to get the latest version.
See the release notes at https://github.com/exercism/cli/releases/tag/3.0.5 for details.

Operating System
----------------
OS:           linux
Architecture: amd64

Configuration
----------------
Home:      
Workspace: /home/david/exercism
Config:    /home/david/.config/exercism/user.json
API key:   bce0*****************************309

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

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

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

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

is it because of my version is lagging?

kotp commented 6 years ago

I believe a bug was found, but it does not hurt at all to update the client.

desdulianto commented 6 years ago

Ok, I have upgraded the client and resubmit the solution, it's on 7th iteration now :D Here is the command line output:

[root@pegasus rna-transcription-2]# exercism upgrade
[root@pegasus rna-transcription-2]# exit
exit
david@pegasus:~/exercism/ruby/rna-transcription-2$ exercism troubleshoot

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

Version
----------------
Current: 3.0.5
Latest:  3.0.5

Operating System
----------------
OS:           linux
Architecture: amd64

Configuration
----------------
Home:      
Workspace: /home/david/exercism
Config:    /home/david/.config/exercism/user.json
API key:   bce0*****************************309

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

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

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

If you are having trouble please file a GitHub issue at
https://github.com/exercism/exercism.io/issues and include
this information.
david@pegasus:~/exercism/ruby/rna-transcription-2$ exercism s rna_transcription.rb 

    Your solution has been submitted successfully.
    View it at:

    https://exercism.io/my/solutions/b86df703c4db4b008b0e609a4ce6c3b7
kytrinyx commented 6 years ago

I think we have issues with the -2 suffix. I'm going to dig into this to see if I can figure out what's going on.

kytrinyx commented 6 years ago

I figured out how to reproduce this! Ok. Now I can work on a fix :-)

Reproduction steps:

kytrinyx commented 6 years ago

I've made it so that the download command won't add a prefix (https://github.com/exercism/cli/pull/696)

The next step is to ensure that the metadata file won't get clobbered if it's already present: https://github.com/exercism/cli/issues/697

Then we can cut a new release.