spf13-vim icon indicating copy to clipboard operation
spf13-vim copied to clipboard

Error when open document twice in pymode

Open ZhiruiLi opened this issue 9 years ago • 4 comments

In pymode, one can press Shift+k to open the document. It runs well when first opening a document, but errors occur after I tried to read document again.

"__doc__" [New File]
Error detected while processing function <SNR>190_VimCssInit:
line    9:
E121: Undefined variable: b:color_pattern
E116: Invalid arguments for function keys(b:color_pattern))>0
E116: Invalid arguments for function len(keys(b:color_pattern))>0
E15: Invalid expression: len(keys(b:color_pattern))>0
Error detected while processing function <SNR>190_VimCssInit..<SNR>190_AdditionalColors..<SNR>190_MatchColo
rValue:
line    9:
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern
E121: Undefined variable: b:color_pattern

When this error occurs, I can hold the space key until finish reading all this message. After that, the document will still work.

After I close the python file and open it again, the error will gone away. But when I re-open the document, the error will occur again.

So how can I solve this? Thanks!

ZhiruiLi avatar Dec 21 '15 05:12 ZhiruiLi

I'm having the same issue.

v-lopez avatar Mar 22 '16 14:03 v-lopez

+1

loyalpartner avatar May 22 '16 12:05 loyalpartner

I had the same issue too! How to fixed it ?

Yannyezixin avatar Oct 03 '16 08:10 Yannyezixin

This looks like an issue with https://github.com/gko/vim-coloresque

erikdaniel avatar Jan 18 '18 15:01 erikdaniel