cli icon indicating copy to clipboard operation
cli copied to clipboard

Can't resubmit solution

Open danieljanderson opened this issue 6 years ago • 17 comments

I am trying to resubmit my solution to twofer but it's not allowing me to. The first comand is exercism submit two-fer

Error:

    The file you are trying to submit cannot be found.

        /Users/danielanderson/Desktop/Software_projects/exercism/teams/daniel-josh/javascript/two-fer/two-fer

then I type in exercise submit /Users/danielanderson/Desktop/Software_projects/exercism/teams/daniel-josh/javascript/two-fer/two-fer it then returns Error: not in workspace.

I submitted my first solution just fine.

danieljanderson avatar Oct 29 '19 02:10 danieljanderson

Are you sure your file is called two-fer without a file ending?

Also I'm not using the teams edition, but as far as I remember, you need to provide the --team flag when doing so.

NobbZ avatar Oct 29 '19 09:10 NobbZ

typed in exercism submit two-fer.js. and this is the error i got.

The file you are trying to submit cannot be found.

    /Users/danielanderson/desktop/software_projects/exercism/teams/daniel-josh/javascript/two-fer.js.

I typed exercism submit -team two-fer.js i got Error: unknown shorthand flag: 't' in -team

danieljanderson avatar Oct 29 '19 15:10 danieljanderson

I'd expect the path to the file to be /Users/danielanderson/desktop/software_projects/exercism/teams/daniel-josh/javascript/two-fer/two-fer.js (containing exercise name), are you sure you are in the correct folder?

Also, I said --team, not -team (double dash). Anyway, looked into the exercism help submit output, and it seems, as if --team is only needed for download, not submission.

NobbZ avatar Oct 29 '19 15:10 NobbZ

I just did that and this is the error I get Error:

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.

danieljanderson avatar Oct 29 '19 18:10 danieljanderson

Have you checked if the metadata exists for that exercise, and redownloaded it to recreate metadata if missing?

NobbZ avatar Oct 29 '19 20:10 NobbZ

how could the metadata go missine? it submitted fine the first time

danieljanderson avatar Oct 29 '19 21:10 danieljanderson

Perhaps you deleted it? Or your virusscanner? Or something else went wrong. Usually it shouldn't go missing, but have you checked if its still there? Have you tried to recreate it as described in the link from the error?

NobbZ avatar Oct 30 '19 10:10 NobbZ

still having issues submitting files. this time I cant even submit my first solution.

Error:

    The file you are trying to submit cannot be found.

        /Users/danielanderson/Desktop/Software_projects/exercism/teams/daniel-josh/javascript/accumulate.js```

and this is what my path to that file looks like
/Users/danielanderson/Desktop/Software_projects/exercism/teams/daniel-josh/javascript/accumulate

danieljanderson avatar Nov 25 '19 18:11 danieljanderson

Please make sure to use very exact pathes.

The best is to use cd to navigate into the exercises folder and then use a relative name to submit from there.

$ cd /Users/danielanderson/Desktop/Software_projects/exercism/teams/daniel-josh/javascript/accumulate
$ exercism submit accumulate.js

NobbZ avatar Nov 25 '19 20:11 NobbZ

I copied your code and this is the error I got.

Error: not in workspace

danieljanderson avatar Dec 03 '19 17:12 danieljanderson

Then please tell us what the output of exercism workspace is.

NobbZ avatar Dec 04 '19 16:12 NobbZ

/Users/danielanderson/desktop/software_projects/exercism

danieljanderson avatar Dec 04 '19 16:12 danieljanderson

Then this should work:

$ cd /Users/danielanderson/desktop/software_projects/exercism/teams/daniel-josh/javascript/accumulate
$ exercism submit accumulate.js

Sadly the CLI is case sensitive on the path, while your filesystem is not. This causes confusion sometimes.

NobbZ avatar Dec 04 '19 16:12 NobbZ

So the reason why it was not working was that i kept on capitalizing Exercism on my path?

danieljanderson avatar Dec 04 '19 19:12 danieljanderson

Not exercism but Desktop and Software_projects.

NobbZ avatar Dec 04 '19 20:12 NobbZ

PS C:\Users\DeLL\Exercism\dart\hello-world> exercism submit Error: requires at least 1 arg(s), only received 0

tell me the solution

mahernoraiz avatar Jul 17 '20 14:07 mahernoraiz

PS C:\Users\DeLL\Exercism\dart\hello-world> exercism submit Error: requires at least 1 arg(s), only received 0

tell me the solution

The error states "Requires at least one "arg(s)" (arg is short for "argument"). It appears you want to do exercism submit hello_world.dart

kotp avatar Jul 17 '20 20:07 kotp