Skip to content

fix: crash on rebar_compiler_format:colorize/2#2939

Merged
ferd merged 1 commit intoerlang:mainfrom
zhongwencool:main
Feb 26, 2025
Merged

fix: crash on rebar_compiler_format:colorize/2#2939
ferd merged 1 commit intoerlang:mainfrom
zhongwencool:main

Conversation

@zhongwencool
Copy link
Copy Markdown
Contributor

fix: rebar_compiler_format:colorize(<<>>, 1) crash.

rebar3 compile
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling ecron
===> Task failed: {{badmatch,[]},
                   [{rebar_compiler_format,colorize,2,
                        [{file,
                             "/private/tmp/rebar3-20240921-6522-hpmqce/rebar3-3.24.0/apps/rebar/src/rebar_compiler_format.erl"},
                         {line,74}]},
                    {rebar_compiler_format,format,5,
                        [{file,
                             "/private/tmp/rebar3-20240921-6522-hpmqce/rebar3-3.24.0/apps/rebar/src/rebar_compiler_format.erl"},
                         {line,25}]},
                    {rebar_base_compiler,'-format_errors/4-lc$^1/1-1-',4,
                        [{file,
                             "/private/tmp/rebar3-20240921-6522-hpmqce/rebar3-3.24.0/apps/rebar/src/rebar_base_compiler.erl"},
                         {line,278}]},
                    {rebar_base_compiler,'-format_errors/4-lc$^0/1-0-',3,
                        [{file,
                             "/private/tmp/rebar3-20240921-6522-hpmqce/rebar3-3.24.0/apps/rebar/src/rebar_base_compiler.erl"},
                         {line,278}]},
                    {rebar_base_compiler,error_tuple,5,
                        [{file,
                             "/private/tmp/rebar3-20240921-6522-hpmqce/rebar3-3.24.0/apps/rebar/src/rebar_base_compiler.erl"},
                         {line,160}]},
                    {rebar_compiler,compile_worker,2,
                        [{file,
                             "/private/tmp/rebar3-20240921-6522-hpmqce/rebar3-3.24.0/apps/rebar/src/rebar_compiler.erl"},
                         {line,337}]},
                    {rebar_parallel,worker,3,
                        [{file,
                             "/private/tmp/rebar3-20240921-6522-hpmqce/rebar3-3.24.0/apps/rebar/src/rebar_parallel.erl"},
                         {line,260}]}]}

@ferd ferd merged commit 942875e into erlang:main Feb 26, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants