在某些情况下,绝地在崇高文本中无法自动完成:
import os
def x(y):
print(y)
print(x)
f = open('1.txt', mode='r', encoding='utf-8'). # fail on dot
from datetime import d # fail on module import
在这两种情况下我都有这个错误:
...
File "/Users/rmerkushin/Library/Application Support/Sublime Text 3/Packages/sublime-jedi/jedi/parser/__init__.py", line 267, in parse
root_node = super(ParserWithRecovery, self).parse(self._tokenize(tokenizer))
File "/Users/rmerkushin/Library/Application Support/Sublime Text 3/Packages/sublime-jedi/jedi/parser/__init__.py", line 146, in parse
self.remove_last_newline()
File "/Users/rmerkushin/Library/Application Support/Sublime Text 3/Packages/sublime-jedi/jedi/parser/__init__.py", line 227, in remove_last_newline
assert newline.value.endswith('\n')
AssertionError
如何解决这个问题?
PS:绝地版本 - 0.10.0,Sublime Text - 3126(Python 3.3.6)