Success.  My fault for not looking at the body of the @enabled-plugins node
-- I somehow thought that each plugin needed to be a subnode of
@enabled-plugins instead of present on its own line in the body of the node.

Note that if you try to open the same node twice, you generate an exception
in python3 because there are still some dict.has_key lurking around:

Traceback (most recent call last):

  File "c:\users\szatz\leo-editor\leo\core\leoApp.py", line 136, in open_with
    fn = efc.open_with_helper(c,d,p)

  File "c:\users\szatz\leo-editor\leo\core\leoApp.py", line 247, in
open_with_helper
    return efc.update_open_with_node(c,d)

  File "c:\users\szatz\leo-editor\leo\core\leoApp.py", line 317, in
update_open_with_node
    new_body = d.get('body') if d.has_key('body') else p.b

AttributeError: 'dict' object has no attribute 'has_key'


Separately, in the Leo documentation, I think it might help to be as
explicit as possible.  Something like:


*The body text of the @enabled-plugins node should contain each plugin you
want activated on a separate line.  To inactivate a plugin, you can delete
the plugin from the body text or comment it out by placing a '#' in front
of the line containing the plugin.*


As obvious as this seems now, it wasn't so obvious when I was fumbling
around with this.


Thanks for all your work making it possible to use vim in conjunction with
leo.




On Sat, May 2, 2015 at 6:07 PM, Edward K. Ream <[email protected]> wrote:

>
>
> On Sat, May 2, 2015 at 7:43 AM, Steve Zatz <[email protected]> wrote:
>
>> So far no luck but am wondering if the error below is causing subsequent
>> plugins to fail to load.
>>
>
> A failed plugins should not affect other plugins.
> ​
>
>
>> A related question is:  there are a number of plugins that appear to load
>> automatically -- how can that list be modified since I don't see them in
>> any settings file?  The error is:
>>
>> Traceback (most recent call last):
>>   File "c:\users\szatz\leo-editor\leo\core\leoPlugins.py", line 538, in
>> loadOnePlugin
>>     __import__(moduleName)
>> ImportError: No module named 'leo.plugins.printing'
>> loadOnePlugin: can not load enabled plugin: leo.plugins.printing
>>
>
> ​printing.py no longer exists because it is part of Leo's core.​
>
>
> ​Look for the @enabled-plugins node in leoSettings.leo, myLeoSettings.leo
> and each loaded .leo file.
>
> 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 [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.

Reply via email to