Javascript and Eclipse

Topics for the Eclipse Environment
Post Reply
SeeCwriter
Posts: 624
Joined: Mon May 12, 2008 10:55 am

Javascript and Eclipse

Post by SeeCwriter »

The new IDE (v2.6.7) does NOT recognize changes to *.js files when doing a "F5 - Refresh" in Eclipse… despite all the elaborate new file definitions in "C:\nburn\pcbin\MIME_magic.txt". JS (javascript) files work just fine in the web page, but Eclipse won't capture any changes to those files unless you do a complete “Clean” rebuild. So this is broken just as before, and the workaround continues to be to name the *.js files as *.htm…. resulting in a rash of browser warnings but otherwise causing no harm.

Steve
User avatar
tod
Posts: 587
Joined: Sat Apr 26, 2008 8:27 am
Location: Southern California
Contact:

Re: Javascript and Eclipse

Post by tod »

My workaround has been to go "touch" an HTML file after modifying a .js file. Usually I just add a space character on a comment line.
Much faster than a full rebuild, not as convenient as renaming them .html, which never occurred to me.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: Javascript and Eclipse

Post by dciliske »

Lemme poke Forrest on this one tomorrow. I'm not sure what the deal here is...
Dan Ciliske
Project Engineer
Netburner, Inc
User avatar
Forrest
Posts: 287
Joined: Wed Apr 23, 2008 10:05 am

Re: Javascript and Eclipse

Post by Forrest »

This is fixed in 2.6.8, which is scheduled for imminent release. NBEclipse will now recognize changes in css, js, and images within the project directory.
Forrest Stanley
Project Engineer
NetBurner, Inc

NetBurner Learn Articles: http://www.netburner.com/learn
Post Reply