gu-fan / colorv.vim

edit color easy
http://www.vim.org/scripts/script.php?script_id=3597
135 stars 12 forks source link

Error detected while processing function colorv#init[28]..<SNR>28_py_core_load: #32

Closed adelin-b closed 5 years ago

adelin-b commented 6 years ago

Hello, here is the error I get each time I launch vim.

Error detected while processing function colorv#init[28]..<SNR>28_py_core_load:
line    5:
-c:135: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgb[ ]?[' (truncated)
-c:142: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgba[(]\n' (truncated)
-c:149: DeprecationWarning: Flags not at the start of the expression '\n        \\b glColor\\' (truncated)
-c:155: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgb[(]\n ' (truncated)
-c:162: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgba[(]\n' (truncated)
-c:169: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsl[(]\n ' (truncated)
-c:176: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsla[(]\n' (truncated)
-c:183: DeprecationWarning: Flags not at the start of the expression '\n        \\b cmyk[(]\n' (truncated)
-c:189: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsv[(]\n ' (truncated)
-c:196: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsva[(]\n' (truncated)
-c:206: DeprecationWarning: Flags not at the start of the expression '\n        ([#]|\\b0x|\\' (truncated)
-c:208: DeprecationWarning: Flags not at the start of the expression '\n        [#](?P<HEX3' (truncated)
Press ENTER or type command to continue

Anyone else get it ? Or is it something in my python configuration

senegalo commented 5 years ago

Same here !

Error detected while processing function colorv#init[32]..<SNR>143_py_core_load:
line    5:
/must>not&exist/foo:135: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgb[ ]?[' (truncated)
/must>not&exist/foo:142: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgba[(]\n' (truncated)
/must>not&exist/foo:149: DeprecationWarning: Flags not at the start of the expression '\n        \\b glColor\\' (truncated)
/must>not&exist/foo:155: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgb[(]\n ' (truncated)
/must>not&exist/foo:162: DeprecationWarning: Flags not at the start of the expression '\n        \\b rgba[(]\n' (truncated)
/must>not&exist/foo:169: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsl[(]\n ' (truncated)
/must>not&exist/foo:176: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsla[(]\n' (truncated)
/must>not&exist/foo:183: DeprecationWarning: Flags not at the start of the expression '\n        \\b cmyk[(]\n' (truncated)
/must>not&exist/foo:189: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsv[(]\n ' (truncated)
/must>not&exist/foo:196: DeprecationWarning: Flags not at the start of the expression '\n        \\b hsva[(]\n' (truncated)
/must>not&exist/foo:206: DeprecationWarning: Flags not at the start of the expression '\n        ([#]|\\b0x|\\' (truncated)
/must>not&exist/foo:208: DeprecationWarning: Flags not at the start of the expression '\n        [#](?P<HEX3' (truncated)
Press ENTER or type command to continue
aroberts commented 5 years ago

I'm also seeing this - looks like python 3.6 changed the rules about where flags can be in a regex: https://github.com/python/cpython/commit/db99e6ee57c5070e6ef82fd2eaa528f09f3948dc