Session Saver plugin for gedit does not save

Bug #115466 reported by Forlong
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gedit-plugins
Fix Released
High
gedit-plugins (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gedit-plugins

When trying to use the Session Saver plugin for gedit via "Saved Sessions → Save current session" it doesn't do anything.
Here's the error-message from the terminal:

Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/sessionsaver/dialogs.py", line 35, in on_session_added
    self.row_inserted(self.on_get_path(piter), piter)
TypeError: iter should be a GtkTreeIter
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/sessionsaver/dialogs.py", line 150, in on_response
    self.plugin.sessions.save()
  File "/usr/lib/gedit-2/plugins/sessionsaver/store.py", line 124, in save
    os.path.makedirs(dirname)
AttributeError: 'module' object has no attribute 'makedirs'

Ubuntu Feisty Fawn
Package: gedit-plugins (2.18.0-0ubuntu1)

Forlong (forlong)
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug, it's now upstream http://bugzilla.gnome.org/show_bug.cgi?id=425843 and has been fixed to svn

Changed in gedit-plugins:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Fix Committed
Revision history for this message
Forlong (forlong) wrote :

Hi,

thanks for taking care of the bug but unfortunately the fix isn't right.
I changed the line like mentioned in the link to GNOME's bugzilla but the folder "~/.gnome2/gedit/plugins" doesn't get created.
So the "saved-sessions.xml" file shows up in "~/.gnome2/gedit"

And although it works now there's still an error-message in the terminal:

Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/sessionsaver/dialogs.py", line 35, in on_session_added
    self.row_inserted(self.on_get_path(piter), piter)
TypeError: iter should be a GtkTreeIter

Changed in gedit-plugins:
status: Unknown → Fix Released
Revision history for this message
Mahesh Kale (maheshkale) wrote :

Follow-up with Nick:

I tried the same procedures as nick.At first it is not showing error message.In next few reboots when i tried to do the same error message is reproduced.

Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/sessionsaver/dialogs.py", line 35, in on_session_added
    self.row_inserted(self.on_get_path(piter), piter)
TypeError: iter should be a GtkTreeIter

Just check the released fix again please.

Revision history for this message
Forlong (forlong) wrote :

The error message still persists in up-to-date Gutsy.

Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/sessionsaver/dialogs.py", line 35, in on_session_added
    self.row_inserted(self.on_get_path(piter), piter)
TypeError: iter should be a GtkTreeIter

Revision history for this message
Áron Sisak (asisak) wrote :

This has been fixed in Gutsy.

Changed in gedit-plugins:
status: Fix Committed → Fix Released
Changed in gedit-plugins:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.