Re: [xwiki-users] Calc Macro Not Working in 6.4.1

2015-02-12 Thread Eduard Moraru
Hi,

I do not know the details, but you need to look through the existing opened
issue on jira.xwiki.org or create a new bug report if none already exist.
That is the first step in getting something fixed, since that is the place
where developers go to look for things to do ;)

Thanks,
Eduard

On Fri, Feb 13, 2015 at 1:24 AM, Charlie Mann  wrote:

> We have been using the Calc Macro Extension in xWiki 6.3 and it was working
> well.  When we upgraded to 6.4.1, the macro stopped working and now
> displays: Failed to execute the [groovy] macro. Click on this message for
> details.
>
>
>
> Debugging the CalcGroovy script, it appears that when the script does a
> .getParent() on the MacroBlock that is coming in, it is returning null.
> Previously, it used to return the TableHeader block of the table containing
> the Macro.
>
>
>
> Is there something that needs to be changed in the CalcGroovy code to get
> it
> to work with 6.4.1, or is this something that will need to be fixed in
> 6.4.2?
>
>
>
> Thanks
>
> Charlie
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Calc Macro Not Working in 6.4.1

2015-02-12 Thread Charlie Mann
We have been using the Calc Macro Extension in xWiki 6.3 and it was working
well.  When we upgraded to 6.4.1, the macro stopped working and now
displays: Failed to execute the [groovy] macro. Click on this message for
details. 

 

Debugging the CalcGroovy script, it appears that when the script does a
.getParent() on the MacroBlock that is coming in, it is returning null.
Previously, it used to return the TableHeader block of the table containing
the Macro. 

 

Is there something that needs to be changed in the CalcGroovy code to get it
to work with 6.4.1, or is this something that will need to be fixed in
6.4.2? 

 

Thanks

Charlie

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calc Macro

2013-04-18 Thread Maxime Sinclair
Thanks Ludovic, it works fine now. As you suggested, I just commented out
all the "print" statements.




2013/4/17 Ludovic Dubost 

> No it's not. I look at it and I think I found the issue but I could not
> publish a new version yet.
>
> In CalcGroovy you should comment out all calls to "print"
> Apparently this ends up in System out and is slowing down everything
>
> Ludovic
>
>
> 2013/4/17 Maxime Sinclair 
>
> > Hi Ludovic,
> >
> > In fact, in 3.5.1 it works but its very very slow. Is it normal ?
> >
> > Maxime
> >
> >
> >
> > 2013/4/16 Ludovic Dubost 
> >
> > > Hi,
> > >
> > > Indeed I just installed it in 4.5 and it breaks. There must have been
> > some
> > > API changes in the XDOM since I wrote these macros.
> > >
> > > I'll look at it when I have time but I cannot promise.
> > >
> > > Ludovic
> > >
> > >
> > > 2013/4/16 Maxime Sinclair 
> > >
> > > > Hi XWiki users,
> > > >
> > > > I'm trying to use the Calc Macro
> > > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but
> it
> > > > doesn't seem to work "out of the box".
> > > > Is there someone who managed to fix it ? Or if you have an other way
> to
> > > > compute dynamically the average of 3 numbers ?
> > > >
> > > > Thanks for your help. My wiki version is 3.5.1.
> > > > Maxime
> > > > ___
> > > > users mailing list
> > > > users@xwiki.org
> > > > http://lists.xwiki.org/mailman/listinfo/users
> > > >
> > >
> > >
> > >
> > > --
> > > Ludovic Dubost
> > > Founder and CEO
> > > Blog: http://blog.ludovic.org/
> > > XWiki: http://www.xwiki.com
> > > Skype: ldubost GTalk: ldubost
> > > ___
> > > users mailing list
> > > users@xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Ludovic Dubost
> Founder and CEO
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calc Macro

2013-04-17 Thread Ludovic Dubost
No it's not. I look at it and I think I found the issue but I could not
publish a new version yet.

In CalcGroovy you should comment out all calls to "print"
Apparently this ends up in System out and is slowing down everything

Ludovic


2013/4/17 Maxime Sinclair 

> Hi Ludovic,
>
> In fact, in 3.5.1 it works but its very very slow. Is it normal ?
>
> Maxime
>
>
>
> 2013/4/16 Ludovic Dubost 
>
> > Hi,
> >
> > Indeed I just installed it in 4.5 and it breaks. There must have been
> some
> > API changes in the XDOM since I wrote these macros.
> >
> > I'll look at it when I have time but I cannot promise.
> >
> > Ludovic
> >
> >
> > 2013/4/16 Maxime Sinclair 
> >
> > > Hi XWiki users,
> > >
> > > I'm trying to use the Calc Macro
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but it
> > > doesn't seem to work "out of the box".
> > > Is there someone who managed to fix it ? Or if you have an other way to
> > > compute dynamically the average of 3 numbers ?
> > >
> > > Thanks for your help. My wiki version is 3.5.1.
> > > Maxime
> > > ___
> > > users mailing list
> > > users@xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> >
> >
> >
> > --
> > Ludovic Dubost
> > Founder and CEO
> > Blog: http://blog.ludovic.org/
> > XWiki: http://www.xwiki.com
> > Skype: ldubost GTalk: ldubost
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calc Macro

2013-04-17 Thread Maxime Sinclair
Hi Ludovic,

In fact, in 3.5.1 it works but its very very slow. Is it normal ?

Maxime



2013/4/16 Ludovic Dubost 

> Hi,
>
> Indeed I just installed it in 4.5 and it breaks. There must have been some
> API changes in the XDOM since I wrote these macros.
>
> I'll look at it when I have time but I cannot promise.
>
> Ludovic
>
>
> 2013/4/16 Maxime Sinclair 
>
> > Hi XWiki users,
> >
> > I'm trying to use the Calc Macro
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but it
> > doesn't seem to work "out of the box".
> > Is there someone who managed to fix it ? Or if you have an other way to
> > compute dynamically the average of 3 numbers ?
> >
> > Thanks for your help. My wiki version is 3.5.1.
> > Maxime
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Ludovic Dubost
> Founder and CEO
> Blog: http://blog.ludovic.org/
> XWiki: http://www.xwiki.com
> Skype: ldubost GTalk: ldubost
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calc Macro

2013-04-16 Thread Ludovic Dubost
Hi,

Indeed I just installed it in 4.5 and it breaks. There must have been some
API changes in the XDOM since I wrote these macros.

I'll look at it when I have time but I cannot promise.

Ludovic


2013/4/16 Maxime Sinclair 

> Hi XWiki users,
>
> I'm trying to use the Calc Macro
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but it
> doesn't seem to work "out of the box".
> Is there someone who managed to fix it ? Or if you have an other way to
> compute dynamically the average of 3 numbers ?
>
> Thanks for your help. My wiki version is 3.5.1.
> Maxime
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Ludovic Dubost
Founder and CEO
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calc Macro

2013-04-16 Thread Maxime Sinclair
Thanks for the idea, I'll give it a try.


2013/4/16 Edo Beutler 

> Hi Maxime
>
> I don't know about the Macro, but if you just want to average 3 numbers you
> could use the
> Velocity MathTool (
> http://velocity.apache.org/tools/devel/generic/MathTool.html) which is
> available as $mathtool in XWiki.
>
> Hope this helps
> Edo
>
> On Tue, Apr 16, 2013 at 3:22 PM, Maxime Sinclair
> wrote:
>
> > Hi XWiki users,
> >
> > I'm trying to use the Calc Macro
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but it
> > doesn't seem to work "out of the box".
> > Is there someone who managed to fix it ? Or if you have an other way to
> > compute dynamically the average of 3 numbers ?
> >
> > Thanks for your help. My wiki version is 3.5.1.
> > Maxime
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Calc Macro

2013-04-16 Thread Edo Beutler
Hi Maxime

I don't know about the Macro, but if you just want to average 3 numbers you
could use the
Velocity MathTool (
http://velocity.apache.org/tools/devel/generic/MathTool.html) which is
available as $mathtool in XWiki.

Hope this helps
Edo

On Tue, Apr 16, 2013 at 3:22 PM, Maxime Sinclair
wrote:

> Hi XWiki users,
>
> I'm trying to use the Calc Macro
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but it
> doesn't seem to work "out of the box".
> Is there someone who managed to fix it ? Or if you have an other way to
> compute dynamically the average of 3 numbers ?
>
> Thanks for your help. My wiki version is 3.5.1.
> Maxime
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Calc Macro

2013-04-16 Thread Maxime Sinclair
Hi XWiki users,

I'm trying to use the Calc Macro
http://extensions.xwiki.org/xwiki/bin/view/Extension/Calc+Macro but it
doesn't seem to work "out of the box".
Is there someone who managed to fix it ? Or if you have an other way to
compute dynamically the average of 3 numbers ?

Thanks for your help. My wiki version is 3.5.1.
Maxime
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users