IndexError on startup after external changes to @shadow files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
leo-editor |
Fix Released
|
Medium
|
Edward K. Ream |
Bug Description
I raised this issue earlier today on the mailing list as well.
I created and edited a number of @shadow entries in my .leo files. After closing Leo, I committed some changes into my Git repository and rolled back some whitespace-only changes. The next time I tried to open Leo with the .leo file I got this:
$ leo --ipython testproject.leo
*** isPython3: False
Leo 4.8 devel, build 3005, February 26, 2010
Python 2.6.5, qt version 4.6.2
linux2
reading settings in /home/ak/
using menus from: leoSettings.leo
reading settings in /home/ak/
reading settings in /home/ak/
reading /home/ak/
@enabled-plugins found in myLeoSettings.leo
No word lists can be found for the language "fi_FI".
aspell checker not enabled
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/home/
leo.
File "/home/
ok = doPostPluginsIn
File "/home/
c,frame = createFrame(
File "/home/
ok, frame = g.openWithFileN
File "/home/
ok = g.handleOpenHoo
File "/home/
readAtFileN
File "/home/
silent=silent)
File "/home/
c.atFileCom
File "/home/
at.
File "/home/
at.
File "/home/
fileName = at.openFileForR
File "/home/
x.updatePub
File "/home/
written = x.propagate_
File "/home/
old_
File "/home/
new_line = new_public_
File "/home/
result = self.lines[self.i]
IndexError: list index out of range
I'm using Leo rev 3064 installed with setuptools' "develop" command,
Python 2.6.5 on Ubuntu 10.04 (pre-release).
I've reduced the *.py and .leo_shadow/x*.py files to a minimum and am attaching them as a test case.
Changed in leo-editor: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Edward K. Ream (edreamleo) |
Changed in leo-editor: | |
importance: | High → Critical |
On Tue, Apr 20, 2010 at 8:43 AM, Antti Kaihola
<email address hidden> wrote:
> Public bug reported:
>
> I raised this issue earlier today on the mailing list as well.
>
> I created and edited a number of @shadow entries in my .leo files. After
> closing Leo, I committed some changes into my Git repository and rolled
> back some whitespace-only changes. The next time I tried to open Leo
> with the .leo file I got this:
Thanks for this report. I'll look into immediately.
Edward