diff options
author | Joey Hess <joey@kitenet.net> | 2013-03-04 18:32:40 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-03-04 18:32:40 -0400 |
commit | a417262d58c1b8240357e6e0a203e1f32c39205d (patch) | |
tree | ed026ae0d196ecbbf1f32b034d81dba6be17a6e8 | |
parent | 00d23a23ebf0b54f775bd37c545cde4db1ae048a (diff) | |
parent | af9798fb29841b54e49b64ae4e1bcc1bf119b5f0 (diff) | |
download | ikiwiki-a417262d58c1b8240357e6e0a203e1f32c39205d.tar ikiwiki-a417262d58c1b8240357e6e0a203e1f32c39205d.tar.gz |
Merge branch 'master' of ssh://git.ikiwiki.info
-rw-r--r-- | doc/bugs/undefined_value_as_a_HASH_reference.mdwn | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/bugs/undefined_value_as_a_HASH_reference.mdwn b/doc/bugs/undefined_value_as_a_HASH_reference.mdwn index 384e09336..0aebbcf52 100644 --- a/doc/bugs/undefined_value_as_a_HASH_reference.mdwn +++ b/doc/bugs/undefined_value_as_a_HASH_reference.mdwn @@ -49,3 +49,18 @@ I'm on Debian unstable. Thanks, -Michal + +> Some plugin has a broken getsetup hook, and is feeding a corrupted setup list in. Both the websetup and the auto.setup files cause all plugins to be loaded and all their setup to be available. +> +> This command will help you find the plugin. Here it prints some noise around the rst plugin, for unrelated reasons, +> but what you're looking for is the plugin printed before the "even sized list" message. + +<pre> +perl -le 'use warnings; use strict; use Data::Dumper; use IkiWiki; %config=IkiWiki::defaultconfig(); use IkiWiki::Setup; my @s=IkiWiki::Setup::getsetup(); foreach my $pair (@s) { print "plugin ".$pair->[0]; my $setup=$pair->[1]; if ($pair->[0] eq "rst") { print Dumper($setup)} my %s=@{$setup} }' +</pre> + +> I was able to replicate this by making a plugin's getsetup hook return a list reference, rather than a list, +> and have put in a guard against that sort of thing. +> --[[Joey]] + +>> Thanks. Your command didn't helped me, but with trial and error approach I found that the victim an old version asciidoc plugin. For some reason, asciidoc was never listed in the output of the command. --[[wentasah]] |