playframework / playframework/twirl
Unused import
Open
Nobody has claimed this yet.
status:backlog
- Dominant language
- Scala
- Stars
- 561
- Forks
- 118
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 29
Description
I have "-Xfatal-warnings", "-Ywarn-unused-import", in my scalacOptions
I cannot use twirl
import play.twirl.api._
import play.twirl.api.TemplateMagic._
class error extends BaseScalaTemplate[play.twirl.api.HtmlFormat.Appendable,Format[play.twirl.api.HtmlFormat.Appendable]](play.twirl.api$
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 by reproducing the issue with scalacOptions containing -Xfatal-warnings and -Ywarn-unused-import, then inspect the generated Scala shown in the report. Determine why the play.twirl.api imports are reported as unused when compiling the template. Done means the reported template compiles without an unused-import failure under those options.
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