File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
server/src/main/kotlin/org/javacs/kt/index Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,17 @@ class SymbolIndex {
22
22
val started = System .currentTimeMillis()
23
23
LOG .info(" Updating symbol index..." )
24
24
25
- for (descriptor in allDescriptors(module)) {
26
- globalDescriptors[descriptor.fqNameSafe] = descriptor
27
- }
25
+ try {
26
+ for (descriptor in allDescriptors(module)) {
27
+ globalDescriptors[descriptor.fqNameSafe] = descriptor
28
+ }
28
29
29
- val finished = System .currentTimeMillis()
30
- LOG .info(" Updated symbol index in ${finished - started} ms! (${globalDescriptors.size} symbol(s))" )
30
+ val finished = System .currentTimeMillis()
31
+ LOG .info(" Updated symbol index in ${finished - started} ms! (${globalDescriptors.size} symbol(s))" )
32
+ } catch (e: Exception ) {
33
+ LOG .error(" Error while updating symbol index" )
34
+ LOG .printStackTrace(e)
35
+ }
31
36
}
32
37
33
38
private fun allDescriptors (module : ModuleDescriptor ): Collection <DeclarationDescriptor > = allPackages(module)
You can’t perform that action at this time.
0 commit comments