Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-19 Thread Thomas Passin
One thing that made it a bit easier is that my work on VR3 took place 
outside of my Github clone.  My development tree is in Mercurial on my own 
computer.  I have a script hot-keyed to F5 that copies the files to the 
Github clone, and the only work I was doing was on VR3 - no other branches 
were getting changed.  So I was able to just delete the clone without 
worrying if I  was going to lose some strategic change.

On Thursday, March 19, 2020 at 9:12:02 AM UTC-4, Matt Wilkie wrote:
>
> Thank you Matt.  I followed your suggested steps, and they worked.  I now 
>> have an all-new fork.  One of the missing things for me (before you wrote) 
>> was how to delete my entire GitHub fork.  I don't know how long that would 
>> have taken me to find if you had not pointed me to Settings.
>>
>
> Oh good. I'm glad I was able to leverage some of my scar tissue to help! 
> I'm really not that knowledgeable about git, but in this case there was 
> enough. :)
>
> -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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/cc19d9b5-a198-451f-82b9-30dee1e1060c%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-19 Thread Matt Wilkie

>
> Thank you Matt.  I followed your suggested steps, and they worked.  I now 
> have an all-new fork.  One of the missing things for me (before you wrote) 
> was how to delete my entire GitHub fork.  I don't know how long that would 
> have taken me to find if you had not pointed me to Settings.
>

Oh good. I'm glad I was able to leverage some of my scar tissue to help! 
I'm really not that knowledgeable about git, but in this case there was 
enough. :)

-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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0a60403e-528e-415e-b857-c53d3bbb2228%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-17 Thread Edward K. Ream
On Tue, Mar 17, 2020 at 12:32 PM Thomas Passin  wrote:

> Thank you Matt.  I followed your suggested steps, and they worked.
>

Excellent.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS22cfWD4ZGNPJu%3DoYmGbyKYEAd35KussHSxVCbuNCCnSw%40mail.gmail.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-17 Thread Thomas Passin
Thank you Matt.  I followed your suggested steps, and they worked.  I now 
have an all-new fork.  One of the missing things for me (before you wrote) 
was how to delete my entire GitHub fork.  I don't know how long that would 
have taken me to find if you had not pointed me to Settings.

On Monday, March 16, 2020 at 4:42:32 PM UTC-4, Matt Wilkie wrote:
>
> The problem I'm having is that my repo in my account on Github somehow got 
>> messed up, and I haven't been able to nuke it, repair it, or get it to 
>> fully update itself from the Leo upstream.
>
>
> Thomas I think maybe what happened is that at some point in history a new 
> local branch named "devel" was created based on "master" instead of 
> checking out the upstream "devel". 
>
> To clean up the situation I might try: 
>
>1. Ensure local repo is up to date with 
>https://github.com/tbpassin/leo-editor
>2. Archive local repo into a zip (or whatever) and then delete
>3. On GitHub delete https://github.com/tbpassin/leo-editor under 
>[settings]. You can import from your local repo later if you decide it has 
>something important.
>4. Create a new fork from https://github.com/leo-editor/leo-editor and 
>clone to your local machine.
>5. Checkout Devel branch
>6. Create your branch from Devel and bring in your work.
>
> The purpose of archiving and deleting in #2 instead of moving or renaming 
> is to ensure Github Desktop can't possiblly seeing anything but the new 
> fork.
>
> -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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/7b16751d-4f84-43a5-9ca6-eb9659623a86%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Mon, Mar 16, 2020 at 3:42 PM Matt Wilkie  wrote:

> The problem I'm having is that my repo in my account on Github somehow got
>> messed up, and I haven't been able to nuke it, repair it, or get it to
>> fully update itself from the Leo upstream.
>
>
Thanks, Matt, for these suggestions. Hope they work.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1-q6UbzDoPjm-fNi-8AQGoQVzUowhN%2Bw2G%3DyCSANyGdA%40mail.gmail.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Mon, Mar 16, 2020 at 11:36 AM Thomas Passin  wrote:

>
> So I should change leo_vr3.css to vr3_rst.css?
>>
>
> Yes, please do that.
>

Done in 6.2 and devel branches.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0EJDHZTRpFbxRKergGQfb-9CSRo2NgMFfxbUoBzeFijw%40mail.gmail.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Matt Wilkie

>
> The problem I'm having is that my repo in my account on Github somehow got 
> messed up, and I haven't been able to nuke it, repair it, or get it to 
> fully update itself from the Leo upstream.


Thomas I think maybe what happened is that at some point in history a new 
local branch named "devel" was created based on "master" instead of 
checking out the upstream "devel". 

To clean up the situation I might try: 

   1. Ensure local repo is up to date with 
   https://github.com/tbpassin/leo-editor
   2. Archive local repo into a zip (or whatever) and then delete
   3. On GitHub delete https://github.com/tbpassin/leo-editor under 
   [settings]. You can import from your local repo later if you decide it has 
   something important.
   4. Create a new fork from https://github.com/leo-editor/leo-editor and 
   clone to your local machine.
   5. Checkout Devel branch
   6. Create your branch from Devel and bring in your work.
   
The purpose of archiving and deleting in #2 instead of moving or renaming 
is to ensure Github Desktop can't possiblly seeing anything but the new 
fork.

-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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/76068694-10ad-4c69-901c-dee66bdb8b87%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Thomas Passin
On Monday, March 16, 2020 at 12:06:39 PM UTC-4, Edward K. Ream wrote:
>
> On Mon, Mar 16, 2020 at 10:57 AM Thomas Passin  > wrote:
>
> > The correct file name is "vr3_rst.css".
>
> So I should change leo_vr3.css to vr3_rst.css?
>

Yes, please do that. I just looked at the viewrendered.py file in the Leo 
repo, and I agree that it's got the desired change. So just the file rename.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/bb2711f7-2757-4be9-8a3f-6602d5500d8d%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Mon, Mar 16, 2020 at 10:57 AM Thomas Passin  wrote:

> The correct file name is "vr3_rst.css".

So I should change leo_vr3.css to vr3_rst.css?

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0OGDRFZdkW7NKnr-K2HH9P_197%2BzG%3DmY9ATXwWHcA6OA%40mail.gmail.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Thomas Passin


On Monday, March 16, 2020 at 10:56:51 AM UTC-4, Edward K. Ream wrote:
>
>
> Your copy of qt_gui.py was, once again, not formatted properly. Neither 
> file changed the name of the stylesheet.
>

I probably should not have included the qt_gui.py at all.  I just wanted to 
make sure it didn't get deleted.  I think I had not made sure that my copy 
was updated to yours, so a big blush here.

The files did not change the name of the stylesheet, but the actual RsT 
stylesheet file in the plugins/viewrendered directory was corrected.  It it 
is worng, the plugin will still work but the results will look uglier than 
need be.  The correct file name is "vr3_rst.css".
 

> So I've only changed the call to g.toUnicode. The change is in both devel 
> and 6.2.
>

Great, that was the main thing. 

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/72afeabc-8980-4087-8652-ed965f9ee041%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Mon, Mar 16, 2020 at 8:55 AM Thomas Passin wrote:

I found two other issues, both fixed in the attached zip file:
>

Your copy of VR3.py corrected the call to g.toUnicode(s).

Your copy of qt_gui.py was, once again, not formatted properly. Neither
file changed the name of the stylesheet.

So I've only changed the call to g.toUnicode. The change is in both devel
and 6.2.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2Ky6KGB4QQOX6JJXBHbRswfze8_ePVB6%2B-Ck5wL4BzdA%40mail.gmail.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Thomas Passin


On Monday, March 16, 2020 at 8:32:24 AM UTC-4, Edward K. Ream wrote:

>
> Alright. I've fixed the problem in vr3. Hope you recover from your 
> problems :-)
>

Thanks.  In addition, I found two other issues, both fixed in the attached 
zip file:

1) The name of the RsT stylesheet was obsolete( i.e., wrong);
2) One line you added to the MD conversion was wrong:

h = g.toUnicode(s)  # EKR.

Should have been:

h = g.toUnicode(h)  # EKR.

This caused display of the raw text instead of the MD-rendered text.

With these fixes, I think we're good to go.

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4d39189f-067b-4747-8163-6745e6f257fc%40googlegroups.com.
<>


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Mon, Mar 16, 2020 at 7:15 AM Thomas Passin  wrote:

>
>
> On Monday, March 16, 2020 at 8:08:57 AM UTC-4, Thomas Passin wrote:
>


> I started to use --init-docks when my body and tab panes got so messed up
> they were unusable and I couldn't get them into a sensible configuration
> again.
>

Just delete the entire ~/.leo/db folder.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3Z9--F8ryOe8x7H8d0DS%2BBD7cJDb1%3DdgPOOZP%2BFb2FoQ%40mail.gmail.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Mon, Mar 16, 2020 at 7:13 AM Thomas Passin  wrote:

>
> On Monday, March 16, 2020 at 6:58:21 AM UTC-4, Edward K. Ream wrote:
>
>>
>> Thomas, I'm not sure why this was a mysterious problem for you. I
>> continue to suspect something is not right on your end.
>>
>> Please verify, using gitk, that you see the changes I made in both the
>> 6.2 and devel branches.
>>
>
> The problem I'm having is that my repo in my account on Github somehow got
> messed up, and I haven't been able to nuke it, repair it, or get it to
> fully update itself from the Leo upstream.
>

Alright. I've fixed the problem in vr3. Hope you recover from your problems
:-)

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS218pxput4gTUYWYPqyjzdA5fc61DoGaQqtD1aAHtngHw%40mail.gmail.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Thomas Passin


On Monday, March 16, 2020 at 8:08:57 AM UTC-4, Thomas Passin wrote:
>
> There is one specific thing that is failing:
>
> g.app.dock is returning False.  When that happens, the rest of 
> create_pane() gets skipped (and of course my plugin won't work).  It is 
> supposed to be returning True when docks are in use.
>
> This happens when I start Leo with --init-docks.  When I start with 
> --use-docks, then g.app.dock returns True, and the plugin works.
>

I started to use --init-docks when my body and tab panes got so messed up 
they were unusable and I couldn't get them into a sensible configuration 
again. 

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9eaf4436-be55-44bd-86cf-b23ba0a7a260%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Thomas Passin

On Monday, March 16, 2020 at 6:58:21 AM UTC-4, Edward K. Ream wrote:

>
> Thomas, I'm not sure why this was a mysterious problem for you. I continue 
> to suspect something is not right on your end.
>
> Please verify, using gitk, that you see the changes I made in both the 6.2 
> and devel branches.
>

The problem I'm having is that my repo in my account on Github somehow got 
messed up, and I haven't been able to nuke it, repair it, or get it to 
fully update itself from the Leo upstream.  At the moment, I have cloned 
Leo again to my computer, and that is the version I'm using to debug the 
plugin.  Without my Github repo working, and without commit privileges to 
the Leo repo, I don't know how I'm going to do a pull request.  And 
obviously I shouldn't have commit privileges to the Leo repo at this time!

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/c323f07a-48a6-485a-a2b9-5187d463fa26%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Thomas Passin
There is one specific thing that is failing:

g.app.dock is returning False.  When that happens, the rest of 
create_pane() gets skipped (and of course my plugin won't work).  It is 
supposed to be returning True when docks are in use.

This happens when I start Leo with --init-docks.  When I start with 
--use-docks, then g.app.dock returns True, and the plugin works. There is 
another issue that shows up then - it's not finding its default stylesheet 
- but that's minor.

Leo's startup info:

Leo 6.2-b1, 6.2 branch, build a2a4828981
2020-03-15 10:22:24 -0500
Python 3.8.0, PyQt version 5.14.0
Windows 10 AMD64 (build 10.0.18362) SP0

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/18faff74-5629-4ce8-a3eb-0fdd5f9d7e11%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Monday, March 16, 2020 at 5:39:23 AM UTC-5, Edward K. Ream wrote:

> I'll look into this.

Fixed in both the 6.2 and devel branches.

Thomas, I'm not sure why this was a mysterious problem for you. I continue 
to suspect something is not right on your end.

Please verify, using gitk, that you see the changes I made in both the 6.2 
and devel branches.

Edward

>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/7243ec51-616c-4572-b5f7-c75b571c2202%40googlegroups.com.


Re: Viewrendered3 Fails to Start With Leo 6.2-b1 But Works With Leo 6.1-final

2020-03-16 Thread Edward K. Ream
On Sun, Mar 15, 2020 at 10:53 PM Thomas Passin  wrote:

Running Leo 6.2-b1, VR3 fails to create its toolbar (which causes VR3 to
> fail), but the very same file, viewrendered3.py, works as expected running
> Leo 6.1-final.
>

I'll look into this. VR3 must either work with the 6.2 code base or be
delayed to 6.3.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1WBMb55nNkmegnKimAU3%3D2F6yDHvHigPJMhM_i%3Dp2rcg%40mail.gmail.com.