andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Exception when "following" moved file in Enki #130

Closed vi closed 11 years ago

vi commented 11 years ago
  1. dir/file.c is opened in Enki;
  2. I issue mv dir/file.c file.c and rmdir dir;
  3. In Enki, I do Ctrl+L, ../file.c;
  4. Two windows with the same backtrace are openend:
Traceback (most recent call last):
  File "/mnt/src/git/enki/bin/../enki/core/openedfilemodel.py", line 116, in data
    return self._uniqueDocumentPath(document)
  File "/mnt/src/git/enki/bin/../enki/core/openedfilemodel.py", line 97, in _uniqueDocumentPath
    leftPathDirname = os.path.abspath(os.path.join(leftPath, os.path.pardir))
  File "/usr/lib/python2.7/posixpath.py", line 354, in abspath
    cwd = os.getcwdu()
OSError: [Errno 2] No such file or directory

Additionaly I see the panel like "file.c is going to be created".

\5. Enki closes after I accept the foreground backgrace window.

andreikop commented 11 years ago

Hey, vi, you managed to run Qutepart and Enki on Windows. Maybe you could create Howto?

vi commented 11 years ago

This was on my primary GNU/Linux laptop with Debian Wheezy x86 (x86_64 kernel).

I haven't yet tried Enki-Qutepart on Windows (only ran old Enki). If you want, I can explicitly try this, maybe also provide a binary build. You can create a separate issue and assign it to me in this case.

andreikop commented 11 years ago

ah, Linux also has rmdir command

andreikop commented 11 years ago

Fixed