Custom directives Generator not working

Hi there,
About to raise a bug report/issue, but want to check that it’s not user error here first as I haven’t used custom directives before.

On a (reasonably) fresh repo and older project, the custom directive generator is not outputting any files.

yarn rw g directive requireEmailValidation --type validator (with and without sudo)

Runs with out error but has no effect.

Anyone else run into this before or have any advice on what it might be?

Thanks in advance.

  System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 21.5.0 - /tmp/xfs-2537a312/node
    Yarn: 4.2.2 - /tmp/xfs-2537a312/yarn
  npmPackages:
    @redwoodjs/auth-dbauth-setup: 7.6.2 => 7.6.2 
    @redwoodjs/core: 7.6.2 => 7.6.2 
    @redwoodjs/project-config: 7.6.2 => 7.6.2 
    @redwoodjs/realtime: 7.6.2 => 7.6.2 
    @redwoodjs/studio: 11 => 11.4.0 
  redwood.toml:
    [web]
      title = "Redwood App"
      port = 8910
    [api]
      port = 8911
    [browser]
      open = true
    [notifications]
      versionUpdates = ["latest"]

@littletuna4 I think I’m seeing the same thing. Can you please add an issue to GitHub? Thanks :pray:

1 Like

Done.
Github issue

Thanks @littletuna4 for reporting.

Have a fix here for this fix(cli): Directive generator command was not creating files by dthyresson · Pull Request #10698 · redwoodjs/redwood · GitHub to ensure generator files get written correctly.

1 Like