65502

eclipse javascript syntax error on hashbang line

Question:

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

<em>Syntax error on token "Invalid Character", delete this token</em>

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

How can I tell eclipse to ignore this error?

Answer1:

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

see <a href="https://stackoverflow.com/questions/18960201/how-to-ignore-node-shebang-error-in-eclipse" rel="nofollow">How to ignore node shebang error in Eclipse?</a>

Answer2:

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: <a href="https://stackoverflow.com/questions/18960201/how-to-ignore-node-shebang-error-in-eclipse" rel="nofollow">How to ignore node shebang error in Eclipse?</a>.

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

Recommend

  • connecting to a private ip
  • Django CBV: Programmatically save HTML page to PDF file on the server
  • Nfc Toggle in Android 4.x+?
  • ruby: how to iterate elements in a hash efficiently
  • Mouse clickAndHold() not working properly on Firefox Using Selenium Webdriver
  • Draggable nested inside Draggable drags both when dragging child in IE
  • What is the difference between 'import' and 'require' in JavaScript?
  • CSS button not styling
  • Run a function after all partials (ng-includes) loaded
  • The output is not displayed in its entirety [8086 assembly]
  • Covert RFC3339 DateTime to Date in java [duplicate]
  • Javascript getting the value of an input in a table [duplicate]
  • Authorization Policies/Gates for Laravel 5.3 web app consuming own API w/ Passport
  • Migrating MOSS 2007 from SQL 2000 to SQL 2005 [closed]
  • Customize jQuery submenu positioning
  • I have a problem with the Fetch API using Internet Explorer 11
  • How to add multiple legend titles (columns) in ggplot
  • Read specific column from Parquet without using Spark
  • Oracle REF can't go through
  • date changes on export kendoGrid
  • Using django-multiupload within a ModelForm
  • Problems with special characters in php soap client
  • jQuery YQL SELECT FROM rss variable
  • Map Annotation Disclosure Indicator - Xamarin.Form
  • “proxy_pass” cannot have URI part in location given by regular expression
  • Homomorphic filtering in OpenCV
  • How do I change the names of buttons on a message box?
  • Disabling swipe gesture in Windows Phone 8.1 pivot control
  • How to put an object in the air?
  • Unity Resources.load() won't work with external dll
  • Sample deviceQuery cuda program
  • Android studio import problems. (Apktool)
  • Set initial vuetify v-select value
  • Building JavaFX 2.0 App on Mac, deploying on Windows
  • How to check if a database and tables exist in sql server in a vb .net project?
  • java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/SpringDispatcher-ser