Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

mix generator has issues when dealing with nested liveview module namespace #222

@qq99

Description

@qq99

Imagine your liveview is the module defmodule MyApp.SearchLive.Index

You run mix lvn.gen.live swiftui SearchLive.Index or mix lvn.gen.live swiftui Search, both have issues with the assumptions the generator makes

This can be made to work manually with some manual renaming of the modules, but I noticed that it wasn't able to find the default *.neex file, it complained about a missing render function. If you add a manually defined render fn to the new file, it will work however.

Perhaps one should have to supply the full namespace to the generator command (e.g., SearchLive.Index) instead of the currently desired Search

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions