quarnster/SublimeClang — Issue #19: Python crash in errormarkers on Windows
Author: alimbourg
Created: 2012-01-19 09:50:23+00:00
State: open

A python exception occurs when sublime slang is settingerror markers, in highlight_panel_row() on Windows.
It's likely due because of these lines (72-73):

str = "%s:%d" % (view.file_name(), (row + 1))
r = v.find(str, 0)

as in v.find(), str is used as a regex, and windows file_name is containing infamous blackslashes.
Escaping backslashes like this worked as a patch:

r = v.find(str.replace('\\','\\\\'), 0)

cheers,
and thanks for your plugin.