Error reported from netbeans

Error reported from netbeans

pavlosgrpavlosgr Posts: 3Questions: 0Answers: 0
edited April 2013 in Bug reports
Hello

I have downloaded v1.9.4 and included in a project.
Netbeans reports an error in core.constructor.js at lines 12 and 13.
Line 12 : Invalid return statement.
Line 13 : Expected eof but found {}

To be honest I can't see an error but this is what it reports.

Replies

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin
    Please see: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • pavlosgrpavlosgr Posts: 3Questions: 0Answers: 0
    Thanks for the link.

    But I forgot to mention that the DataTables work just fine so I have no test case to give.

    It is something that Netbeans showed and I thought that is a good idea to share the info in case there is something there that can lead to not easily determined issues.
  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin
    I suspect netbeans is trying to parse core.constructor.js as a single file - which isn't correct since you can't use that file on its own It needs to be packaged by the build script. It is placed into a function, making the return valid.

    Allan
This discussion has been closed.