My main Leo file has many ReST files in @auto nodes

It won't open using the current(1824) bzr.

console shows lots of::

error: @auto did not import @auto glossary.rst perfectly
first mismatched line: 1
u'########\n'
input...
  0
  1 ########
  2 Glossary
  3 ########

ending with the traceback::

Traceback (most recent call last):
  File "/home/ktenney/src/leo-editor/launchLeo.py", line 8, in <module>
    leo.core.runLeo.run()
  File "/home/ktenney/src/leo-editor/leo/core/runLeo.py", line 110, in run
    c,frame = createFrame(fileName,relativeFileName,script)
  File "/home/ktenney/src/leo-editor/leo/core/runLeo.py", line 158, in
createFrame
    ok, frame = g.openWithFileName(relativeFileName or fileName,None)
  File "/home/ktenney/src/leo-editor/leo/core/leoGlobals.py", line
2265, in openWithFileName
    readAtFileNodesFlag=readAtFileNodesFlag) # closes file.
  File "/home/ktenney/src/leo-editor/leo/core/leoFileCommands.py",
line 860, in open
    silent=silent)
  File "/home/ktenney/src/leo-editor/leo/core/leoFileCommands.py",
line 767, in getLeoFile
    c.atFileCommands.readAll(c.rootVnode(),partialFlag=False)
  File "/home/ktenney/src/leo-editor/leo/core/leoAtFile.py", line 544,
in readAll
    at.readOneAtAutoNode (fileName,p)
  File "/home/ktenney/src/leo-editor/leo/core/leoAtFile.py", line 589,
in readOneAtAutoNode
    ic.createOutline(fileName,parent=p.copy(),atAuto=True)
  File "/home/ktenney/src/leo-editor/leo/core/leoImport.py", line 849,
in createOutline
    func(s,p,atAuto=atAuto)
  File "/home/ktenney/src/leo-editor/leo/core/leoImport.py", line
1652, in scanRstText
    scanner.run(s,parent)
  File "/home/ktenney/src/leo-editor/leo/core/leoImport.py", line 3028, in run
    ok = self.errors == 0 and self.check(s,parent)
  File "/home/ktenney/src/leo-editor/leo/core/leoImport.py", line 1808, in check
    return self.checkTrialWrite()
  File "/home/ktenney/src/leo-editor/leo/core/leoImport.py", line
1864, in checkTrialWrite
    self.reportMismatch(lines1,lines2,bad_i)
  File "/home/ktenney/src/leo-editor/leo/core/leoImport.py", line
1985, in reportMismatch
    kind,self.root.h,bad_i,repr(lines2[bad_i-1])))
IndexError: list index out of range


On Wed, May 13, 2009 at 12:29 PM, Edward K. Ream <[email protected]> wrote:
>
>
> On Wed, May 13, 2009 at 11:35 AM, Ville M. Vainio <[email protected]>
> wrote:
>>
>> Well, it *is* very confusing now, because it has @others
>
> Oh.  I'll remove @others for @auto-rst.
>
> Rev 1820 of the trunk now supports @ @rst-options in the root @auto node.
> This does not affect import comparisons, because the root is still not
> written--
> it is just scanned for options.
>
> I updated the warning message to reflect the fact that @ @rst-options are
> valid in the root node.
>
> As noted in the log, @auto fails for the leo_toc.html.txt in leoDocs.leo,
> and I think
> this is an example of being too clever.
>
> So I do plan to use rST importing only for @auto-rst nodes.  This seems
> clearest and best.
>
> We are getting close, imo.
>
> Edward
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to