Skip to content

Can't find module alias defined in module #2293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pocke opened this issue Feb 25, 2025 · 0 comments · May be fixed by #2344
Open

Can't find module alias defined in module #2293

pocke opened this issue Feb 25, 2025 · 0 comments · May be fixed by #2344
Labels
bug Something isn't working

Comments

@pocke
Copy link
Member

pocke commented Feb 25, 2025

RBS unexpectedly does not resolve the following module name.

module M
  module N
  end

  module N2 = N
end

module M::N3 = M::N

class C
  include M::N     # ok
  include M::N2    # It causes `Could not find mixin: M::N2 (RBS::NoMixinFoundError)`
  include M::N3    # ok
end

I expect RBS to resolve all module names, but it raises an error on M::N2.

@pocke pocke added the bug Something isn't working label Feb 25, 2025
ksss added a commit to ksss/rbs that referenced this issue Mar 23, 2025
ksss added a commit to ksss/rbs that referenced this issue Mar 23, 2025
ksss added a commit to ksss/rbs that referenced this issue Mar 23, 2025
@ksss ksss linked a pull request Mar 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant