playframework / play-java-starter-example

Play starter project in Java (ideal for new users!)
https://developer.lightbend.com/start/?group=play
Creative Commons Zero v1.0 Universal
161 stars 135 forks source link

This doesn't work? #80

Closed stephenjfox closed 6 years ago

stephenjfox commented 6 years ago

I cloned the project and loaded up in IntelliJ 2018.2.4, and everything important (conf/routes, application.conf, all of the Twirl templates) is doesn't compile.

It's red throughout the codebase. I really appreciate the effort you've gone through to make a workable example for the community, as they are severely lacking, but this one does not work.

If I am doing something wrong (I git clone <repo link>'d, saw that stuff was still not compiling, deleted SBT stuff, saw the same output) can anyone tell me where and why?

raboof commented 6 years ago

Interesting! I just tried it and it seems to work for me. How did you import the project? For me Intellij automatically picked the Gradle importer, which successfully imported the project.

stephenjfox commented 6 years ago

I'll try it again this morning, and report back.

2018년 10월 9일 (화) 오전 2:42, Arnout Engelen notifications@github.com님이 작성:

Interesting! I just tried it and it seems to work for me. How did you import the project? For me Intellij automatically picked the Gradle importer, which successfully imported the project.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/playframework/play-java-starter-example/issues/80#issuecomment-428110539, or mute the thread https://github.com/notifications/unsubscribe-auth/AF9lJTyGb47WT-o90-UsUd1b8W_vsgaKks5ujGGTgaJpZM4XNpAx .

marcospereira commented 6 years ago

Hi @stephenjfox,

Just to confirm that you need to install the Scala Plugin to have Play support in IntelliJ.

I'm closing this one since I was not able to reproduce it either. But please, if you have more information, add it here and we can reopen this issue if necessary.

Best.

stephenjfox commented 6 years ago

I got the same result. I'm working against the 2.6.x branch, because that branch uses Gradle (what I need for my company).

I've just finished watching the Gradle and SBT builds run (which took too long to record), and the application starts but the IDE is still full of errors.

However, with the SBT console in IntelliJ IDEA, I was able to run the app, which leads me to a related question: Do I need to run with SBT, while building with both SBT and Gradle?