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

packageListUrl must be specified even if in default location #514

Closed
GladeDiviney opened this issue Oct 14, 2019 · 3 comments
Closed

packageListUrl must be specified even if in default location #514

GladeDiviney opened this issue Oct 14, 2019 · 3 comments
Labels
bug regression An issue/bug that appeared after recent changes
Milestone

Comments

@GladeDiviney
Copy link

In version 0.10.0, this configuration throws exception:

configuration {
    externalDocumentationLink {
        url = new URL("https://docs.oracle.com/javase/8/docs/api/")
    }
}

Stacktrace:

Caused by: java.lang.RuntimeException: Exception while loading package-list from ExternalDocumentationLinkImpl(url=https://docs.oracle.com/javase/8/docs/api/, packageListUrl=http:)
        at org.jetbrains.dokka.PackageListProvider.<init>(ExternalDocumentationLinkResolver.kt:59)
        at org.jetbrains.dokka.PackageListProvider$$FastClassByGuice$$fb87abb.newInstance(<generated>)
        at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
        at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
        at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
        at com.google.inject.Scopes$1$1.get(Scopes.java:65)
        at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
        at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
        at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
        at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
        at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
        at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
        at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
        at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)

Workaround

If you specify a packageListUrl it works:

configuration {
    externalDocumentationLink {
        url = new URL("https://docs.oracle.com/javase/8/docs/api/")
        packageListUrl = new URL("https://docs.oracle.com/javase/8/docs/api/package-list")
    }
}

Installation

  • Operating system: Linux
  • Build tool: Gradle v5.6.1, org.jetbrains.dokka plugin
  • Dokka version: 0.10.0
@kamildoleglo
Copy link
Contributor

Thanks for the feedback! That's my bad

@kamildoleglo kamildoleglo added the regression An issue/bug that appeared after recent changes label Oct 23, 2019
@kamildoleglo kamildoleglo modified the milestones: 0.10.1, 0.11.0 Oct 23, 2019
@rfc2822
Copy link

rfc2822 commented Nov 12, 2019

I can conform this and also that adding packageListUrl helps.

@kamildoleglo
Copy link
Contributor

Fixed in aefc1bb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug regression An issue/bug that appeared after recent changes
Projects
None yet
Development

No branches or pull requests

3 participants