Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
/ vim-setup Public archive

👾 My NeoVim configuration for Scala & Haskell development (permanently moved to https://github.com/gvolpe/dotfiles)

Notifications You must be signed in to change notification settings

gvolpe/vim-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-setup

My NeoVim setup for Scala & Haskell development using coc.nvim as my LSP client.

Find all the instructions in their website: https://scalameta.org/metals/docs/editors/vim.html

Haskell IDE Engine Troubleshooting - Ubuntu

Error

--  While building package text-icu-0.7.0.1 using: <my obnoxious path info>
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/jkachmar/src/haskell-ide-engine/.stack-work/logs/text-icu-0.7.0.1.log

    Configuring text-icu-0.7.0.1...
    Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: Missing dependencies on foreign
    libraries:
    * Missing C libraries: icuuc, icui18n, icudata
    This problem can usually be solved by installing the system packages that
    provide these libraries (you may need the "-dev" versions). If the libraries
    are already installed but in a non-standard location then you can use the
    flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.

Fix

sudo apt install icu-devtools libicu-dev

Error

--  While building custom Setup.hs for package ghc-syb-utils-0.2.3.3 using:
      /home/gvolpe/.stack/setup-exe-cache/x86_64-linux-nopie/Cabal-simple_mPHDZzAJ_2.0.0.2_ghc-8.2.1 --builddir=.stack-work/dist/x86_64-linux-nopie/Cabal-2.0.0.2 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/gvolpe/development/haskell-ide-engine/.stack-work/logs/ghc-syb-utils-0.2.3.3.log

    Configuring ghc-syb-utils-0.2.3.3...
    Preprocessing library for ghc-syb-utils-0.2.3.3..
    Building library for ghc-syb-utils-0.2.3.3..
    [1 of 1] Compiling GHC.SYB.Utils    ( GHC/SYB/Utils.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.0.0.2/build/GHC/SYB/Utils.o )
    /usr/bin/ld.gold: error: cannot find -ltinfo
    collect2: error: ld returned 1 exit status
    `gcc' failed in phase `Linker'. (Exit code: 1)


--  While building custom Setup.hs for package djinn-ghc-0.0.2.3 using:
      /home/gvolpe/.stack/setup-exe-cache/x86_64-linux-nopie/Cabal-simple_mPHDZzAJ_2.0.0.2_ghc-8.2.1 --builddir=.stack-work/dist/x86_64-linux-nopie/Cabal-2.0.0.2 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/gvolpe/development/haskell-ide-engine/.stack-work/logs/djinn-ghc-0.0.2.3.log

    Configuring djinn-ghc-0.0.2.3...
    Preprocessing library for djinn-ghc-0.0.2.3..
    Building library for djinn-ghc-0.0.2.3..
    [1 of 1] Compiling Djinn.GHC        ( src/Djinn/GHC.hs, .stack-work/dist/x86_64-linux-nopie/Cabal-2.0.0.2/build/Djinn/GHC.o )
    /usr/bin/ld.gold: error: cannot find -ltinfo
    collect2: error: ld returned 1 exit status
    `gcc' failed in phase `Linker'. (Exit code: 1)
Makefile:4: recipe for target 'build' failed
make: *** [build] Error 1

Fix

sudo apt install ghc
stack install cabal-install

Also, don't forget to add ~/.local/bin to your PATH if the script doesn't do it automatically.

About

👾 My NeoVim configuration for Scala & Haskell development (permanently moved to https://github.com/gvolpe/dotfiles)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published