Verified that this has the same problem for me. What I did: open leo file. @auto files auto loaded with no problem. do any edits. save. refresh the edited @auto node, got importation error instead. Leo claimed that the first mismatch is at the end of the original file. In log pane the original file looks correct but the imported file looks mis-constructed:
first mismatched line: 1051 (original) = 1051 (imported) Original file... ... lines from last def 1051 u'if __name__ == "__main__":\n' 1052 ... Imported file... 1050 same as above 1051 now wraps to the first line of file instead, missing the text after @others Structurally it looks like what happened is that there is some confusion about the text after @others in @auto node, at least in the reconstructed version. The refresh somehow missed that text and wrapped around to the beginning of the file (the first sub node of @auto). On Thursday, October 18, 2012 12:24:50 PM UTC-7, Ville M. Vainio wrote: > > For question 2, rclick on the @auto node and choose 'refresh from disk'. > > Q1 has been discussed previously, without conclusion to implement the > feature (so far) > On Oct 18, 2012 9:17 PM, "F.S." <[email protected] <javascript:>> wrote: > >> I really like @auto. I can just define functions/classes without worrying >> about creating nodes for each. But it would be nice to be able to manually >> annotate as well. For example to broadly group nodes together or even to >> clone nodes. Is there any way to combine the best of both worlds? Ideally >> users can create meta information about a file and store it in .leo >> outline. And Leo can take advantage of such meta information when parsing >> in the @auto nodes and add the user annotation on top of the structural >> information inherent in the file. >> >> Also I don't seem to be able to re-read @auto nodes from files after I >> make updates. It would be nice to be able to see the new functions/classes >> in the outline pane without having to close the outline file and restart. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "leo-editor" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/leo-editor/-/kw-VFioDREgJ. >> To post to this group, send email to [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/leo-editor?hl=en. >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To view this discussion on the web visit https://groups.google.com/d/msg/leo-editor/-/2AOEdXFtS3kJ. 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.
