If there's not a bug, I don't understand what is expected of @nosent in terms of the initial loading of a file via 'Refresh from disk'
Or I'm nuts. I repeated the initial sequence of generating a file, creating a @nosent <file> node, rclick 'Refresh from disk', log says it's reading but nothing appears in the body. This is on a fresh OS install, fresh Leo trunk pull, no settings, history, customization, plugins etc. Ubuntu 14.04 If it works for someone else, I'll know it's my karma. Thanks, Kent On Mon, Feb 9, 2015 at 9:26 AM, Kent Tenney <[email protected]> wrote: > Matt, > > I think this is a different error, due to code age. > You see 'can not refresh from disk' > I'm seeing > 'reading: @nosent nosent.txt' > > refresh from disk for @nosent is brand new > > Thanks, > Kent > > On Sun, Feb 8, 2015 at 6:32 PM, Matt Wilkie <[email protected]> wrote: >> Doesn't work for me either. With attached .leo file: >> >> - select "write" node, (contains your write file code), press Ctrl-B >> - look at file "nosent.txt" on disk, it contains "Line 1, Line 2" as >> expected. >> - select @nosent node, r-click >> Refresh from disk: error "can not refresh >> from disk". >> - body pane of @nosent node remains empty >> >> Log output: >> >> Leo Log Window >> Leo 5.0-final, build 20141124101406, Mon Nov 24 10:14:06 CST 2014 >> Not running from a git repo >> Python 2.7.4, PyQt version 4.7.1 >> Windows 7 AMD64 (build 6.1.7601) SP1 >> reading: D:\temp\test.leo >> wrote nosent.txt >> can not refresh from disk >> @nosent nosent.txt >> >> Leo file: >> >> <?xml version="1.0" encoding="utf-8"?> >> <!-- Created by Leo: http://leoeditor.com/leo_toc.html --> >> <?xml-stylesheet ekr_test?> >> <leo_file xmlns:leo="http://leoeditor.com/namespaces/leo-python-editor/1.1" >>> >> <leo_header file_format="2"/> >> <vnodes> >> <v t="maphew.20150208162717.3" a="E"><vh>Test Nosent</vh> >> <v t="maphew.20150208161841.4"><vh>write to nosent.txt</vh></v> >> <v t="maphew.20150208161841.3"><vh>@nosent nosent.txt</vh></v> >> </v> >> </vnodes> >> <tnodes> >> <t tx="maphew.20150208161841.3"></t> >> <t tx="maphew.20150208161841.4">@language python >> with file('nosent.txt', 'w') as f: >> f.write('Line1\nLine2') >> g.es('wrote nosent.txt')</t> >> <t tx="maphew.20150208162717.3"></t> >> </tnodes> >> </leo_file> >> >> Matt >> >> -- >> You received this message because you are subscribed to the Google Groups >> "leo-editor" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/leo-editor. >> For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
