Skip to content
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

Unable to alias provider for type usage #273

Closed
Silic0nS0ldier opened this issue Jul 13, 2024 · 0 comments · Fixed by #295
Closed

Unable to alias provider for type usage #273

Silic0nS0ldier opened this issue Jul 13, 2024 · 0 comments · Fixed by #295

Comments

@Silic0nS0ldier
Copy link

Silic0nS0ldier commented Jul 13, 2024

load("@rules_java//java:defs.bzl", "java_common")

JavaRuntimeInfo = java_common.JavaRuntimeInfo

def _impl(ctx):
    # type: (ctx) -> None
    java_toolchain = ctx.toolchains["@bazel_tools//tools/jdk:toolchain_type"]
    java_runtime = java_toolchain.java.java_runtime # type: JavaRuntimeInfo
    #                                               ^^^^^^^^^^^^^^^^^^^^^^^ Starpls reports unknown type
    # ...

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant