vim-erlang / vim-erlang-compiler

Erlang syntax checking and compiler plugin for Vim
https://vim-erlang.github.io
56 stars 24 forks source link

Fix undefined variable error #14

Closed urbanserj closed 9 years ago

urbanserj commented 9 years ago
Error detected while processing …/vim-erlang-compiler/compiler/erlang.vim:
line   25:
E121: Undefined variable: g:erlang_make_options
E15: Invalid expression: g:erlang_make_options
line   26:
E121: Undefined variable: g:erlang_make_options_rules
E15: Invalid expression: g:erlang_make_options_rules
line   35:
E121: Undefined variable: s:make_options
E116: Invalid arguments for function escape(fnameescape(g:erlang_compiler_check_script) . ' ' .        s:make_options . ' ', ' \') . '%'
E15: Invalid expression: "CompilerSet makeprg=" . escape(fnameescape(g:erlang_compiler_check_script) . ' ' .        s:make_options . ' ', ' \') . '%'
hcs42 commented 9 years ago

plugin/erlang_compiler.vim sets these variables to default values if they are not defined.

Could you check what's going on? Maybe plugin/erlang_compiler.vim is not executed on your machine? Maybe because you already have another compiler set up so it exits?

urbanserj commented 9 years ago

Could not reproduce after reinstalling all plugins from scratch. @hcs42, please excuse me for false positive issue.