Colorizer errors

26 views
Skip to first unread message

Largo84

unread,
Feb 3, 2017, 10:37:22 AM2/3/17
to leo-editor
Leo 5.4, build 20170203053942, Fri Feb  3 05:39:42 CST 2017
Git repo info: branch = master, commit = 7bbcda816253
Python 3.4.3, PyQt version 5.4.1
Windows 8 AMD64 (build 6.2.9200)

These errors show up in the terminal window, not in the Leo Log Window. I don't see any problems working with files or the actual colorizing (at least not yet):

Traceback (most recent call last):
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 2055, in highlightBlock
    self.colorizer.recolor(s)
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 1886, in recolor
    self.mainLoop(n, s)
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 1837, in mainLoop
    n = f(self, s, i)
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 1004, in match_doc_part
    self.setRestart(self.restartDocPart)
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 1737, in setRestart
    n = self.computeState(f, keys)
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 1682, in computeState
    result = [self.languageTag(self.language)]
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 1923, in languageTag
    name = name.replace(pattern, s)
AttributeError: 'NoneType' object has no attribute 'replace'

Edward K. Ream

unread,
Feb 4, 2017, 8:31:56 AM2/4/17
to leo-editor
On Fri, Feb 3, 2017 at 9:37 AM, Largo84 <Lar...@gmail.com> wrote:
 
  File "D:\Synced\github repos\leo\leo\core\leoColorizer.py", line 1923, in languageTag
    name = name.replace(pattern, s)
AttributeError: 'NoneType' object has no attribute 'replace'

​Thanks for this report. Fixed in master at c049bf0c71. Also fixed in the color branch.

Edward
Reply all
Reply to author
Forward
0 new messages