Skip to content

Add topics for hello-world - #774

Merged
stkent merged 1 commit into
exercism:masterfrom
FridaTveit:HelloWorldAddTopics
Sep 17, 2017
Merged

stkent merged 1 commit into
exercism:masterfrom
FridaTveit:HelloWorldAddTopics

Conversation

@FridaTveit

Copy link
Copy Markdown
Contributor

List of topics

The only other topic which might be relevant is classes since you do have to modify a class to do the exercise. But that's true for all exercises. So we could add classes as a topic to all exercises? Or none of them? Or just the ones without starter implementation?

See issue #523 for general discussion about adding topics.


Reviewer Resources:

Track Policies

@FridaTveit

Copy link
Copy Markdown
Contributor Author

I'm not sure why the build failed. The error seems to be "Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain". I tried restarting it but it just failed again. Any ideas @stkent @Smarticles101 ?

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Huh, weird; I bumped Gradle a few days ago (a54c18e) but the master build is fine as far as I can tell. Can you pass this locally?

@FridaTveit

Copy link
Copy Markdown
Contributor Author

As in, can I run journey-test locally? If that's what you mean, then no it fails with the same error... And it also fails locally on master... :(

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Ruh roh... looking into this now!

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Hmm, journey-test works for me locally on master. Still digging...

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

@FridaTveit please rebase on master and re-push; I think this should now be fixed!

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Great, will do! :) Do you know what was going wrong?

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

I believe the issue was the executable mode set on the Gradle wrapper JAR. Here's the change I made:

89bfa10

Note 644 -> 755.

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Oh, okay. Thanks! :)

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Huh, weird. Back to the drawing board!

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

@FridaTveit did the change in master allow you to successfully run it locally?

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Will try it now :)

@FridaTveit

FridaTveit commented Sep 14, 2017 •

Copy link
Copy Markdown
Contributor Author

No, I still get the same error :( On master and on my branch...

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Spooky... pushed another commit to master, please retry again. I don't think this will fix things, but it might. (Same permissions fix on gradlew.bat).

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Sure, will try again :)

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Not sure why https://travis-ci.org/exercism/java/builds doesn't show more recent builds than 2 months ago either...

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

Sorry for all this back and forth; very confusing that everything works on my machine! :S

@FridaTveit

Copy link
Copy Markdown
Contributor Author

No problem, thanks for helping me look into it! :) But yes, it is all very strange...

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

If you roll back to Gradle 4.0.1 locally, does that fix master?

./gradlew wrapper --gradle-version=4.0.1

@FridaTveit

Copy link
Copy Markdown
Contributor Author

No I get the same error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain...

@stkent

stkent commented Sep 14, 2017

Copy link
Copy Markdown
Contributor

What about if you check out 54cf4a6 (before the Gradle 4.1 update)?

If that doesn't work, I suggest finding a commit in the history that does work, and using git bisect to narrow down where the issue was introduced 🤷‍♂️

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Okay, will try that :)

@FridaTveit

Copy link
Copy Markdown
Contributor Author

That worked! Checking out 54cf4a6 worked!

@stkent

stkent commented Sep 15, 2017

Copy link
Copy Markdown
Contributor

Ok, we have a start point! Now how about the next commit, a54c18e, the one that actually bumped Gradle. Does that work locally?

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Will try now! :)

@FridaTveit

Copy link
Copy Markdown
Contributor Author

No, that commit doesn't work :(

@stkent

stkent commented Sep 15, 2017

Copy link
Copy Markdown
Contributor

So weird! Can you try locally git reverting that commit on master and seeing if the result runs for you?

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Sure, will give it a go :)

@FridaTveit

Copy link
Copy Markdown
Contributor Author

That works :)

@stkent

stkent commented Sep 15, 2017

Copy link
Copy Markdown
Contributor

Ok, then let's just push that up to master, skip Gradle 4.1, and try when 4.2 rolls around? :D

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Sounds sensible :P

@stkent

stkent commented Sep 16, 2017

Copy link
Copy Markdown
Contributor

Once this is rebased on master I believe it should pass!

@FridaTveit

Copy link
Copy Markdown
Contributor Author

Great, will rebase! :)

@stkent
stkent merged commit 286fa4d into exercism:master Sep 17, 2017
@FridaTveit
FridaTveit deleted the HelloWorldAddTopics branch October 17, 2017 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants