File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
scala3doc/src/dotty/dokka Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ object Scala3docArgs:
76
76
)
77
77
78
78
def defaultDest (): File =
79
- report.error(" Destenation is missing, please provide '-d' parameter poitning to director here docs should be created" )
79
+ report.error(" Destenation is missing, please provide '-d' parameter pointing to directory here docs should be created" )
80
80
File (" output" )
81
81
82
82
val parseSyntax = syntax.nonDefault.fold(CommentSyntax .default){ str =>
Original file line number Diff line number Diff line change @@ -15,7 +15,15 @@ import java.nio.file.Path
15
15
16
16
class StaticSiteLocationProviderFactory (private val ctx : DokkaContext ) extends LocationProviderFactory :
17
17
override def getLocationProvider (pageNode : RootPageNode ): LocationProvider =
18
- new StaticSiteLocationProvider (ctx, pageNode)
18
+ try new StaticSiteLocationProvider (ctx, pageNode)
19
+ catch
20
+ case e : Error =>
21
+ // TODO (https://github.com/lampepfl/scala3doc/issues/238) error handling
22
+ e.printStackTrace()
23
+ // We encounter bug in Kotlin coroutines (race) when this method throws exception
24
+ // In such case we want to return null to trigger NPE in other piece of code to fail properly coroutine context
25
+ // Making generated DRIs not-unique will reproduce this behavior
26
+ null
19
27
20
28
class StaticSiteLocationProvider (ctx : DokkaContext , pageNode : RootPageNode )
21
29
extends DokkaLocationProvider (pageNode, ctx, " .html" ):
You can’t perform that action at this time.
0 commit comments