General Buggy Behaviour in Unity

Bug #819826 reported by mikey
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gedit-latex-plugin (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Sorry for the non specific report but there are so many errors for me it's had to distinguish them. I will do my best.

Just installed gedit 2.30.4 and LaTeX Plugin 0.2 from my Ubuntu 11.04 repos. Never tried using them before.

Here's what I found. After enabling the LaTeX plugin there were still no LaTeX menus. Selecting a new file made the "File>New LaTeX Document" menu item appear. Selecting on this and choosing reasonable defaults opens another "Select Master" dialogue that is hard to read and doesn't explain what it is for. It defaults to "(None)" which seemed reasonable if you didn't know what it was and it was optional. However if this is chosen for the file you are unable to choose the menu items "LaTeX -> PDF" through to "Bibtex -> XML". Only by restarting the process and selecting the newly created file itself as a master will these options become available. Actually just played about with it in testing and found that switching between tabs also helps makes these appear without selecting a master. Having created a basic document only changing the name, title, template to default, document class to book and default font family to sans serif selecting "LaTeX -> PDF" fails with no output. Checking the "Bottom Pane" for feedback gives:

LaTeX -> PDF
rubber --inplace --maxerr 1--short --force --warn all --pdf "$filename"
]))
[Errno 2] no such file or directory 'aaaaaaaaaaaa.pdf'
gnome-open "$shortname.pdf"

Where the first 4 lines had warning icons and line 3 had a "File" of 1, I can only presume this is line 1 or an error code as clicking on this takes me to an non-existent file ~/1 resulting on another error message. Line 4 had a "File" outout of OSError resulting in a similar problem if clicked. Line 5 looked to have no errors but nothing opened obviously.

There are also a whole slew of warnings and errors when run from the terminal:

$ gedit
/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py:232: GtkWarning: IA__gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
  menu.add(gtk_action.create_menu_item())
2011-08-02 14:29:52,074 WARNING GeditWindowDecorator - There is already a decorator for tab <gedit.Tab object at 0x2669aa0 (GeditTab at 0x261e700)>
/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/util.py:175: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.__tree = glade.XML(self.filename)
find: ‘/home/mikey/texmf’: No such file or directory
find: ‘/usr/share/texmf/tex/latex/base/’: No such file or directory
find: ‘/home/mikey/texmf/tex/latex/base/’: No such file or directory
find: ‘/usr/share/texmf/tex/generic/babel/’: No such file or directory
find: ‘/home/mikey/texmf/tex/generic/babel/’: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 735, in _on_load
    self._adjust_editor()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 794, in _adjust_editor
    editor_class.__init__(self._editor, self, file)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 428, in __init__
    self.init(file, self._window_context)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 111, in init
    self.__master_file ## call master_file property to have it initialized.
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py", line 1365, in fake_function
    return fake_function.__check_result(func, result)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py", line 1488, in __check_return
    raise TypeCheckError("Return value: ", return_vals, e)
GeditLaTeXPlugin.src.typecheck.TypeCheckError: Return value: for None, expected <class 'GeditLaTeXPlugin.src.base.File'>, got <type 'NoneType'>
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 735, in _on_load
    self._adjust_editor()
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 794, in _adjust_editor
    editor_class.__init__(self._editor, self, file)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/__init__.py", line 428, in __init__
    self.init(file, self._window_context)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 111, in init
    self.__master_file ## call master_file property to have it initialized.
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py", line 1365, in fake_function
    return fake_function.__check_result(func, result)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/typecheck/__init__.py", line 1488, in __check_return
    raise TypeCheckError("Return value: ", return_vals, e)
GeditLaTeXPlugin.src.typecheck.TypeCheckError: Return value: for None, expected <class 'GeditLaTeXPlugin.src.base.File'>, got <type 'NoneType'>
Traceback (most recent call last):
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py", line 221, in <lambda>
    self._action_handlers[gtk_action] = gtk_action.connect("activate", lambda gtk_action, action: action.activate(self._window_context), action)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/tools/__init__.py", line 132, in activate
    self._runner.run(context.active_editor.file, self._tool, tool_view)
  File "/usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/latex/editor.py", line 556, in file
    if self._document_is_master:
AttributeError: 'LaTeXEditor' object has no attribute '_document_is_master'

Sorry I couldn't disentangle this better but as a new user this was my experience of the plugin.

Revision history for this message
Julius Fries (johann-jaeckel) wrote :

Same problem here. Gedit 2.30.4 with LaTex Plugin was working fine until at some point in the afternoon (8/2/2011) it stopped compiling. Same Error message [Errno2] as in the bug description above.

Changed in gedit-latex-plugin (Ubuntu):
status: New → Confirmed
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.