Estou tentando fazer com que o pysmell ( link ) funcione - parece uma boa ferramenta de conclusão de código para o desenvolvimento do django no vim .
Estou no Mac OS X 1.7.1 (Lion) com o MacVim 7.3 (snapshot 61). Minha versão do python é 2.7.
Sempre que tento invocar omnicompletion em um arquivo python, recebo esses erros dentro do MacVim (é por isso que diz Press ENTER or type command to continue
):
Error detected while processing function pysmell#Complete:
line 24:
Traceback (most recent call last):
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
File "<string>", line 7, in <module>
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
File "<string>", line 3, in vimcompletePYSMELL
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/pysmell/idehelper.py", line 56, in findPYSMELLDICT
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
tryReadPYSMELLDICT(directory, 'PYSMELLTAGS', PYSMELLDICT)
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/pysmell/idehelper.py", line 42, in tryReadPYSMELLDICT
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
updatePySmellDict(dictToUpdate, eval(tagsFile.read()))
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
File "<string>", line 0
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
^
Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
SyntaxError: unexpected EOF while parsing
Alguém pode reconhecer esse erro / ver o que está errado e me ajudar a resolvê-lo? Isso realmente se parece com uma boa ferramenta para pythong / django / qualquer que seja a omnicompletion do python lib e eu gostaria de testá-lo.
EDIT: removeu todas as mensagens Press ENTER or type command to continue
Error detected while processing function pysmell#Complete:
line 24:
Traceback (most recent call last):
Error detected while processing function pysmell#Complete:
line 24:
File "<string>", line 7, in <module>
Error detected while processing function pysmell#Complete:
line 24:
File "<string>", line 3, in vimcompletePYSMELL
Error detected while processing function pysmell#Complete:
line 24:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/pysmell/idehelper.py", line 56, in findPYSMELLDICT
Error detected while processing function pysmell#Complete:
line 24:
tryReadPYSMELLDICT(directory, 'PYSMELLTAGS', PYSMELLDICT)
Press ENTER or type command to continue
line 24:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/pysmell/idehelper.py", line 42, in tryReadPYSMELLDICT
Error detected while processing function pysmell#Complete:
line 24:
updatePySmellDict(dictToUpdate, eval(tagsFile.read()))
Error detected while processing function pysmell#Complete:
line 24:
File "<string>", line 0
Error detected while processing function pysmell#Complete:
line 24:
Error detected while processing function pysmell#Complete:
line 24:
^
Error detected while processing function pysmell#Complete:
line 24:
SyntaxError: unexpected EOF while parsing