playframework / playframework/playframework

Error messages for invalid play.modules.enabled are unclear.

Open
#8,148 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.