diffhl not defined with vim-latex plugin #5

Closed
ScOut3R opened this Issue Jan 22, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@ScOut3R
Contributor

ScOut3R commented Jan 22, 2012

Dear chrisbra,

I'm not sure this issue is related to your script, but i've come across a strange issue. Using vim-latex (http://vim-latex.sourceforge.net/) plugin your plugin throws this error during activation only when i'm editing a tex file (other files are ok):

Error detected while processing function changes#GetDiff:
line 45:
E121: Undefined variable: b:diffhl

I've tried to debug it and found out the following. Without the vim-latex plugin, during the MakeDiffs function, the diffhl variable works as expected. But with the vim-latex plugin after the diffing, just before executing line 367 the diffhl variable is missing from the buffer. I'm a noob in vimscripts so i won't try to guess the cause, but i'm sure that the vim-latex plugin does something to the buffer during the MakeDiffs function.

Thank You for your time!

Best regards,
Mate

@chrisbra

This comment has been minimized.

Show comment
Hide comment
@chrisbra

chrisbra Jan 23, 2012

Owner

On Sun, January 22, 2012 11:18 am, Mate Gabri wrote:

Dear chrisbra,

I'm not sure this issue is related to your script, but i've come across a
strange issue. Using vim-latex (http://vim-latex.sourceforge.net/) plugin
your plugin throws this error during activation only when i'm editing a
tex file (other files are ok):

Error detected while processing function changes#GetDiff:
line 45:
E121: Undefined variable: b:diffhl

I've tried to debug it and found out the following. Without the vim-latex
plugin, during the MakeDiffs function, the diffhl variable works as
expected. But with the vim-latex plugin after the diffing, just before
executing line 367 the diffhl variable is missing from the buffer. I'm a
noob in vimscripts so i won't try to guess the cause, but i'm sure that
the vim-latex plugin does something to the buffer during the MakeDiffs
function.

Thank You for your time!

Thanks for your report. I think I found the error. The latexsuite
plugin opens a new scratch buffer when it detects a TeX file and
quickly closes it. This breaks my plugin. Oh, well, I need to work
around that somwhow.

regards,
Christian

Owner

chrisbra commented Jan 23, 2012

On Sun, January 22, 2012 11:18 am, Mate Gabri wrote:

Dear chrisbra,

I'm not sure this issue is related to your script, but i've come across a
strange issue. Using vim-latex (http://vim-latex.sourceforge.net/) plugin
your plugin throws this error during activation only when i'm editing a
tex file (other files are ok):

Error detected while processing function changes#GetDiff:
line 45:
E121: Undefined variable: b:diffhl

I've tried to debug it and found out the following. Without the vim-latex
plugin, during the MakeDiffs function, the diffhl variable works as
expected. But with the vim-latex plugin after the diffing, just before
executing line 367 the diffhl variable is missing from the buffer. I'm a
noob in vimscripts so i won't try to guess the cause, but i'm sure that
the vim-latex plugin does something to the buffer during the MakeDiffs
function.

Thank You for your time!

Thanks for your report. I think I found the error. The latexsuite
plugin opens a new scratch buffer when it detects a TeX file and
quickly closes it. This breaks my plugin. Oh, well, I need to work
around that somwhow.

regards,
Christian

@chrisbra

This comment has been minimized.

Show comment
Hide comment
@chrisbra

chrisbra Jan 23, 2012

Owner

Please try current head. That should fix the issue.

Owner

chrisbra commented Jan 23, 2012

Please try current head. That should fix the issue.

@ScOut3R

This comment has been minimized.

Show comment
Hide comment
@ScOut3R

ScOut3R Jan 23, 2012

Contributor

Dear Christian,

thank You for your quick response! It is indeed working!

And thank You for this great plugin! :)

Best regards,
Mate

Contributor

ScOut3R commented Jan 23, 2012

Dear Christian,

thank You for your quick response! It is indeed working!

And thank You for this great plugin! :)

Best regards,
Mate

@chrisbra chrisbra closed this Apr 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment