Editor: Synatax-Highlighter error

Bug #1318139 reported by samy on 2014-05-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Calibre: 1.3.6, Editor
System: Linux, 64bit, Fedora 20

I don't know how to reproduce it. I just opened a ebook with the editor and got this error:

calibre 1.36 isfrozen: True is64bit: True
Linux-3.13.3-201.fc20.x86_64-x86_64-with-fedora-20-Heisenbug Linux ('64bit', 'ELF')
('Linux', '3.13.3-201.fc20.x86_64', '#1 SMP Fri Feb 14 19:08:32 UTC 2014')
Python 2.7.5
Linux: ('Fedora', '20', 'Heisenbug')
Traceback (most recent call last):
  File "site-packages/calibre/gui2/tweak_book/boss.py", line 69, in ans
  File "site-packages/calibre/gui2/tweak_book/boss.py", line 938, in check_item_activated
  File "site-packages/calibre/gui2/tweak_book/boss.py", line 1087, in edit_file_requested
  File "site-packages/calibre/gui2/tweak_book/boss.py", line 1068, in edit_file
  File "site-packages/calibre/gui2/tweak_book/boss.py", line 1048, in init_editor
  File "site-packages/calibre/gui2/tweak_book/editor/widget.py", line 122, in fset
  File "site-packages/calibre/gui2/tweak_book/editor/text.py", line 213, in load_text
  File "site-packages/calibre/gui2/tweak_book/editor/syntax/base.py", line 88, in set_document
  File "site-packages/calibre/gui2/tweak_book/editor/syntax/base.py", line 96, in rehighlight
  File "site-packages/calibre/gui2/tweak_book/editor/syntax/base.py", line 135, in reformat_blocks
AttributeError: 'SyntaxHighlighter' object has no attribute 'state_map'

samy (samuel2) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers