UltiSnips is not working correctly if langmap is not compiled into vim

Bug #719997 reported by SirVer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UltiSnips
Fix Released
Medium
Unassigned

Bug Description

Reported by Martin via Mail:

I was trying out ultisnips for the first time and ran into an error when expanding most snippets: https://gist.github.com/829023.

I have no skills with python, but line 406 of __init__.py checks the value of the &langmap option, but if this option is not compiled into vim then vim.eval(&langmap) returns None. Then the script fails when trying to call strip() on this object.

My temporary fix is to stick "return s" at the top of the function.

You can use has("langmap") to check if the feature was compiled in.

Related branches

Revision history for this message
SirVer (sirver) wrote :

I wasn't aware that langmap is optional. I committed a fix which does not break things on my box and should fix things on your box in r242. Please check if this is the case.

Changed in ultisnips:
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
SirVer (sirver) wrote :

Release in 1.4.

Changed in ultisnips:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.