Zim

AttributeError: append exceptions while trying to undo the addition of table

Bug #1722900 reported by revolverxd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
New
Undecided
Unassigned

Bug Description

I added a table to a note and then decided i do not like its design and wanted to start a new,
I used Ctrl-Z to undo and then this exception poped up:

This is zim 0.67
Platform: posix
Locale: en_US UTF-8
FS encoding: UTF-8
Python: (2, 7, 14, 'final', 0)
Gtk: (2, 24, 31)
Pygtk: (2, 24, 0)
No bzr version-info found

======= Traceback =======
  File "/usr/lib/python2.7/site-packages/zim/actions.py", line 157, in do_activate
    self.__get__(instance, instance.__class__)()
  File "/usr/lib/python2.7/site-packages/zim/actions.py", line 140, in func
    self.func(instance, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 5834, in undo
    self.undostack.undo()
  File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 4618, in undo
    if self.insert_pending: self.flush_insert()
  File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 4576, in flush_insert
    if not _flush_group(self.stack[i]):
  File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 4567, in _flush_group
    tree = self.buffer.get_parsetree(bounds, raw=True)
  File "/usr/lib/python2.7/site-packages/zim/gui/pageview.py", line 2377, in get_parsetree
    obj.build_parsetree_of_table(builder, iter)
  File "/usr/lib/python2.7/site-packages/zim/plugins/tableeditor.py", line 432, in build_parsetree_of_table
    builder.append(HEADDATA, header)
AttributeError: append

Output when running zim -D:
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
WARNING: Can not import 'xdg.Mime' - falling back to 'mimetypes'
INFO: This is zim 0.67
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=14, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: No bzr version-info found
DEBUG: Not running from a source dir
DEBUG: Set XDG_DATA_HOME to /home/david/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /home/david/.local/share/flatpak/exports/share>, <Dir: /var/lib/flatpak/exports/share>, <Dir: /usr/local/share>, <Dir: /usr/share>]
DEBUG: Set XDG_CONFIG_HOME to /home/david/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /home/david/.cache
DEBUG: Connecting to /tmp/zim-david/primary-0.67-cbe8276d
DEBUG: Got error in dispatch: No such file or directory
DEBUG: Registered object line
WARNING: Could not find all icon sizes for the application icon
DEBUG: Starting primary process
DEBUG: Start listening on: /tmp/zim-david/primary-0.67-cbe8276d
DEBUG: Loading config from: <zim.notebook.info.VirtualFile object at 0x7f7951caac90>
DEBUG: Loading config from: /home/david/Notebooks/Linux_notes/notebook.zim
DEBUG: Wrote /home/david/.config/zim/notebooks.list
DEBUG: Loading config from: /home/david/Notebooks/Linux_notes/notebook.zim
DEBUG: Opening notebook: <zim.notebook.notebook.Notebook object at 0x7f794ea4ee90>
DEBUG: Loading config from: <ConfigFile: /home/david/.config/zim/preferences.conf>
DEBUG: Loading plugin: arithmetic
DEBUG: Loading plugin: bookmarksbar
DEBUG: Loading plugin: calendar
DEBUG: Loading plugin: diagrameditor
DEBUG: Loading plugin: distractionfree
DEBUG: Loading plugin: ditaaeditor
DEBUG: Loading plugin: equationeditor
DEBUG: Loading plugin: gnu_r_ploteditor
DEBUG: Loading plugin: gnuplot_ploteditor
DEBUG: Loading plugin: inlinecalculator
DEBUG: Loading plugin: insertsymbol
DEBUG: Loading plugin: linesorter
DEBUG: Loading plugin: linkmap
DEBUG: Loading plugin: printtobrowser
DEBUG: Loading plugin: screenshot
DEBUG: Loading plugin: sourceview
DEBUG: Registered object code
DEBUG: Loading plugin: spell
DEBUG: Loading plugin: tableeditor
DEBUG: Registered object table
DEBUG: Loading plugin: tableofcontents
DEBUG: Loading plugin: tags
DEBUG: Loading plugin: tasklist
DEBUG: Loading plugin: trayicon
DEBUG: Loading plugin: versioncontrol
INFO: No VCS detected
DEBUG: Gtk version is (2, 24, 31)
DEBUG: Pygtk version is (2, 24, 0)
DEBUG: Loading config from: <ConfigFile: /home/david/.config/zim/style.conf>
DEBUG: Autosave interval: 15 - use threads: True
DEBUG: Loading config from: /home/david/.cache/zim/notebook-home_david_Notebooks_Linux_notes/state.conf
DEBUG: Registered plugin <zim.plugins.base.imagegenerator.DiagramMainWindowExtension object at 0x7f794ca61050> for image type "diagram"
DEBUG: Registered plugin <zim.plugins.base.imagegenerator.DitaaMainWindowExtension object at 0x7f794ca61410> for image type "ditaa"
DEBUG: Registered plugin <zim.plugins.base.imagegenerator.EquationMainWindowExtension object at 0x7f794ca61450> for image type "equation"
DEBUG: Registered plugin <zim.plugins.base.imagegenerator.Gnu_R_PlotMainWindowExtension object at 0x7f794ca61510> for image type "gnu_r_plot"
DEBUG: Registered plugin <zim.plugins.base.imagegenerator.GnuplotMainWindowExtension object at 0x7f794ca615d0> for image type "gnuplot"
DEBUG: Add window: StatusIconTrayIcon
DEBUG: Accelmap: /home/david/.config/zim/accelmap
INFO: Open page: Home (Home)
DEBUG: Found template 'Default' for Home
INFO: Loading template from: /usr/share/zim/templates/wiki/Default.txt
DEBUG: Add window: MainWindow
DEBUG: BackgroundCheck started
DEBUG: BackgroundCheck found out-of-date
DEBUG: Index folder: /home/david/Notebooks/Linux_notes
DEBUG: BackgroundCheck started
DEBUG: BackgroundCheck finished
DEBUG: BackgroundCheck started
DEBUG: BackgroundCheck finished

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.