Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

バージョンアップ直後にエラー出力される #22

Closed
kakatofu opened this issue Nov 6, 2009 · 6 comments
Closed

バージョンアップ直後にエラー出力される #22

kakatofu opened this issue Nov 6, 2009 · 6 comments

Comments

@kakatofu
Copy link

kakatofu commented Nov 6, 2009

neocomplcacheをバージョンアップした後に、
ときどきですがエラーメッセージが表示されることがあるようです。
以下にv3.07から現masterにバージョンアップした後に表示された
エラーメッセージを記します。
( ファイル名等、一部修正しています)

_viminfoを削除したら治まると思っていたのですが、
削除しなくても治るようです。
条件は分かりません。

~~~~~~~~~~ エラーメッセージ ~~~~~~~~~~
"F:\dev\myproject\aaa.cpp" [変換済] 250L, 6677C
"aaa.cpp" 250 行 --0%--
"aaa.h" [変換済] 105L, 3315C
"bbb.cpp" 871L, 23342C
function 52_check_buffer_all..52_check_buffer..52_check_include..52_load_from_tags の処理中にエラーが検出されました:
行 79:
E684: リストのインデックスが範囲外です: 3
E15: 無効な式です: (l:tag[3] == 'd' || l:option['cmd'] == '')? l:tag[0] : l:option['cmd']
行 80:
E121: 未定義の変数です: l:abbr
E116: Invalid arguments for function len(l:abbr) > g:NeoComplCache_MaxKeywordWidth)? printf(l:abbr_pattern, l:abbr, l:abbr[-8:]) : l:abbr, 'kind' : l:option['kind']}
E15: 無効な式です: { 'word' : l:tag[0], 'rank' : 5, 'prev_rank' : 0, 'prepre_rank' : 0, 'icase' : 1, 'abbr' : (len(l:abbr) > g:NeoComplCache_MaxKeywordWidth)? printf(l:abbr_pattern, l:abbr, l:abbr[-8:]) : l:abbr, 'kind' : l:option['kind']}
行 93:
E121: 未定義の変数です: keyword
行 100:
E121: 未定義の変数です: l:keyword
E116: Invalid arguments for function add

@Shougo
Copy link
Owner

Shougo commented Nov 6, 2009

それはキャッシュのバージョンが古いからです。
~/.neocon (g:NeoComplCache_TermporaryDir)のinclude_completeやtags_completeディレクトリを削除してください。

@kakatofu
Copy link
Author

kakatofu commented Nov 6, 2009

了解です。
バージョンアップさせたときはキャッシュを削除するようにします。

@kakatofu
Copy link
Author

kakatofu commented Nov 6, 2009

g:NeoComplCache_TermporaryDir中のbuffer_cache, include_cache, syntax_cache, tags_cacheを削除しても発生してしまいました。今度はpython。

"sre.py"
"sre.py" [変換済] 13L, 397C
Caching syntax "python"... please wait.

function 52_check_buffer_all..52_check_buffer..52_check_include..52_load_from_tags の処理中にエラーが検出されました:
行 63:
E684: リストのインデックスが範囲外です: 2
E116: Invalid arguments for function substitute(l:tag[2], '^[/?]^?\s_|$?[/?];"$', '', 'g'), '\', '', 'g') }
E116: Invalid arguments for function substitute(substitute(l:tag[2], '^[/?]^?\s_|$?[/?];"$', '', 'g'), '\', '', 'g') }
E15: 無効な式です: { 'cmd' : substitute(substitute(l:tag[2], '^[/?]^?\s*|$?[/?];"$', '', 'g'), '\', '', 'g') }
行 74:
E121: 未定義の変数です: l:option
E116: Invalid arguments for function has_key(l:option, 'file') || (has_key(l:option, 'access') && l:option.access != 'public')
E15: 無効な式です: has_key(l:option, 'file') || (has_key(l:option, 'access') && l:option.access != 'public')
行 79:
E684: リストのインデックスが範囲外です: 3
E15: 無効な式です: (l:tag[3] == 'd' || l:option['cmd'] == '')? l:tag[0] : l:option['cmd']
行 80:
E121: 未定義の変数です: l:abbr
E116: Invalid arguments for function len(l:abbr) > g:NeoComplCache_MaxKeywordWidth)? printf(l:abbr_pattern, l:abbr, l:abbr[-8:]) : l:abbr, 'kind' : l:option['kind']}
E15: 無効な式です: { 'word' : l:tag[0], 'rank' : 5, 'prev_rank' : 0, 'prepre_rank' : 0, 'icase' : 1, 'abbr' : (len(l:abbr) > g:NeoComplCache_MaxKeywordWidth)? printf(l:abbr_pattern, l:abbr, l:abbr[-8:]) : l:abbr, 'kind' : l:option['kind']}
行 86:
E121: 未定義の変数です: l:option
E116: Invalid arguments for function has_key(l:option, 'struct')
E15: 無効な式です: has_key(l:option, 'struct')
行 100:
E121: 未定義の変数です: l:keyword
E116: Invalid arguments for function add

@kakatofu
Copy link
Author

kakatofu commented Nov 9, 2009

私の環境を疑って、vimを素の状態で試したら発生しなくなりました。
kaoriya gvim / windows
環境依存ですね。何が悪いんだろう。

ちなみに、今までの環境でv3.10で試してみたところ、
エラーは発生するのですがinclude_cacheディレクトリにもtags_cacheディレクトリにもログは吐かれませんでした。

@Shougo
Copy link
Owner

Shougo commented Nov 10, 2009

ログを見て、原因が分かりました。次期バージョンで対応させます。
writefile()のバグも修正します。

@kakatofu
Copy link
Author

ありがとうございました。
neocomplcacheのさらなる発展を期待してます。

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants