Skip to content

SimpleNavigation::Renderer implicit Zeitwerk namespace fails to load under JRuby #237

Description

@n-rodriguez

Since 4.5.0 (switch to Zeitwerk, commit 3256597), require 'simple-navigation' raises a LoadError under JRuby 10.1.1.0. MRI 3.2–4.0 and TruffleRuby are unaffected.

LoadError: cannot load such file -- .../simple-navigation-4.5.0/lib/simple_navigation/renderer
.../lib/simple_navigation.rb:46:in '<module:SimpleNavigation>'

Line 46 (list: SimpleNavigation::Renderer::List) is the first reference to the implicit namespace SimpleNavigation::Renderer, inferred by Zeitwerk from the renderer/ directory (there is no renderer.rb). Zeitwerk 2.8.2 does not resolve this implicit namespace under JRuby.

Environment: JRuby 10.1.1.0, zeitwerk 2.8.2, simple-navigation 4.5.0.

Likely a Zeitwerk/JRuby implicit-namespace incompatibility rather than a bug in this gem's code; opening here since this is where the regression surfaces. A minimal reproduction outside simple-navigation would confirm whether it belongs upstream in Zeitwerk.

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