# Opening Cabal Project in Vscode takes 30 mins

**URL:** <https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211>\
**Category:** Uncategorized\
**Created:** [May 30, 2025, 4:15pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211 "2025-05-30T16:15:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawkrish](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/dawkrish/32/4746_2.png) [@dawkrish](https://discourse.haskell.org/u/dawkrish)\
**Post date:** [May 30, 2025, 4:15pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/1 "2025-05-30T16:15:58Z")

</div>

I just made a `cabal init`, and then did `code .` and it tis taking 30 mins

---

<div class="post-metadata">

**Author:** ![asjo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/asjo/32/294_2.png) [@asjo](https://discourse.haskell.org/u/asjo)\
**Post date:** [May 30, 2025, 4:49pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/2 "2025-05-30T16:49:33Z")

</div>

I just ran `cabal init`, and then did `emacs .` and it took around 4 seconds.

This is a fun game.

---

<div class="post-metadata">

**Author:** ![dawkrish](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/dawkrish/32/4746_2.png) [@dawkrish](https://discourse.haskell.org/u/dawkrish)\
**Post date:** [May 30, 2025, 5:02pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/3 "2025-05-30T17:02:04Z")

</div>

Did you use Eglot(LSP client) ?  
It takes HLS this much time

---

<div class="post-metadata">

**Author:** ![george.fst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/george.fst/32/4933_2.png) [@george.fst](https://discourse.haskell.org/u/george.fst)\
**Post date:** [May 30, 2025, 5:15pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/4 "2025-05-30T17:15:54Z")

</div>

That is odd. What happens if you run `haskell-language-server` on the command line, or `cabal build`?

---

<div class="post-metadata">

**Author:** ![dawkrish](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/dawkrish/32/4746_2.png) [@dawkrish](https://discourse.haskell.org/u/dawkrish)\
**Post date:** [May 31, 2025, 2:20pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/5 "2025-05-31T14:20:13Z")

</div>

> [@george.fst](#):
>
> t happens

I think this issue only occurs when I open the project for the first time

---

<div class="post-metadata">

**Author:** ![george.fst](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/george.fst/32/4933_2.png) [@george.fst](https://discourse.haskell.org/u/george.fst)\
**Post date:** [May 31, 2025, 2:31pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/6 "2025-05-31T14:31:10Z")

</div>

Is it reproducible, i.e. does the same thing happen with every new project?

---

<div class="post-metadata">

**Author:** ![hellwolf](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/hellwolf/32/3020_2.png) [@hellwolf](https://discourse.haskell.org/u/hellwolf)\
**Post date:** [June 4, 2025, 4:29pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/7 "2025-06-04T16:29:57Z")

</div>

I think it’s likely due to cabal needs to build all the dependencies. Perhaps try to build the project and wait it finish, before opening in the IDE?

---

<div class="post-metadata">

**Author:** ![dawkrish](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/dawkrish/32/4746_2.png) [@dawkrish](https://discourse.haskell.org/u/dawkrish)\
**Post date:** [June 4, 2025, 5:04pm UTC](https://discourse.haskell.org/t/opening-cabal-project-in-vscode-takes-30-mins/12211/8 "2025-06-04T17:04:10Z")

</div>

But how come building a few libs take more than 2 mins ?? Is Cabal slow ??
