4

I am seeing strange characters in the console output when using Nodeclipse. Any idea what might be causing this? I don't think it is an Eclipse encoding issue since most of the text is fine.

npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
jade@1.1.4 node_modules\jade
├── commander@2.1.0
├── character-parser@1.2.0

enter image description here

Paul Verest
  • 51,779
  • 39
  • 174
  • 288
theblang
  • 9,669
  • 9
  • 61
  • 116

4 Answers4

2

As noted in other answers, these are ANSI escape sequences. The ansi-econsole eclipse plugin displays these correctly, as noted in another question.

NPM output with ansi-econsole eclipse plugin

Express output with ansi-econsole eclipse plugin

Community
  • 1
  • 1
John McCarthy
  • 5,354
  • 2
  • 27
  • 40
1

It looks like it's printing an escape sequence for colored text, but Eclipse isn't handling it right. Most programs have an option to disable colored output for situations like this.

Ian Henry
  • 21,297
  • 4
  • 47
  • 60
1

It is a VT escape sequence all right.

But npm is showing colors only when the output stream is not a TTY. So it looks like a bug in eclipse/nodeclipse because stderr looks like a TTY when in fact it is not.

alex
  • 10,773
  • 2
  • 27
  • 41
1

Change workspace character encoding to UTF-8

Window -> Preferences -> General -> Workspace : Text file encoding

You should have read build-int Help, available with F1

or read it online https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.help/contents/configuration.md#configuration

Paul Verest
  • 51,779
  • 39
  • 174
  • 288
  • -1 This is not related to text file encoding, and pointing out help with `F1` is not very helpful. The link to nodeclipse's recommended configuration was interesting but not helpful in this instance because it didn't mention how to work with these ANSI escape sequences. – John McCarthy Mar 22 '14 at 02:59
  • That was Nodeclipse recommendation and yes there were no ANSI support in Eclipse, now ANSI Console plugin should be recommended http://www.nodeclipse.org/. – Paul Verest Mar 24 '14 at 02:10