Issues

Issue #571 invalid

Python error while aborting the open project prompt

Anonymous created an issue

I get an Python error when i try to press ESC while in the RopeOpenProject command. Here is the related traceback:

Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/phxx/.vim/custom/rope/pylibs/ropemode/decorators.py", line 53, in newfunc return func(args, *kwds) File "/home/phxx/.vim/custom/rope/pylibs/ropemode/interface.py", line 88, in open_project self.project = rope.base.project.Project(root) File "/home/phxx/.vim/custom/rope/pylibs/rope/base/project.py", line 130, in init projectroot = _realpath(projectroot).rstrip('/\') File "/home/phxx/.vim/custom/rope/pylibs/rope/base/project.py", line 428, in _realpath return os.path.realpath(os.path.abspath(os.path.expanduser(path))) File "/usr/lib/python2.5/posixpath.py", line 313, in expanduser if not path.startswith('~'): AttributeError: 'NoneType' object has no attribute 'startswith'

I think the self.env.ask_directory() in ropemode/interface.py:84 returns None if the prompt is aborted with ESC.

Comments (1)

  1. Log in to comment