cli icon indicating copy to clipboard operation
cli copied to clipboard

Cannot download executeable from exercise solution.

Open desdulianto opened this issue 8 years ago • 7 comments

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.

desdulianto avatar Jul 20 '18 04:07 desdulianto

@desdulianto Thanks so much for following up here!

Would you show me the output of exercism troubleshoot?

kytrinyx avatar Jul 20 '18 12:07 kytrinyx

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?

desdulianto avatar Jul 21 '18 01:07 desdulianto

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

kotp avatar Jul 21 '18 16:07 kotp

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

desdulianto avatar Jul 23 '18 02:07 desdulianto

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 avatar Jul 23 '18 23:07 kytrinyx

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

Reproduction steps:

  • download exercise
  • delete .solution.json
  • download exercise again
  • change the solution
  • submit it
  • download to a different computer

kytrinyx avatar Jul 24 '18 21:07 kytrinyx

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.

kytrinyx avatar Aug 05 '18 17:08 kytrinyx