2

when I import some existing node.js code into the eclipse workspace, it complains with

Syntax error on token "Invalid Character", delete this token

on the #! /usr/bin/env/node hashbang line.

How can I tell eclipse to ignore this error?

PA.
  • 28,486
  • 9
  • 71
  • 95

2 Answers2

0

With Nodeclipse 0.7 and JSHint Integraton, it is now general question "How to configure JSHint" for that.

see How to ignore node shebang error in Eclipse?

Community
  • 1
  • 1
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
0

I have an answer to this question! Remove jsdt nature from your Eclipse .project file. Keep node nature.

<natures>
    <nature>org.nodeclipse.ui.NodeNature</nature>
    <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>

See also: How to ignore node shebang error in Eclipse?.

Also, if you do not have node nature, install the nodeclipse plugin. It's great!

Community
  • 1
  • 1
Jess
  • 23,901
  • 21
  • 124
  • 145