Closed
Description
I get this when i open new vim window and open arbitrary *.hs file:
"src/FareBasisRule.hs" 59L, 1948C
Error detected while processing function ghcmod#util#check_version:
line 3:
E684: list index out of range: 0
E15: Invalid expression: a:version[l:i] > l:ghc_mod_version[l:i]
E684: list index out of range: 1
E15: Invalid expression: a:version[l:i] > l:ghc_mod_version[l:i]
E684: list index out of range: 2
E15: Invalid expression: a:version[l:i] > l:ghc_mod_version[l:i]
:GhcModType
and other commands still work after this. This error happens only while opening first haskell-filetype file.
:GhcModDiagnostics
output:
Current filetype: haskell
filetype detection:ON plugin:ON indent:ON
ghcmod.vim version: 1.2.0
ghc-mod is executable: 1
vimproc.vim: 800
ghc-mod version:
ghc-mod debug command: ghc-mod -g -i/Users/dr/workspace/contractor/dist/build/autogen -g -I/Users/dr/workspace/contractor/dist/build/autogen -g -optP-inclu
de -g -optP/Users/dr/workspace/contractor/dist/build/autogen/cabal_macros.h -g -i/Users/dr/workspace/contractor/dist/build/contractor/contractor-tmp -g -I/
Users/dr/workspace/contractor/dist/build/contractor/contractor-tmp debug
Root directory: /Users/dr/workspace/contractor
Current directory: /Users/dr/workspace/contractor
Cabal file: Just "/Users/dr/workspace/contractor/contractor.cabal"
GHC options: -i/Users/dr/workspace/contractor/dist/build/autogen -I/Users/dr/workspace/contractor/dist/build/autogen -optP-include -optP/Users/dr/w
orkspace/contractor/dist/build/autogen/cabal_macros.h -i/Users/dr/workspace/contractor/dist/build/contractor/contractor-tmp -I/Users/dr/workspace/contracto
r/dist/build/contractor/contractor-tmp -global-package-db -no-user-package-db -package-db /Users/dr/workspace/contractor/.cabal-sandbox/x86_64-osx-ghc-7.8.
3-packages.conf.d -XHaskell2010 -optP-include -optP/Users/dr/workspace/contractor/dist/build/autogen/cabal_macros.h
Include directories: /Users/dr/workspace/contractor /Users/dr/workspace/contractor/dist/build /Users/dr/workspace/contractor/dist/build/autogen /Users/dr/w
orkspace/contractor/src
Dependent packages: Glob-0.7.5, aeson-0.8.0.2, base-4.7.0.1, containers-0.5.5.1, fclabels-2.0.2, mtl-2.1.3.1, text-1.2.0.0, time-1.4.2
System libraries: /Library/Frameworks/GHC.framework/Versions/7.8.3-x86_64/usr/lib/ghc-7.8.3
Metadata
Metadata
Assignees
Labels
No labels