Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
First run cabal update before cabal freeze.
Browse files Browse the repository at this point in the history
  • Loading branch information
rikvdkleij committed Mar 22, 2016
1 parent 9a772b0 commit e78f58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/intellij/haskell/view/AddDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.vfs.VfsUtil
import com.intellij.util.Consumer
import intellij.haskell.HaskellNotificationGroup
import intellij.haskell.external.{GhcModProcessManager, ExternalProcess}
import intellij.haskell.external.{ExternalProcess, GhcModProcessManager}
import intellij.haskell.settings.{CabalInfo, HaskellSettingsState}
import intellij.haskell.util.HaskellProjecUtil

Expand All @@ -51,6 +51,7 @@ class AddDependencies extends AnAction {
val libPath = new File(project.getBasePath + File.separator + libName)
FileUtil.delete(libPath)
FileUtil.createDirectory(libPath)
ExternalProcess.getProcessOutput(project.getBasePath, cabalInfo.path, Seq("update"))
ExternalProcess.getProcessOutput(project.getBasePath, cabalInfo.path, getCabalFreezeArguments(cabalInfo))
readCabalConfig(project, cabalInfo.path).map(cl => getHaskellPackages(cl)).foreach(packages => {
progressIndicator.setFraction(initialProgressStep)
Expand Down

0 comments on commit e78f58b

Please sign in to comment.