stefandtw / quickfix-reflector.vim

Change code right in the quickfix window
MIT License
340 stars 19 forks source link

swash of error messages on saving edits #17

Closed Konfekt closed 8 years ago

Konfekt commented 8 years ago

In a file t.tex, and a single line in the qf-window that matches line 98 and well exists, saving the edits produces

"t.tex" 804 lines --19%--

replace with \\K (y/n/a/q/l/^E/^Y)?
5 substitutions on 1 line
Error detected while processing function <SNR>174_OnWrite:
line   31:
E684: list index out of range: 0
E116: Invalid arguments for function index(qfBufferLines, matchList[0]))
E116: Invalid arguments for function remove
line   33:
E684: list index out of range: 1
E116: Invalid arguments for function escape(matchList[1], '/\')
E15: Invalid expression: '\C\V\^' . escape(matchList[1], '/\')
line   37:
E684: list index out of range: 1
E116: Invalid arguments for function escape(matchList[1], '/\') . '\(' . qfDescriptionEscaped . escape(matchList[2], '/\') . '\$' . '\)\@\!\(\.\*\)\$'
E15: Invalid expression: '\C\V\^' . escape(matchList[1], '/\') . '\(' . qfDescriptionEscaped . escape(matchList[2], '/\') . '\$' . '\)\@\!\(\.\*\)\$'
line   40:
E716: Key not present in Dictionary: markerPatternForChanges, 'cnw')
E116: Invalid arguments for function search(entry.markerPatternForChanges, 'cnw')
E15: Invalid expression: search(entry.markerPatternForChanges, 'cnw')
line   41:
E121: Undefined variable: lineNumberForChange
E15: Invalid expression: lineNumberForChange && entry.valid == 1
line   53:
E716: Key not present in Dictionary: markerPattern, 'cnw')
E116: Invalid arguments for function search(entry.markerPattern, 'cnw')
E15: Invalid expression: search(entry.markerPattern, 'cnw')
line   54:
E121: Undefined variable: lineNumber
E15: Invalid expression: !lineNumber
line   58:
E121: Undefined variable: lineNumber
E15: Invalid expression: lineNumber
stefandtw commented 8 years ago

To reproduce this, please provide that line of text and what you tried to replace it with.

Konfekt commented 8 years ago

The line is

Let $V = T \ox_{\o_\K} \K$ be the associated finite-dimensional $\L$ vector space on which $\cG_{\Q_p}$ acts continuously and $\rD(V) = \rD(T) \ox_{\o_\L} \L$ its corresponding étale $\varphi,\Gamma$-module over $\cE_\L$.

and

:%substitute:\\L:\\K:cgI
stefandtw commented 8 years ago

I can't reproduce the errors. If you want to help break it down, you could:

Konfekt commented 8 years ago

I am sorry, the line was incorrectly pasted. It is:

  Let $V = T \ox_{\o_\L} \L$ be the associated finite-dimensional $\L$ vector space on which $\cG_{\Q_p}$ acts continuously and $\rD(V) = \rD(T) \ox_{\o_\L} \L$ its corresponding étale $\varphi,\Gamma$-module over $\cE_\L$.

The sole difference being the indent of two white spaces. Without indent, it not reproducible over here neither.

stefandtw commented 8 years ago

Should be fixed now. Thanks for reporting.