Catch up to highlight 3.51 API change.
[ikiwiki] / doc / bugs / po_plugin_config_crasher.mdwn
1 Saw a site using the po plugin crash with:
2
3         syntax error in pagespec "\"page(./tips/*)"
4
5 I suspect the relevant configuration is this:
6
7         po_translatable_pages: /index or /hugo or /hugo/keys or /about or /archive or /tips
8           or /talks or /imprint or /copyright or /blog or /posts  or /law or /quotes or /quotes/*
9
10 Config problems in ikiwiki.setup should really not cause the whole site
11 build to crash; this can make it hard to recover. --[[Joey]]
12
13 > Given who's reporting this, am I right in assuming that's with ikiwiki 3.20150614? --[[smcv]]
14
15 ---
16
17 I try to setup a small site with the auto-blog.setup and played a bit with it:
18 If I activate the po plugin and set po_translateable_pages to something meaningful (like the example: `* and !*/Discussion`),
19 then I'll get the same error
20
21     syntax error in pagespec "\"page(./posts/*)"
22
23 but only after a second run of the ikiwiki --setup site.setup
24
25 My try to get a clue: deleting any po and pot files and run the rebuild again - works fine  
26 run the rebuild a second time - error as above
27
28 tune any of the pagespec variables in the setup and at the inline directives of the blog or sidebar dosn't change anything
29 except leaving the po_translateable_pages empty, than the rebuild works and doesn't create any po files (as expected).
30
31 Is this helpful or have I done anything stupid ? -- Michael
32
33 > This would be helpful if I could reproduce the crash from your instructions, but I couldn't :-(
34 > Which version of ikiwiki is this?
35 > --[[smcv]]
36
37 >> It was version 3.20141016.2 as it is in debian stable / jessie  
38 >> I tried again with version 3.20160121 as it is in debian sid  
39 >> same behavior as described  
40 >>  
41 >> I did setup a new blog with auto-blog.setup, activated the po plugin with the defaults  
42 >> and get the error again (running ikiwiki --setup twice) --Michael