playframework / playframework/play-samples
play-scala-hello-world-tutorial: compilation error with implicit value not found for assertsFinder
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 554
- Forks
- 548
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 57
Description
Hi, I am new to Scala / Play here. I am wondering if anyone could help me with the following issue I encountered when following along the hello world tutorial
Basically I am trying to add a new page. I followed the tutorial, added a new view, a new method in controller, and a new route. However, I am getting a compilation error showing:
play.sbt.PlayExceptions$CompilationException: Compilation error[could not find implicit value for parameter assetsFinder: controllers.AssetsFinder]
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:34)
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:34)
at scala.Option.map(Option.scala:230)
at play.sbt.run.PlayReload$.$anonfun$taskFailureHandler$8(PlayReload.scala:127)
at scala.Option.map(Option.scala:230)
at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:100)
at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:38)
at play.sbt.run.PlayReload$.$anonfun$compile$3(PlayReload.scala:152)
at scala.util.Either$LeftProjection.map(Either.scala:573)
at play.sbt.run.PlayReload$.compile(PlayReload.scala:152)
[warn] Canceling execution...
Can someone help me figure out where went wrong please?
Code change:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked play-samples pull request and compare its new view, controller method, and route with the 2.8.x ImplementingHelloWorld tutorial. Reproduce the compilation error and trace the missing controllers.AssetsFinder implicit; done when the added page compiles and follows the tutorial without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100