Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

dancer2 gen -n tutorial puts schema classes in a "My::App" directory

Open Beginner friendly
#1,850 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
perl
Domain
cli

Research direction

The bad path comes from the rename in _copy_templates in lib/Dancer2/CLI/Gen.pm (around line 359), which inserts the app name without converting :: to a path separator. Reproduce with dancer2 gen -n tutorial -a My::App, then check where Schema.pm lands. Done when the file is at lib/My/App/Schema.pm and use My::App::Schema resolves. Check with the #1849 discussion before changing the same rename.

Written by the indexing model from the issue text.

Description

With a namespaced app name, the tutorial skeleton writes its schema classes under a directory with colons in the name:

$ dancer2 gen -n tutorial -a My::App
$ find My-App -name 'Schema*.pm'
My-App/lib/My::App/Schema.pm

That should be lib/My/App/Schema.pm, or use My::App::Schema won't find it. On Windows it can't be created at all, since : isn't legal in a file name there.

The rename in _copy_templates (lib/Dancer2/CLI/Gen.pm:359) drops in the app name as-is without turning :: into a path separator. Probably worth fixing alongside #1849, since it's the same rename.

Dominant language
Perl
Stars
604
Forks
287
Avg merge
1d 9h
Merged PRs (30d)
6

Getting set up

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.

More from PerlDancer/Dancer2

All issues in PerlDancer/Dancer2

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.