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 @@ -13,7 +13,15 @@ import scala.collection.JavaConverters._
13
13
14
14
class StaticSiteLocationProviderFactory (private val ctx : DokkaContext ) extends LocationProviderFactory :
15
15
override def getLocationProvider (pageNode : RootPageNode ): LocationProvider =
16
- new StaticSiteLocationProvider (ctx, pageNode)
16
+ try new StaticSiteLocationProvider (ctx, pageNode)
17
+ catch
18
+ case e : Error =>
19
+ // TODO (https://github.com/lampepfl/scala3doc/issues/238) error handling
20
+ e.printStackTrace()
21
+ // We encounter bug in Kotlin coroutines (race) when this method throws exception
22
+ // In such case we want to return null to trigger NPE in other piece of code to fail properly coroutine context
23
+ // Making generated DRIs not-unique will reproduce this behavior
24
+ null
17
25
18
26
class StaticSiteLocationProvider (ctx : DokkaContext , pageNode : RootPageNode )
19
27
extends DokkaLocationProvider (pageNode, ctx, " .html" ):
You can’t perform that action at this time.
0 commit comments