mirror of
https://github.com/ilyakooo0/intellij-haskell.git
synced 2024-08-17 10:40:44 +03:00
Remove library which has invalid library path.
This commit is contained in:
parent
2300421f08
commit
1bbd829642
@ -321,7 +321,10 @@ object HaskellModuleBuilder {
|
||||
private def setupProjectLibraries(project: Project, libraryDependencies: Seq[HaskellLibraryDependency], projectLibDirectory: File): Unit = {
|
||||
getProjectLibraryTable(project).getLibraries.foreach(library => {
|
||||
libraryDependencies.find(_.nameVersion == library.getName) match {
|
||||
case Some(_) => ()
|
||||
case Some(_) =>
|
||||
if (library.getFiles(OrderRootType.SOURCES).isEmpty) {
|
||||
removeProjectLibrary(project, library)
|
||||
}
|
||||
case None => removeProjectLibrary(project, library)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user