purescript-contrib / purescript-vim

Syntax highlighting and indentation for PureScript
BSD 2-Clause "Simplified" License
154 stars 35 forks source link

Errors when loading #47

Closed luqui closed 7 years ago

luqui commented 7 years ago

I'm not sure what's going on here. When I load up a purescript file it says

"src/Main.purs" 172L, 5466C
Error detected while processing function InitPureScript:
line    1:
E121: Undefined variable: idx
E116: Invalid arguments for function map( findfile("psc-package.json", expand("%:p:h") .
 ";/", -1), { idx, val -> fnamemodify(val, ":p:h") } )
E15: Invalid expression: map( findfile("psc-package.json", expand("%:p:h") . ";/", -1),
{ idx, val -> fnamemodify(val, ":p:h") } )
line    5:
E121: Undefined variable: dirs
E116: Invalid arguments for function empty(dirs)
E15: Invalid expression: empty(dirs)
line   23:
E121: Undefined variable: dirs
E15: Invalid expression: dirs[len(dirs) - 1]
line   24:
E121: Undefined variable: dir
E116: Invalid arguments for function globpath(dir, "src/**/*.purs", v:true, v:true)
E15: Invalid expression: globpath(dir, "src/**/*.purs", v:true, v:true)
line   25:
E121: Undefined variable: gp
E116: Invalid arguments for function empty(gp)
E15: Invalid expression: empty(gp)
line   29:
E121: Undefined variable: dir
E116: Invalid arguments for function join([dir, dir . "/bower_components/**", dir . "/sr
c/**"], ",")
E15: Invalid expression: join([dir, dir . "/bower_components/**", dir . "/src/**"], ",")

line   30:
E121: Undefined variable: dir
E116: Invalid arguments for function add

Any ideas?

luqui commented 7 years ago

I'm using vim 7.3, standard version by homebrew.

luqui commented 7 years ago

TIL vim 7.3 is ollddddd. This issue is not present in vim 8.0.