<p>I'm using nvim with Ale, no particular config other than:</p>
<pre><code>Plug 'w0rp/ale'
let g:ale_sign_error = '●'
let g:ale_sign_warning = '●'
</code></pre>
<p>It looks like works out of the box for Haskell, but cannot find Plutus libraries:</p>
<pre><code>$ nvim src/Week02/Gift.hs
</code></pre>
<p><a href="https://i.sstatic.net/IxAec.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/IxAec.png" alt="enter image description here" /></a></p>
<pre><code>:messages

Could not find module ‘Plutus.Contract’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |16 | import           Plutus.Contract | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                            
Could not find module ‘PlutusTx’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |17 | import           PlutusTx            (Data (..)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                   
Could not find module ‘PlutusTx’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |18 | import qualified PlutusTx | ^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                 
Could not find module ‘PlutusTx.Builtins’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |19 | import qualified PlutusTx.Builtins   as Builtins | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                          
Could not find module ‘PlutusTx.Prelude’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |20 | import           PlutusTx.Prelude    hiding (Semigroup(..), unless) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     
Could not find module ‘Ledger’ Perhaps you meant Lexer (needs flag -package-key ghc-8.10.4.20210212) Use -v (or `:set -v` in ghci) to see a list of the files searched for. |21 | import           Ledger              hiding (singleton) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^
...
</code></pre>
<p>Any idea how to configure Ale so it finds Plutus libraries?</p>

CC BY-SA 4.0
2022-01-23T12:05:11.407Z
Does this answer your question? [Vim setup of Lars](https://cardano.stackexchange.com/questions/6679/vim-setup-of-lars)
Mateus
CC BY-SA 4.0
2022-01-23T16:00:02.367Z
Not really, no reference to Ale at all in there.
DavidEG
<plutus><plutus-pioneer-program><haskell>
How can I configure Ale so it finds Plutus libraries?
# How can I configure Ale so it finds Plutus libraries?

(Asked by: username_0 on 2022-01-23)

I'm using nvim with Ale, no particular config other than:
Plug 'w0rp/ale'
let g:ale_sign_error = '●'
let g:ale_sign_warning = '●'

It looks like works out of the box for Haskell, but cannot find Plutus libraries:
$ nvim src/Week02/Gift.hs


:messages

Could not find module ‘Plutus.Contract’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |16 | import           Plutus.Contract | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                            
Could not find module ‘PlutusTx’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |17 | import           PlutusTx            (Data (..)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                   
Could not find module ‘PlutusTx’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |18 | import qualified PlutusTx | ^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                 
Could not find module ‘PlutusTx.Builtins’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |19 | import qualified PlutusTx.Builtins   as Builtins | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                          
Could not find module ‘PlutusTx.Prelude’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. |20 | import           PlutusTx.Prelude    hiding (Semigroup(..), unless) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     
Could not find module ‘Ledger’ Perhaps you meant Lexer (needs flag -package-key ghc-8.10.4.20210212) Use -v (or `:set -v` in ghci) to see a list of the files searched for. |21 | import           Ledger              hiding (singleton) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^
...

Any idea how to configure Ale so it finds Plutus libraries?

**Tags:** plutus, plutus-pioneer-program, haskell
> **Comments:**
> **username_1**: Does this answer your question? [Vim setup of Lars](https://cardano.stackexchange.com/questions/6679/vim-setup-of-lars)  
> **username_0**: Not really, no reference to Ale at all in there.  

---

## 0 answers

