Hi Niels, everyone,

There I fixed it : checkout version 1.0.2 at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Groovy+Console+Application

For the record the "breakage" was the introduction of async JSX loading (
http://jira.xwiki.org/browse/XWIKI-4183)

Cheers,

Jerome

On Tue, May 29, 2012 at 7:44 PM, Jerome Velociter <[email protected]>wrote:

>
>
> On Mon, May 28, 2012 at 3:20 PM, Eduard Moraru <[email protected]>wrote:
>
>> Hi,
>>
>> Just as an observation, the CodeMirror error you are getting for the
>> Groovy
>> console extension is because the extension itself is using CodeMirror for
>> the textarea you use to write Groovy code. It has nothing to do with the
>> Syntax Highlighting extension (that also happens to use and bundle it's
>> own
>> CodeMirror version to enrich a textarea).
>>
>> I am not familiar with the Groovy console extension. Maybe it's an
>> installation problem (having to install CodeMirror yourself -- javascript
>> files) or maybe a packaging problem from the developer, don`t know. Maybe
>> Jerome could help you.
>>
>
> This extension is quite old, it's probably due to an incompatibility with
> newer versions of XWiki (JS conflict ?)
>
> I'll try to give it a look soon and see if I can fix it easily.
>
> Jerome
>
>
>
>>
>> Sorry if this was not very helpful to you.
>>
>> Thanks,
>> Eduard
>>
>> On Fri, May 25, 2012 at 9:01 PM, Niels Mayer <[email protected]>
>> wrote:
>>
>> > Is there a version of the Groovy Console (
>> >
>> >
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Groovy+Console+Application
>> > ) that is compatible with XWiki 3.5?
>> >
>> > When I try to run it, I see missing icons ( referencing old skins,
>> > which I fixed), but now get the following JavaScript errors after
>> > attempting to execute my Groovy code:
>> >
>> > Uncaught ReferenceError: CodeMirror is not defined
>> >          var editor = CodeMirror.fromTextArea('script', {
>> >
>> > And "Uncaught TypeError: Cannot call method 'getCode' of undefined"
>> >            var ajx = new Ajax.Request("$scriptDoc.getURL('save')" , {
>> >               parameters:
>> > {"XWiki.ConsoleScriptClass_${scriptObj.number}_code":editor.getCode(),
>> > "ajax":"1"},
>> >               onComplete:function(transport){
>> >                  $('saveLoading').addClassName("hidden");
>> >                  $('saveStatus').removeClassName("hidden");
>> >                  $('saveStatus').innerHTML = "Saved !";
>> >                  var foo = new Effect.Highlight('saveStatus');
>> >                  setTimeout(function(){
>> >                     $('saveStatus').innerHTML = "";
>> >                     $('saveStatus').addClassName("hidden");
>> >                  }, 5000);
>> >               }
>> >
>> > I guess I could keep plugging away and trying to fix this, but was
>> > wondering whether there's a newer version of the Groovy Console
>> > compatible w/ XWiki 3.5 and beyond, or is there some simple fix to the
>> > problems outlined above?
>> >
>> > Seems like this has been noted as a problem previously:
>> > http://lists.xwiki.org/pipermail/users/2011-October/020745.html
>> >
>> > I attempted installing 'SyntaxHighlighting' (says its "CodeMirror
>> > based syntax highlighting ...") and noticed it now adds new error at
>> > startup in the GroovyConsole:
>> >  Uncaught TypeError: Object function
>> > a(f,g){if(g.dumbTabs){g.tabMode="spaces"}else{if(g.normalTab)
>> >
>> > Suggesting problems w/ this extension as well. I do note that my
>> > existing scripts now have pretty syntax highlighting... so it is
>> > working. Unfortunately, it also forces the wiki-code editor to appear
>> > below the wysiwyg and makes the wysiwyg area too small. So I
>> > uninstalled it and my Wysiwyg now works as before....
>> >
>> > Any way of getting Groovy Console functionality working? Seems like a
>> > great way to work with cloud-based XWiki installs, such as mine...
>> >
>> > Thanks,
>> >
>> > -- Niels
>> > http://www.nielsmayer.com
>> > _______________________________________________
>> > devs mailing list
>> > [email protected]
>> > http://lists.xwiki.org/mailman/listinfo/devs
>> >
>> _______________________________________________
>> devs mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/devs
>>
>
>
>
> --
> Jérôme Velociter
> Winesquare
> http://www.winesquare.net/
>



-- 
Jérôme Velociter
Winesquare
http://www.winesquare.net/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to