Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » CommonJS AMD-style "define([...], function(...) {...});" compiler errors
CommonJS AMD-style "define([...], function(...) {...});" compiler errors [message #994374] Thu, 27 December 2012 05:46
rob montgomery is currently offline rob montgomeryFriend
Messages: 11
Registered: July 2012
Junior Member
I recently downloaded the latest .ZIP of the Firefox compatible FireBug code and created an Eclipse project from this code. I'm running:

Eclipse Java EE IDE for Web Developers.

Version: Juno Service Release 1
Build id: 20120920-0800

The javascript precompiler is throwing many errors on the CommonJS AMD-style of "define([...], function(...) {...});" (see the uploaded screen shots). Many of the files don't have errors, but about 50 of the files using this syntax are throwing errors and I can not identify any differences or fixes to correct these errors. I prefer to use Eclipse for Javascript development due to these kinds of tools, but, given that the FireBug source has gone through extensive testing, could this be an error in the JSDT precompiler (or syntax validator)?

The compilation error is "The left-hand side of an assignment must be a variable".

[Updated on: Thu, 27 December 2012 10:58]

Report message to a moderator

Previous Topic:How import netbeans web project in Eclipse helios service release 2
Next Topic:Mac OS X - Why does Galileo ask frequently for firewall permission
Goto Forum:

Current Time: Sun Oct 25 02:13:24 GMT 2020

Powered by FUDForum. Page generated in 0.01618 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top