incorrect body content shown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
leo-editor |
Fix Released
|
Critical
|
Edward K. Ream |
Bug Description
I don't know if this is related to https:/
bzr revno = 5254, Ubuntu 11.10, Python 2.7.2
Leo 4.10 final, build 5254, 2012-04-14 13:59:11
Python 2.7.2, qt version 4.7.3
It's basically http://
Here's what I just did. In the shell, `history >log` creating a numbered history of recent shell commands. The numbers are sequential incrementing by one each line.
I then loaded the file 'log' into Leo using my command line leoserver script, which I'm sure is completely innocent - it's always worked fine before. Here it is, anyway:
#!/
import sys
sys.
from leo.external import lproto
import os
addr = open(os.
pc = lproto.
pc.send("""
import os
fn = %s
c = g.app.commander
h = "@edit "+fn
n = g.findNodeAnywh
if not n:
n = c.rootPosition(
n.h = h
if os.path.isfile(fn):
n.b = file(fn).read()
c.selectPos
c.redraw()
c.bringToFr
""" % repr(os.
Then I switch to the Leo window, and the attached before.jpg is what I see, the file without all the lines showing (numbers not uniformly increasing by one), which makes no sense. I click away from and back to the node, and I see the attached after.jpg, the expected content.
I don't think the convuluted way I reached this point is to blame, I've been seeing this frequently lately, but because it dissappears when moving off the node, it's hard to repeat. The above did work for me twice in a row.
Also I'm seeing F3 find-next scroll the body pane but show no highlighted hit and no visible target text, I think tha's the same bug, also goes away after switching nodes. Hard to reproduce though.
Changed in leo-editor: | |
status: | New → Fix Released |
importance: | Undecided → Critical |
Changed in leo-editor: | |
status: | Fix Released → Confirmed |
milestone: | none → 4.11-b1 |
This continues to show up with
Leo 4.10 final, build 5258, 2012-04-16 08:56:47
Python 2.7.2, qt version 4.7.3
linux2
Attached are view0/1/2.jpg
0 and 1 are in a @shadow node even after refresh from disk, and exiting and restarting Leo, it won't display properly. 2 is correct, in an edit node.