Hello Erin,

About less issue, this is not a windows machine. It's linux. And I just downloaded the branch angular (because I'm following a little bit dev list) and it does the same.

[ERROR] Failed to execute goal ro.isdc.wro4j:wro4j-maven-plugin:1.6.1:run (default) on project rave-portal-resources: Exception occured while processing: Error in LESS:
[ERROR] ParseError: Unrecognised input in rave on line 922, column 7:
[ERROR] 921     .spanX (@index) when (@index > 0) {
[ERROR] 922       (~".span@{index}") { .span(@index); }
[ERROR] 923       .spanX(@index - 1);
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :rave-portal-resources

My less version is 1.4.2-1 (ubuntu) hope it helps.

About rave.init() I found that we actually have both of them. I mean, old style initialization and new one.
The new one comes first (require one) and the the older one.

The scripts at the bottom of the page are:



<script>requirejs.config({paths: 
{"osapi":"http://localhost:8180/gadgets/js/container:pubsub-2:open-views.js?c=1&container=default&debug=1"}});</script>


<script>
    require(["rave", "jquery", "bootstrap"], function (rave, $) {
rave.setContext("/level2-rave-overlay-portal/app/"); rave.setDefaultHeight(250); rave.setViewer({username: "gaguilar", id: "1"});
        $(function(){
            rave.init();
            rave.RegionWidget.defaultView = 'home';
           // rave.initPageEditorStatus(true);
            rave.layout.init();
            rave.renderWidgets('home');
        });

        rave.setDebugMode(1);
    });
</script>



<script>
    rave.init();
    rave.RegionWidget.defaultView = 'home';

    $(function() {
        rave.initPageEditorStatus(true);
        rave.layout.init();
        rave.renderWidgets('home');
    });
</script>
<script>rave.models.currentPage.set({id: 1, ownerId: 1, viewerId: 1}, 
{silent:true})</script>
<script>rave.models.currentPage.addInitData('1', true)</script>






El 03/09/13 21:22, Erin Noe-Payne escribió:
Gonzalo,

I am not able to reproduce this less compilation error building from
trunk. As Dan mentioned we have seen issues in Windows where file
paths with space characters were causing issues...maybe this would be
related.

Regarding rave.js being included in the page - on any page where you
see that code block calling rave.init(), I would expect it to be
wrapped with a require call. Something like...

require(['rave', ...], function(rave, ...) {  });

Is that not the case?

On Mon, Sep 2, 2013 at 4:14 PM, Gonzalo Aguilar Delgado
<[email protected]> wrote:
Hi Erin,

Right. I've also seen that rave.js is not included into the page.

So page fails on render because

        $(function(){
             rave.init();
         });

Cannot be called. I don't know if this has something to do with the last
compile error. For now I'm using 0.23-SNAPSHOT from the repos because I was
unable to compile.

Thank you Erin.


El 02/09/13 21:35, Erin Noe-Payne escribió:

This is in trunk, correct?

On Mon, Sep 2, 2013 at 2:35 PM, Gonzalo Aguilar Delgado
<[email protected]> wrote:
Hi,

I'm trying to compile last version of the Rave portal and I get this:

[ERROR] Failed to execute goal ro.isdc.wro4j:wro4j-maven-plugin:1.6.1:run
(default) on project rave-portal-resources: Exception occured while
processing: Error in LESS:
[ERROR] ParseError: Unrecognised input in rave on line 922, column 7:
[ERROR] 921     .spanX (@index) when (@index > 0) {
[ERROR] 922       (~".span@{index}") { .span(@index); }
[ERROR] 923       .spanX(@index - 1);
[ERROR] -> [Help 1]
[ERROR]

In file of rave-portal-resources.

src/main/webapp/static/css/bootstrap/less/mixins.less


I don't know much about less but it seems correct to me.


Any ideas?

thank you in advance


Reply via email to