Re: Strange problem.

2018-02-12 Thread Edward K. Ream
On Mon, Feb 12, 2018 at 12:16 PM, Chris George  wrote:

> Reading that in the docs was what led me to try the form
> @command-x in the first place.
>

​ #718: @command-x = binding crashes Leo on startup
 ​
 will be fixed for 5.7 final.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Strange problem.

2018-02-12 Thread Chris George
Reading that in the docs was what led me to try the form @command-x 
in the first place.

Chris

On Monday, February 12, 2018 at 8:50:55 AM UTC-8, Edward K. Ream wrote:
>
>
>
> On Mon, Feb 12, 2018 at 9:22 AM, Chris George  > wrote:
>
>> In the @shortcuts node in myLeoSettings.leo:
>>
>> @command- = Ctrl-e 
>>
>> Turns out it still works if you skip the @command- part.
>>
>
> ​That's because @command nodes create several commands, with and without 
> the '@command-' prefix.​
>  
> ​So @command- shows you all the commands created by @command 
> nodes.
>
> 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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Strange problem.

2018-02-12 Thread Edward K. Ream
On Mon, Feb 12, 2018 at 9:22 AM, Chris George  wrote:

> In the @shortcuts node in myLeoSettings.leo:
>
> @command- = Ctrl-e
>
> Turns out it still works if you skip the @command- part.
>

​That's because @command nodes create several commands, with and without
the '@command-' prefix.​

​So @command- shows you all the commands created by @command
nodes.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Strange problem.

2018-02-12 Thread Chris George
In the @shortcuts node in myLeoSettings.leo:

@command- = Ctrl-e

Turns out it still works if you skip the @command- part.

Chris

On Sun, Feb 11, 2018 at 10:38 PM, Edward K. Ream 
wrote:

> On Sun, Feb 11, 2018 at 6:00 PM, Chris George 
> wrote:
>
> Apparently you can't put a @ in a command for a key-binding.
>>
>
> ​Not sure what you mean.  Can you give an example?  Perhaps Leo should
> guard against this.
>
> 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 post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Strange problem.

2018-02-11 Thread Edward K. Ream
On Sun, Feb 11, 2018 at 6:00 PM, Chris George  wrote:

Apparently you can't put a @ in a command for a key-binding.
>

​Not sure what you mean.  Can you give an example?  Perhaps Leo should
guard against this.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Strange problem.

2018-02-11 Thread Chris George
Tried a fresh install of Leo. The only code in common was 
myLeoSettings.leo. Changed back the last setting I used.

All is well.

Apparently you can't put a @ in a command for a key-binding.

Chris



On Sunday, February 11, 2018 at 3:41:41 PM UTC-8, Chris George wrote:
>
> I run Leo from a shell script to start it every time. The script executes 
> git pull at every start-up. I start with restore session and save session.
>
> Today in the midst of working, this started happening on every reboot. I 
> shut down and restarted Leo with just the default workbook.leo loaded and 
> kept getting the following message.
>
>
> Leo Log Window
> Leo 5.7b1, build 20180211171008, Sun Feb 11 17:10:08 CST 2018
> Git repo info: branch = master, commit = 556f1de79c86
> Python 3.6.3, PyQt version 5.6.2
> linux
> isPython3: True
> caching enabled
> setting leoID from os.getenv('USER'): 'chris'
> load dir: /home/chris/leo-editor/leo/core
> global config dir: /home/chris/leo-editor/leo/config
> home dir: /home/chris
> reading settings in /home/chris/leo-editor/leo/config/leoSettings.leo
> reading settings in /home/chris/.leo/myLeoSettings.leo
> Traceback (most recent call last):
>
> File "/home/chris/leo-editor/leo/core/leoConfig.py", line 2004, in 
> visitNode
> return f(p, kind, name, val)
>
> File "/home/chris/leo-editor/leo/core/leoConfig.py", line 696, in 
> doShortcuts
> assert g.isShortcutInfo(si), si
>
> AssertionError: None
>
> Using default leo file name:
> /home/chris/.leo/workbook.leo
> auto save 300 sec. after changes
> reading settings in /home/chris/leo-editor/leo/doc/CheatSheet.leo
>
>
> Any ideas?
>
> Chris
>

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: 'Strange' problem with the rst3 command

2013-10-15 Thread Viktor Ransmayr
Hello Edward,

Am Dienstag, 15. Oktober 2013 11:01:37 UTC+2 schrieb Edward K. Ream:
>
> On Tuesday, October 15, 2013 2:57:45 AM UTC-5, Edward K. Ream wrote:
>>
>> On Mon, Oct 14, 2013 at 3:09 PM, Viktor Ransmayr 
>> 
>> > wrote:
>>
>> >> [Terry] it sounds as if the rst3 command expects the view rendered 
>> pane to exist, and fails if it doesn't.
>>
>> > 
>> You were right. - As soon as I added the plugin 'viewrendered.py' to 
>> 'myLeoSettings.leo' the command 'rst3' worked without problems ...
>>
>> I think this should be fixed somehow.  I'll look into it.
>>
>
> Mystery solved.  There is no actual dependency in leoRst.py on the 
> viewrendered plugin, but there was a missing import in leoRst that happened 
> to be viewrendered.py(!)
>
> The fix is on the trunk at rev 6145.  All unit tests pass, and the rst3 
> command still works ;-)
>

Thanks. - After updating to the latest bzr revision I can use the 'rst3' 
command w/o the plugin 'viewrendered.py' enabled.

With kind regards,

Viktor
 

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 'Strange' problem with the rst3 command

2013-10-15 Thread Edward K. Ream
On Tuesday, October 15, 2013 2:57:45 AM UTC-5, Edward K. Ream wrote:
>
> On Mon, Oct 14, 2013 at 3:09 PM, Viktor Ransmayr <
> viktor.ransm...@gmail.com> wrote:
>
> >> [Terry] it sounds as if the rst3 command expects the view rendered 
> pane to exist, and fails if it doesn't.
>
> > 
> You were right. - As soon as I added the plugin 'viewrendered.py' to 
> 'myLeoSettings.leo' the command 'rst3' worked without problems ...
>
> I think this should be fixed somehow.  I'll look into it.
>

Mystery solved.  There is no actual dependency in leoRst.py on the 
viewrendered plugin, but there was a missing import in leoRst that happened 
to be viewrendered.py(!)

The fix is on the trunk at rev 6145.  All unit tests pass, and the rst3 
command still works ;-)

The old code, in both viewrendered.py and leoRst.py was (modulo the plugin 
name)::

docutils = 
g.importExtension('docutils',pluginName='viewrendered.py',verbose=False)

But in viewrendered, there was *also* this import::

from docutils.core import publish_string

It looks like this additional statement sufficed to define docutils.core in 
leoRst.py(!)

The new code, in both places is::

try:
import docutils
import docutils.core
except ImportError:
docutils = None

Imo, g.importExtension should be deprecated unless the module is expected 
to be in the extensions folder, and I don't see why this applies to 
docutils.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 'Strange' problem with the rst3 command

2013-10-15 Thread Edward K. Ream
On Mon, Oct 14, 2013 at 3:09 PM, Viktor Ransmayr
wrote:

>> [Terry] it sounds as if the rst3 command expects the
view rendered pane to exist, and fails if it doesn't.

> 
You were right. - As soon as I added the plugin 'viewrendered.py' to
'myLeoSettings.leo' the command 'rst3' worked without problems ...

I think this should be fixed somehow.  I'll look into it.

EKR

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 'Strange' problem with the rst3 command

2013-10-14 Thread Viktor Ransmayr
Hello Terry,

Am Montag, 14. Oktober 2013 03:58:22 UTC+2 schrieb Terry:
>
> On Sun, 13 Oct 2013 12:29:38 -0700 (PDT) 
> Viktor Ransmayr > wrote: 
>
> > I did, however the problem is *still* there with *identical* behaviour. 
> - 
> > That is: The rst3 command is *not* working as long as the 'Leo Help 
> System' 
> > (F1) has not been activated. As soon as the 'Leo Help System' pane is 
> open 
> > the rst3 command works in this outline as well. 
>
> Haven't followed the whole thread and don't use the rst3 command, at 
> least not knowingly, I use @auto-rst, don't know if it uses the rst3 
> command internally, but... it sounds as if the rst3 command expects the 
> view rendered pane to exist, and fails if it doesn't.  I would have 
> thought, and remember I don't know what the rst3 command does, that 
> there would be no such dependency. 
>
> Viktor, you could test this theory by opening the view rendered pane 
> (Alt-X vr) instead of using F1, and seeing if that also is sufficient 
> to make the rst3 command work. 
>

You were right. - As soon as I added the plugin 'viewrendered.py' to 
'myLeoSettings.leo' the command 'rst3' worked without problems ...

See attached log:



Leo Log Window
Leo 4.11a3, build 6140, 2013-10-13 21:05:37
Python 3.3.2, qt version 4.8.5
Windows 6, 2, 9200, 2, 
leoID=VR20130923 (in C:\Users\Viktor\.leo)
load dir: C:\Repositories\bzr\leo-editor\leo\core
global config dir: C:\Repositories\bzr\leo-editor\leo\config
home dir: C:\Users\Viktor
reading settings in 
C:\Repositories\bzr\leo-editor\leo\config\leoSettings.leo
docutils loaded
reading settings in C:\Users\Viktor\.leo\myLeoSettings.leo
reading settings in C:\Users\Viktor\Worklogs\WL2013.leo
Abbreviations off
reading: C:\Users\Viktor\Worklogs\WL2013.leo

SilverCity not present so no syntax highlighting
wrote: C:\Users\Viktor\Worklogs\Logs\2013\10\CW42\LE-2013-10-14.html



With kind regards,

Viktor

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 'Strange' problem with the rst3 command

2013-10-13 Thread Terry Brown
On Sun, 13 Oct 2013 12:29:38 -0700 (PDT)
Viktor Ransmayr  wrote:

> I did, however the problem is *still* there with *identical* behaviour. - 
> That is: The rst3 command is *not* working as long as the 'Leo Help System' 
> (F1) has not been activated. As soon as the 'Leo Help System' pane is open 
> the rst3 command works in this outline as well.

Haven't followed the whole thread and don't use the rst3 command, at
least not knowingly, I use @auto-rst, don't know if it uses the rst3
command internally, but... it sounds as if the rst3 command expects the
view rendered pane to exist, and fails if it doesn't.  I would have
thought, and remember I don't know what the rst3 command does, that
there would be no such dependency.

Viktor, you could test this theory by opening the view rendered pane
(Alt-X vr) instead of using F1, and seeing if that also is sufficient
to make the rst3 command work.

(checks docs.: rst3 "Write all @rst nodes". so the dependency seems odd,
maybe I'm wrong, but vr should clarify)

Cheers -Terry

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 'Strange' problem with the rst3 command

2013-10-13 Thread Viktor Ransmayr
Hello Edward,

Am Samstag, 12. Oktober 2013 13:34:21 UTC+2 schrieb Edward K. Ream:
>
>
> On Thu, Oct 10, 2013 at 7:59 AM, Viktor Ransmayr 
> 
> > wrote:
>
>> Hello everyone,
>>
>> I encountered a strange problem, when creating the HTML file from a rST 
>> file via the rst3 command.
>>
>> Here is the log:
>>
>
> [ snip]
>  
>
>>
>> ### VR: First invocation of 'rst3'
>>
>> stylesheet not found
>> ...
>> Traceback (most recent call last):
>>   File "C:\Repositories\bzr\leo-editor\leo\core\leoRst.py", line 1899, in 
>> writeToDocutils
>> result = docutils.core.publish_string(source=s,
>> AttributeError: 'module' object has no attribute 'core'
>> done
>>
>> ### VR: Second invocation of 'rst3'
>>
>> stylesheet not found
>>
>
> ...
>
> 
> > 
> The only thing that I did between the *first* and *second* invocation of 
> the 'rst3' command was that I hit the F1 key to show the Leo help system ...
>
> > 
> Any ideas what is going on here and how to resolve it?
>
> No, I don't docutils has a few glitches.  Recently, it crashed when I 
> mistakenly removed the toc file referenced in conf.py.
>
> One idea: remove the stylesheet not found message if you can.
>

I did, however the problem is *still* there with *identical* behaviour. - 
That is: The rst3 command is *not* working as long as the 'Leo Help System' 
(F1) has not been activated. As soon as the 'Leo Help System' pane is open 
the rst3 command works in this outline as well.

Below is another log showing the described behaviour:



Leo Log Window
Leo 4.11a3, build 6140, 2013-10-13 21:05:37
Python 3.3.2, qt version 4.8.5
Windows 6, 2, 9200, 2, 
leoID=VR20130923 (in C:\Users\Viktor\.leo)
load dir: C:\Repositories\bzr\leo-editor\leo\core
global config dir: C:\Repositories\bzr\leo-editor\leo\config
home dir: C:\Users\Viktor
reading settings in 
C:\Repositories\bzr\leo-editor\leo\config\leoSettings.leo
docutils loaded
reading settings in C:\Users\Viktor\.leo\myLeoSettings.leo
reading settings in C:\Users\Viktor\Worklogs\WL2013.leo
Abbreviations off
reading: C:\Users\Viktor\Worklogs\WL2013.leo

### VR: Entered 'rst3' command a first time.

SilverCity not present so no syntax highlighting
Unexpected docutils exception
Traceback (most recent call last):
  File "C:\Repositories\bzr\leo-editor\leo\core\leoRst.py", line 1899, in 
writeToDocutils
result = docutils.core.publish_string(source=s,
AttributeError: 'module' object has no attribute 'core'
done

### VR: Entered 'rst3' command a second time

Unexpected docutils exception
Traceback (most recent call last):
  File "C:\Repositories\bzr\leo-editor\leo\core\leoRst.py", line 1899, in 
writeToDocutils
result = docutils.core.publish_string(source=s,
AttributeError: 'module' object has no attribute 'core'
done

### VR: Entered F1 to activate Leo Help System
### VR: Execute 'rst3' command a third time

wrote: C:\Users\Viktor\Worklogs\Logs\2013\10\CW41\LE-2013-10-13.html
done



Do you have any other idea what I could try to resolve this issue?

With kind regards,

Viktor

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Re: 'Strange' problem with the rst3 command

2013-10-12 Thread Edward K. Ream
On Thu, Oct 10, 2013 at 7:59 AM, Viktor Ransmayr
wrote:

> Hello everyone,
>
> I encountered a strange problem, when creating the HTML file from a rST
> file via the rst3 command.
>
> Here is the log:
>

[ snip]


>
> ### VR: First invocation of 'rst3'
>
> stylesheet not found
> ...
> Traceback (most recent call last):
>   File "C:\Repositories\bzr\leo-editor\leo\core\leoRst.py", line 1899, in
> writeToDocutils
> result = docutils.core.publish_string(source=s,
> AttributeError: 'module' object has no attribute 'core'
> done
>
> ### VR: Second invocation of 'rst3'
>
> stylesheet not found
>

...


> 
The only thing that I did between the *first* and *second* invocation of
the 'rst3' command was that I hit the F1 key to show the Leo help system ...

> 
Any ideas what is going on here and how to resolve it?

No, I don't docutils has a few glitches.  Recently, it crashed when I
mistakenly removed the toc file referenced in conf.py.

One idea: remove the stylesheet not found message if you can.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.