lambdalisue / vim-gita

[Obsolete] An awesome git handling plugin for Vim
Other
226 stars 8 forks source link

Gita actions fail because of parsing error. #61

Closed mpcjanssen closed 9 years ago

mpcjanssen commented 9 years ago

When trying to commit changes to my vimrc, Gita status fails with a parsing error.

Error detected while processing function gita#action#call..gita#action#exec..130..89..gita#features#status#update..gita#utils#status#parse..<SNR>64_parse..<SNR>64_parse_record:
line   53:
E605: Exception not caught: vital: VCS.Git.StatusParser: Parsing a record failed: "warning: LF will be replaced by CRLF in vimrc."
Error detected while processing function gita#action#call..gita#action#exec..130..89..gita#features#status#update..gita#utils#status#parse..<SNR>64_parse:
line   14:
E170: Missing :endfor
Error detected while processing function gita#action#call..gita#action#exec..130..89:
line    2:
E171: Missing :endif
lambdalisue commented 9 years ago

Hum... It is not difficult to ignore lines which failed to parse but I'm ambiguous if I should or not. What do you think?

mpcjanssen commented 9 years ago

Maybe check if they start with warning and generate a :message with this?

lambdalisue commented 9 years ago

Maybe check if they start with warning and generate a :message with this?

Hum... Let me think about this... While parsing feature is provided by vital-VCS-Git, it is a bit difficult to do it straight way.