I just got started with Sublime Text and have some trouble getting this plugin to work. Here is the error message I get when I try to use “Show Documentation” on highlighted text. Oddly, some other Rope commands (e.g., Go to Global) seem to be working okay. Any ideas?
Traceback (most recent call last):
File "./sublime_plugin.py", line 362, in run_
File "./sublime_rope.py", line 146, in run
maxfixes=3)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/contrib/codeassist.py", line 59, in get_doc
pyname = fixer.pyname_at(offset)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/contrib/fixsyntax.py", line 63, in pyname_at
return new_pyname()
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/contrib/fixsyntax.py", line 61, in new_pyname
return rope.base.evaluate.eval_location(pymodule, newoffset)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 11, in eval_location
return eval_location2(pymodule, offset)[1]
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 17, in eval_location2
return pyname_finder.get_primary_and_pyname_at(offset)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 108, in get_primary_and_pyname_at
return eval_str2(holding_scope, name)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 44, in eval_str2
return eval_node2(holding_scope, node)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 30, in eval_node2
ast.walk(node, evaluator)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/ast.py", line 36, in walk
walk(child, walker)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/ast.py", line 36, in walk
walk(child, walker)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/ast.py", line 34, in walk
return method(node)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 146, in _Attribute
pyname = eval_node(self.scope, node.value)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 25, in eval_node
return eval_node2(scope, node)[1]
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 30, in eval_node2
ast.walk(node, evaluator)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/ast.py", line 34, in walk
return method(node)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 157, in _Call
primary, pyobject = self._get_primary_and_object_for_node(node.func)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 277, in _get_primary_and_object_for_node
primary, pyname = eval_node2(self.scope, stmt)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 30, in eval_node2
ast.walk(node, evaluator)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/ast.py", line 34, in walk
return method(node)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 146, in _Attribute
pyname = eval_node(self.scope, node.value)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 25, in eval_node
return eval_node2(scope, node)[1]
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 30, in eval_node2
ast.walk(node, evaluator)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/ast.py", line 34, in walk
return method(node)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/evaluate.py", line 143, in _Name
self.result = self.scope.lookup(node.id)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyscopes.py", line 48, in lookup
return self.parent._propagated_lookup(name)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyscopes.py", line 62, in _propagated_lookup
if name in self.get_propagated_names():
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyscopes.py", line 59, in get_propagated_names
return self.get_names()
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyscopes.py", line 127, in get_names
result.update(super(GlobalScope, self).get_names())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyscopes.py", line 16, in get_names
return self.pyobject.get_attributes()
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjects.py", line 196, in get_attributes
result = dict(self._get_concluded_attributes())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/utils.py", line 25, in newfunc
return func(self, *args, **kwds)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjects.py", line 191, in _get_concluded_attributes
self.concluded_attributes.set(self._create_concluded_attributes())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/utils.py", line 25, in newfunc
return func(self, *args, **kwds)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjectsdef.py", line 191, in _create_concluded_attributes
result.update(star_import.get_names())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjectsdef.py", line 534, in get_names
for name in imported:
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjects.py", line 65, in __iter__
return iter(self.get_attributes())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjects.py", line 196, in get_attributes
result = dict(self._get_concluded_attributes())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/utils.py", line 25, in newfunc
return func(self, *args, **kwds)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjects.py", line 191, in _get_concluded_attributes
self.concluded_attributes.set(self._create_concluded_attributes())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/utils.py", line 25, in newfunc
return func(self, *args, **kwds)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjectsdef.py", line 191, in _create_concluded_attributes
result.update(star_import.get_names())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjectsdef.py", line 533, in get_names
imported = self.imported_module.get_object()
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pynames.py", line 130, in get_object
if self._get_pymodule() is None:
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pynames.py", line 120, in _get_pymodule
self._current_folder())
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pycore.py", line 84, in get_module
return self.resource_to_pyobject(module)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pycore.py", line 194, in resource_to_pyobject
return self.module_cache.get_pymodule(resource, force_errors)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pycore.py", line 320, in get_pymodule
force_errors=force_errors)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjectsdef.py", line 153, in __init__
source, node = self._init_source(pycore, source, resource)
File "/Users/Stephan/Library/Application Support/Sublime Text 2/Packages/SublimeRope/rope/base/pyobjectsdef.py", line 182, in _init_source
raise exceptions.ModuleSyntaxError(filename, e.lineno, e.msg)
rope.base.exceptions.ModuleSyntaxError: Syntax error in file <utils.py> line <127>: invalid syntax