[jbosstools-issues] [JBoss JIRA] (JBIDE-21869) Encoding issue in when streaming Build Logs to the console

Andy Goldstein (JIRA) issues at jboss.org
Wed Mar 16 09:24:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-21869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177797#comment-13177797 ] 

Andy Goldstein commented on JBIDE-21869:
----------------------------------------

I don't think this is an encoding issue per se. IIRC, npm prints out ANSI escape codes to change the colors of its output. You would see similar results if you ran npm by hand and piped it to less without the -R flag. Maybe you can either interpret the escape codes or strip them out?

> Encoding issue in when streaming Build Logs to the console
> ----------------------------------------------------------
>
>                 Key: JBIDE-21869
>                 URL: https://issues.jboss.org/browse/JBIDE-21869
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.1.CR1
>            Reporter: Fred Bricon
>            Assignee: Jeff Cantrill
>
> Create a new nodejs app, when a build is running, in the OpenShift Explorer, right click on the build and select the Build Log... menu.
> It'll start to spew weird characters eventually :
> {noformat}
> I0315 10:38:28.749220       1 docker.go:286] Image "registry.access.redhat.com/openshift3/nodejs-010-rhel7:latest" not available locally, pulling ...
> I0315 10:39:16.195418       1 source.go:197] Downloading "https://github.com/openshift/nodejs-ex.git" ...
> I0315 10:39:19.670243       1 install.go:236] Using "assemble" installed from "image:///usr/libexec/s2i/assemble"
> I0315 10:39:19.670318       1 install.go:236] Using "run" installed from "image:///usr/libexec/s2i/run"
> I0315 10:39:19.670356       1 install.go:236] Using "save-artifacts" installed from "image:///usr/libexec/s2i/save-artifacts"
> ---> Installing application source
> ---> Building your Node application from source
> E0315 10:39:21.193046       1 util.go:91] npm info it worked if it ends with ok
> E0315 10:39:21.193216       1 util.go:91] npm info using npm at 2.14.13
> E0315 10:39:21.193229       1 util.go:91] npm info using node at v0.10.40
> ...
> E0315 10:39:27.511826       1 util.go:91] npm info prepublish nodejs-ex at 0.0.1
> ejs at 2.4.1 node_modules/ejs
> express at 4.13.4 node_modules/express
> ��������� escape-html at 1.0.3
> ��������� array-flatten at 1.1.1
> ��������� utils-merge at 1.0.0
> ��������� cookie-signature at 1.0.6
> ��������� merge-descriptors at 1.0.1
> ��������� fresh at 0.3.0
> ��������� methods at 1.1.2
> ��������� range-parser at 1.0.3
> ��������� vary at 1.0.1
> ��������� path-to-regexp at 0.1.7
> ��������� cookie at 0.1.5
> ��������� parseurl at 1.3.1
> ��������� content-type at 1.0.1
> ��������� etag at 1.7.0
> ��������� content-disposition at 0.5.1
> ��������� serve-static at 1.10.2
> ��������� depd at 1.1.0
> ��������� qs at 4.0.0
> ��������� finalhandler at 0.4.1 (unpipe at 1.0.0)
> ��������� on-finished at 2.3.0 (ee-first at 1.1.1)
> ��������� debug at 2.2.0 (ms at 0.7.1)
> ��������� proxy-addr at 1.0.10 (forwarded at 0.1.0, ipaddr.js at 1.0.5)
> ��������� send at 0.13.1 (destroy at 1.0.4, statuses at 1.2.1, ms at 0.7.1, mime at 1.3.4, http-errors at 1.3.1)
> ��������� type-is at 1.6.12 (media-typer at 0.3.0, mime-types at 2.1.10)
> ��������� accepts at 1.2.13 (negotiator at 0.5.3, mime-types at 2.1.10)
> mongodb at 2.1.8 node_modules/mongodb
> ��������� es6-promise at 3.0.2
> ��������� mongodb-core at 1.3.5 (bson at 0.4.22, require_optional at 1.0.0)
> ��������� readable-stream at 1.0.31 (inherits at 2.0.1, isarray at 0.0.1, string_decoder at 0.10.31, core-util-is at 1.0.2)
> E0315 10:39:27.684535       1 util.go:91] npm info ok 
> I0315 10:39:42.202321       1 sti.go:245] Using provided push secret for pushing 172.30.183.94:5000/node/nodejs-mongodb-example:latest image
> I0315 10:39:42.202361       1 sti.go:249] Pushing 172.30.183.94:5000/node/nodejs-mongodb-example:latest image ...
> {noformat}
> I'm running on OSX



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list