ErlShell icon indicating copy to clipboard operation
ErlShell copied to clipboard

After installation Elixir generated .app files with ANSI escape sequences

Open marcelog opened this issue 8 years ago • 3 comments

Generated corrupted .app files but really pretty ones :)

marcelog avatar Dec 13 '17 11:12 marcelog

Can you explain more about this issue?

the-prksh avatar Dec 13 '17 14:12 the-prksh

Sure!

Before doing make install:

$ mix compile
Compiling 6 files (.ex)
Generated eximap app

$ more ./_build/dev/lib/eximap/ebin/eximap.app
{application,eximap,
             [{applications,[kernel,stdlib,elixir,logger]},
              {description,"eximap"},
              {modules,['Elixir.Eximap','Elixir.Eximap.Application',
                        'Elixir.Eximap.Imap.Client',
                        'Elixir.Eximap.Imap.Request',
                        'Elixir.Eximap.Imap.Response','Elixir.Eximap.Socket']},
              {registered,[]},
              {vsn,"0.1.0"},
              {extra_applications,[logger]},
              {mod,{'Elixir.Eximap.Application',[]}}]}.

No issues there, the .app file is compiled perfectly. Then, after running make install:

$ mix compile
Compiling 6 files (.ex)
Generated eximap app

$ more ./_build/dev/lib/eximap/ebin/eximap.app
ESC[1;34m{ESC[0mESC[0;32mapplicationESC[0mESC[1;36m,ESC[0mESC[0;32meximapESC[0mESC[1;36m,ESC[0m
             ESC[0;33m[ESC[0mESC[1;34m{ESC[0mESC[0;32mapplicationsESC[0mESC[1;36m,ESC[0mESC[0;33m[ESC[0mESC[0;32mkernelESC[0mESC[1;36m,ESC[0m
ESC[0;32mstdlibESC[0mESC[1;36m,ESC[0mESC[0;32melixirESC[0mESC[1;36m,ESC[0mESC[0;32mloggerESC[0mESC[0;33m]ESC[0mESC[1;34m}ESC[0mESC[1;36m,ESC[0m

Note how the .app files is created with the ansi escape sequences inside.

marcelog avatar Dec 14 '17 13:12 marcelog

I don't have an idea about elixir. Have you tested in Erlang?

the-prksh avatar Dec 14 '17 13:12 the-prksh