Questions tagged [jsdt]

JSDT known as Javascript Development Tools is a part of the Web Tools Platform in the Eclipse IDE.

65 questions
24
votes
2 answers

How to ignore node shebang error in Eclipse?

I am writing some node command line utilities. They all start with the line: #!/usr/bin/env node With Eclipse Juno and the Nodeclipse Node.js plugin, this line of code produces an error as shown: OK, so # is not a valid comment character in…
Jess
  • 23,901
  • 21
  • 124
  • 145
19
votes
2 answers

How to install the latest version of JavaScript Development Tools in Eclipse?

On http://www.eclipse.org/webtools/jsdt/ it says that the most recent version is 3.4. My Eclipse version is 4.2 Juno. In Help → Install new software... when I search for it I only get the 1.4 JSDT. I've got the following software sites enabled: Juno…
gvlasov
  • 18,638
  • 21
  • 74
  • 110
17
votes
3 answers

Eclipse is hanged on copy/paste in JavaScript files

I've been running Eclipse Helios 3.6 using the Java/CFEclipse IDEs, and finding some very strange and aggravating errors when trying to edit Javascript files. After the .js file reaches a certain size (~250 lines of code), Eclipse will randomly hang…
user417589
  • 171
  • 1
  • 1
  • 5
11
votes
1 answer

How to make JavaScript function visible in Eclipse "Outline View"?

I have such code but can not turn on outline of function if it defined in anonymous function - there is not problem with class. How can I outline something2 - please share some hints? I can mark all function as constructors but it is invalid…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
9
votes
3 answers

How to setup Eclipse to be warned about trailing comma in JavaScript

As many of us know, IE7 is not quite friendly with JavaScript code containing trailing commas, which can be a large problem for projects using modern JS framerworks and containing a lot of JS code. In a pretty good article on the subject, the author…
Das
  • 317
  • 2
  • 8
  • 14
9
votes
1 answer

Autocomplete not working with Eclipse Oxygen Javascript project

I'm using Eclipse Oxygen (4.7) with the Eclipse Web Tools Platform installed on Ubuntu 16.04.3. Auto-completion of variables and functions only works provided that the variable or function is local to the file that I'm currently working on.…
RTF
  • 6,214
  • 12
  • 64
  • 132
9
votes
2 answers

Can Eclipse format comma-separated statements (var a = 1, b=2;) on different lines?

I am using Eclipse JSDT and the default formatting settings change something like var a = 1, b = 2; to be on one ugly line. The style before formatting is recommended by JSLint, so I am wondering can Eclipse be set to format it this way? The…
billc.cn
  • 7,187
  • 3
  • 39
  • 79
7
votes
3 answers

How use Eclipse as a Javascript IDE?

I downloaded the eclipse Javascript IDE from the official download page however, when i start the application it says "A Java Runtime Environment or Java development Kit must be available in order to run eclipse." I already have a java IDE copy of…
Zeeno
  • 2,671
  • 9
  • 37
  • 60
7
votes
1 answer

What happened to Eclipse's JSDT?

JSDT (Javascript Development Tools) is an Eclipse project aimed at implementing the JDT APIs for Javascript. Its early demos were really impressive, but it seems to not have had any releases since 2007, without any mention of what happened to…
levik
  • 114,835
  • 27
  • 73
  • 90
7
votes
2 answers

Where is ES6 support in Eclipse Neon?

I downloaded the 'Java EE' and 'web developer' editions of Eclipse Neon to try out the new ES6 support that allegedly exists in this new version of the software. However both editions appear to contain only the old ES3 validator - with no ES6 in…
Blivvy
  • 131
  • 1
  • 3
6
votes
3 answers

Getting jQuery and AngularJS content assist / auto-complete in eclipse for standalone HTML "file"

I have followed the steps described here for adding the autocomplete functionality to the eclipse. In this after installing JSDT plugin, I have to create a project, then add the plugin as a JS resource. I have found two weird things: I can get…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
5
votes
1 answer

Specifying to Eclipse/JSDT the type of a Javascript variable

I'm trying to use Eclipse for some server-side Javascript development. The API I use has a function doStuff(string, object) (names changed to protect the guilty) that returns a value of differing types (subclasses of one type) depending on the…
The Archetypal Paul
  • 41,321
  • 20
  • 104
  • 134
5
votes
1 answer

Enabling the JSDT Outline view in Eclipse Neon

The question of the Outline view showing the contents of a JavaScript source file is not new and it had even found an answer. However, that answer no longer works in Neon (4.6.0): I have opened the exact same file of one project imported in two…
AbVog
  • 1,435
  • 22
  • 35
5
votes
3 answers

Changing javascript to jQuery first time Struts 1.3 application

I am changing the javascript in my project to jquery. This is the first time im using Jquery and expect me to be making silly mistakes please. I placed a simple JQ alert function in a .js file which looks like below. $(document).ready(function(){ …
DJR
  • 454
  • 2
  • 8
  • 29
5
votes
3 answers

Eclipse>WST>JSDT Javascript Refactoring Renaming variables working half of the time

In Eclipse (I am running 3.8.0 @ Linux (Mint 14 (Ubuntu (Debian))) at the moment), renaming variables using Refactor is an option that seems randomly available. For some code it's there, and for other code it's not. I tried to see a pattern why some…
Redsandro
  • 11,060
  • 13
  • 76
  • 106
1
2 3 4 5