Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Mobile 1.1.0.min Triggers Errors in Eclipse

I have a Java servlet project in Eclipse that includes the use of jQuery Mobile 1.1.0.min. Eclipse scans this file looking for JavaScript errors and it seems to find two such errors. The Eclipse error list shows:

"Internal Validation error on the 1st character of the file (the "/")

The default case is already defined on "default" in

switch(e) {
    case ".":break;
    case "..":
        c.length&&c.pop();
        break;
    default:
        c.push(e)
}

No errors occur with the "non-minified" version. The servlet runs OK and jQM appears to function correctly so I am wondering if these errors might be wrong. Can anyone explain why this is happening and how to eliminate the error messages? The hassle is that Eclipse is constantly scanning for errors in the background, which is what we want, but it's constantly popping up a dialog box about these two errors.

Thanks.

like image 652
Al Koch Avatar asked Apr 20 '12 23:04

Al Koch


1 Answers

To exclude files do : Project Properties > JavaScript > Include Path > Source, there is "Excluded" to highlight and press "Edit" button, here you are able to add what you want to exclude (file, folder, pattern). More here.

I recently created a small test case and filed a bug against Eclipse JSDT. Please vote for it.

I put a hack into the JSDT that I bundle with the MDS AppLaud Eclipse plugin for Android PhoneGap so that JSDT exceptions are ignored.

like image 99
Paul Beusterien Avatar answered Nov 13 '22 15:11

Paul Beusterien