IRC Archive for channel #xwiki on 15 January 2013
Last modified by Vincent Massol on 2013/01/15 23:57
<jvdrean> has quit
00:23 <abusenius> has quit
01:00 <cjd> Denis2: I just checked lsof and my idle wiki has 46,000 open files, it seems to have the same files open multiple times
01:08 <cjd> hmm nvm, running lsof alone does not show an accurate count
02:18 <sburjan`> has quit
03:43 <xwikibot> has joined #xwiki
03:58 <xwikibot> has joined #xwiki
04:08 <xwikibot> has joined #xwiki
04:13 <xwikibot> has joined #xwiki
04:23 <xwikibot> has joined #xwiki
04:28 <xwikibot> has joined #xwiki
04:48 <xwikibot> has joined #xwiki
05:03 <xwikibot> has joined #xwiki
05:08 <xwikibot> has joined #xwiki
05:13 <xwikibot> has joined #xwiki
05:18 <xwikibot> has joined #xwiki
05:23 <xwikibot> has joined #xwiki
05:28 <xwikibot> has joined #xwiki
05:33 <xwikibot> has joined #xwiki
05:39 <xwikibot> has joined #xwiki
05:48 <xwikibot> has joined #xwiki
05:54 <xwikibot> has joined #xwiki
05:58 <xwikibot> has joined #xwiki
06:03 <xwikibot> has joined #xwiki
06:08 <xwikibot> has joined #xwiki
06:18 <xwikibot> has joined #xwiki
06:23 <xwikibot> has joined #xwiki
06:28 <xwikibot> has joined #xwiki
06:48 <xwikibot> has joined #xwiki
07:28 <xwikibot> has joined #xwiki
07:38 <xwikibot> has joined #xwiki
07:53 <xwikibot> has joined #xwiki
08:47 <xwikibot> has joined #xwiki
08:59 <xwikibot> has joined #xwiki
09:06 <xwikibot> has joined #xwiki
09:29 <xwikibot> has joined #xwiki
09:33 <mflorea> has joined #xwiki
09:52 <xwikibot> has joined #xwiki
10:03 <xwikibot> has joined #xwiki
10:04 <Enygma`> has joined #xwiki
10:08 <evalica> has joined #xwiki
10:18 <sburjan> has joined #xwiki
10:26 <msmeria> tmortagne: regarding XWIKI-8682 do you want me to test on the snapshot found here http://maven.xwiki.org/snapshots/org/xwiki/manager/xwiki-manager-web/4.4-SNAPSHOT/ ? I'm asking beacause it appears as being Last modified on 10jan
10:31 <tmortagne> XEM job deos not seems to be linked to XE job
10:33 <tmortagne> mflorea: you can check here when it's ready
10:35 <mflorea> tmortagne: what to check?
10:36 <tmortagne> not sure if that job was created with the script of by hand
10:37 <mflorea> I think you meant msmeria
10:39 <jvdrean> has joined #xwiki
10:43 <xwikibot> has joined #xwiki
10:43 <vmassol> ok I'll need to check next time we do a copy using the script
10:46 <tmortagne> vmassol: note that it should not be an exact copy
10:46 <vmassol> it's not
10:47 <vmassol> it's a copy + changes
10:47 <vmassol> in 2 places: branch + change job deps
10:47 <tmortagne> ok
10:47 <tmortagne> is XEM job created after XE job ?
10:47 <vmassol> yes
10:47 <vmassol> just checked that ;)
10:48 <tmortagne> lets see next time then, maybe someone removed it by mistake
10:51 <Slashman> has joined #xwiki
11:06 <xwikibot> has joined #xwiki
11:12 <tmortagne> looks like agent-10 is unable to connect to github
11:13 <tmortagne> http://ci.xwiki.org/job/xwiki-manager-4.4.x/3/console
11:13 <tmortagne> "Connection timed out"
11:23 <xwikibot> has joined #xwiki
11:40 <AndreasJonsson> has quit
11:55 <tdelafosse> has joined #xwiki
13:24 <xwikibot> has joined #xwiki
13:38 <mflorea> has quit
13:54 <sburjan_> has joined #xwiki
13:56 <sburjan`> has quit
13:56 <sburjan_> is now known as <sburjan`>
13:56 <AndreasJonsson> has joined #xwiki
14:12 <xwikibot> has joined #xwiki
14:15 <cjd> tmortagne: hi, re my earlier question on the list, is it possible to allow xwiki.org to import from arbitrary mvn repos without having to change the xwiki.properties file and restart it each time?
14:29 <tmortagne> cjd: with a script you can request any repository but the current import UI does not support it
14:31 <tmortagne> hmm wait
14:32 <cjd> If it's just the UI then I'll look at improving it so that I can shorten the instructions list for making an extension
14:32 <tmortagne> the real API allows it but the repository scipt service only take the repository id
14:32 <cjd> hmm
14:32 <tmortagne> so in other words you cpan do it in groovy but not velocity
14:32 <tmortagne> s/cpan/can/
14:32 <cjd> Ahh so we can do it pretty easily for xwiki.org
14:33 <tmortagne> yep
14:33 <tmortagne> can do it in groovy for now and add official support for it in the script service on github
14:33 <cjd> I think the best way is to have new extension contributers use mvn deploy into a directory and then gut push that to github.
14:33 <tmortagne> for when we upgrade xwiki.org
14:33 <cjd> *git
14:34 <cjd> Asking a contributer to request permission to deploy on nexus is a nonstarter IMO
14:36 <tmortagne> we could do what is done for maven central, your user is associated to some group id and automatically promoted
14:36 <tmortagne> so you ask only the first time
14:37 <cjd> I'd rather if people didn't have to ask at all because the major learning curve and the biggest risk of someone walking away is during that first critical extension.
14:37 <cjd> once they can do one, they have mastered it
14:38 <tmortagne> well then I'm not sure what you propose ? anyone can deploy anything ?
14:39 <cjd> Deploy to a local directory and then push to your own github repo, since github has a "raw" mode, you can point maven at a github repo and it will work.
14:40 <tmortagne> so you would have to have your own maven repository to import an extension ?
14:41 <tmortagne> (whatever the way you do your maven repository)
14:41 <vmassol> cjd: you're aware that you can use your local maven repo to try your extension right?
14:41 <cjd> vmassol: you mean by adding it to your xwiki.properties ? I was not aware of it but that's good.
14:42 <vmassol> I do that all the time when testing extensions
14:42 <tmortagne> cjd: that's because the local maven repository is a valid maven repository
14:42 <cjd> https://github.com/cjdelisle/my-first-xwiki-extension/blob/master/pom.xml#L67 <-- this is what I'm trying at the moment, it makes for a very short instructions list for publishing
14:42 <cjd> it's just that we need to allow 1 repository per extension
14:43 <vmassol> 1 repo per extension is really bad for perf
14:44 <vmassol> bbiab
15:00 <cjd> 1 repo per extension shouldn't have to be bad performance, maven protocol does require asking every repository for every artifact but it seems that the EM could be more intelligent.
15:01 <cjd> The problem as I see it is people are going to be asking "why can't it be fast *and* easy like node.js and golang" and "those languages are toys they are not enterprise" may be true now but it won't be forever.
15:02 <mflorea> has joined #xwiki
15:24 <cjd> has quit
15:38 <vmassol> jvdrean: could you look at the failing UIExtension test?
15:38 <vmassol> expected:<...World HelloWikiWorld[1 HelloWikiWorld2 {HelloWorldKey=HelloWorldValue} {HelloWikiWorldKey=zz1_XWiki.superadmin]} {HelloWikiWorldKey...> but was:<...World HelloWikiWorld[2 {HelloWorldKey=HelloWorldValue]} {HelloWikiWorldKey...>
15:59 <jvdrean> vmassol: I can't right now but I will ASAP
16:00 <vmassol> breaking the build is top priority
16:17 <qwebirc17204> has joined #xwiki
16:26 <qwebirc17204> Hey, how can I set velocity variables from a groovy file which calls something like: String renderedContent = anotherDoc.getRenderedContent("Hello $msgdoc.get('title')", "xwiki/1.0"); I tried it with context.put("msgdoc", xwiki.getDocument("Test/Doc") and xcontext.put("msgdoc"... but the title is never fetched
16:27 <jvdrean1> has joined #xwiki
16:30 <jvdrean> has quit
16:34 <tmortagne> qwebirc17204: what version is it ? since 4.0 you can simply do http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HSharevariablebetweenlanguages
16:35 <tmortagne> (works on groovy -> velocity way right now and not the other way yet)
16:36 <tmortagne> before 4.0 going trough xcontext should work AFAIK
16:36 <tmortagne> groovy:
16:36 <tmortagne> velocity:
16:36 <tmortagne> $xcontext.somevar
16:38 <tmortagne> qwebirc17204: its put() actually, not set()
16:41 <polx> has quit
16:44 <qwebirc17204> tmortagne: thank you
16:44 <qwebirc17204> if I call anotherDoc.getRenderedContent("\$context.somevalue", "xwiki/1.0");
16:44 <qwebirc17204> where some value is a Document
16:44 <qwebirc17204> it should produce the tostring representation correct?
16:45 <qwebirc17204> (with the object in context indeed)
16:45 <GuillaumeF> has joined #xwiki
16:45 <qwebirc17204> But it pruces "$context.somevalue" for me
16:49 <tmortagne> it's possible anotherDoc.getRenderedContent is creating a new context I think and is executed in an isolated way
16:52 <tmortagne> so they don't share the same xcontext instance
16:53 <qwebirc17204> yes that would be a reason, but how to pass "parameters" in such a case? Avoid foreign rendering?
16:54 <tmortagne> you can probably directly use the xwiki/1.0 rendering framework from groovy instead of going through getRenderedContent unless this was just an example
16:56 <evalica> has quit
17:03 <Enygma`> has quit
17:14 <msmeria> has quit
17:38 <polx> has joined #xwiki
17:58 <qwebirc17204> Hey, how to obtain a converter from componentManager in version 3.5?
17:59 <vmassol> cm.lookup(...)
18:22 <cjd> has joined #xwiki
18:23 <polx> has quit
18:46 <jvdrean1> has quit
19:03 <polx> has joined #xwiki
19:03 <polx> has quit
19:04 <polx> has joined #xwiki
19:06 <GuillaumeF> has quit
19:19 <Slashman> has quit
19:28 <tmortagne> has quit
19:35 <abusenius> has joined #xwiki
19:39 <tdelafosse> has quit
19:45 <vmassol> has quit
20:05 <sburjan> has quit
20:07 <mflorea> has quit
20:16 <vmassol> has joined #xwiki
20:31 <sdumitriu1> has joined #xwiki
20:32 <sdumitriu1> vmassol: Any more feedback on http://markmail.org/message/bfkzhbiteghihf4n ?
20:55 <vmassol> has quit
21:41 <vmassol> has joined #xwiki
22:06 <vmassol> has quit
23:23 <qwebirc17204> has quit
23:30 <polx> has quit
23:57 <abusenius> has quit