1

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

enter image description here

: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?

2
  • Does this answer your question? Vim setup of Lars
    – Mateus
    Jan 23, 2022 at 12:05
  • Not really, no reference to Ale at all in there.
    – DavidEG
    Jan 23, 2022 at 16:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.