playframework / playframework/playframework
Error messages for invalid play.modules.enabled are unclear.
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 12.6k
- Forks
- 4k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 29
Description
Play Version (2.5.x)
API (Java)
Expected Behavior
When you accidentally add something to the play.modules.enabled that is not a proper module then you get an error like No valid constructors. It doesn't provide you with any information on where to look for the problem.
It would be more helpful if the error was more clear about the problem. For example if I accidentally add something called OrderService to the play.modules.enabled, then an error such as OrderService is not a Play Module, please review your play.modules.enabled settings. would make it very obvious where to look for the problem.
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 locating the validation or module-loading path for the play.modules.enabled setting and reproduce the failure with an invalid entry such as OrderService. Done means the resulting error identifies the invalid value and directs the user to review play.modules.enabled settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, scala
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100