[Analysis API Standalone] fix exception on invalid KLib from symbol provider
^KT-62244 fixed
This commit is contained in:
committed by
Space Team
parent
d005d1cd68
commit
4d38cc4548
+7
-4
@@ -20,20 +20,23 @@ object CommonKLibResolver {
|
||||
fun resolve(
|
||||
libraries: Collection<String>,
|
||||
logger: Logger,
|
||||
zipAccessor: ZipFileSystemAccessor? = null
|
||||
zipAccessor: ZipFileSystemAccessor? = null,
|
||||
lenient: Boolean = false,
|
||||
): KotlinLibraryResolveResult =
|
||||
resolveWithoutDependencies(
|
||||
libraries,
|
||||
logger,
|
||||
zipAccessor
|
||||
zipAccessor,
|
||||
lenient,
|
||||
).resolveWithDependencies()
|
||||
|
||||
fun resolveWithoutDependencies(
|
||||
libraries: Collection<String>,
|
||||
logger: Logger,
|
||||
zipAccessor: ZipFileSystemAccessor?
|
||||
zipAccessor: ZipFileSystemAccessor?,
|
||||
lenient: Boolean = false,
|
||||
): KLibResolution {
|
||||
val unresolvedLibraries = libraries.map { UnresolvedLibrary(it, null) }
|
||||
val unresolvedLibraries = libraries.map { UnresolvedLibrary(it, null, lenient) }
|
||||
val libraryAbsolutePaths = libraries.map { File(it).absolutePath }
|
||||
// Configure the resolver to only work with absolute paths for now.
|
||||
val libraryResolver = KLibResolverHelper(
|
||||
|
||||
Reference in New Issue
Block a user