Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Can't upgrade Erlang 17.5-based apps to use latest LFE #4

Open
oubiwann opened this issue May 17, 2019 · 1 comment
Open

Can't upgrade Erlang 17.5-based apps to use latest LFE #4

oubiwann opened this issue May 17, 2019 · 1 comment

Comments

@oubiwann
Copy link

Seems there's a regression from LFE v1.2 to v1.3 such that one or more YAWS records in yaws/include/yaws_api.hrl can't be compiled by LFE. The rebar3 stack trace I get when trying to run the tests is the following:

===> Uncaught error: {case_clause,
                             {error,
                              {undef,
                               [{erl_internal,is_type,[frag_type,0],[]},
                                {lfe_lint,check_type_name,3,
                                 [{file,
                                   "/Users/dmcgreggor/lab/lfe/lfest/_build/test/plugins/lfe/src/lfe_lint.erl"},
                                  {line,357}]},
                                {lfe_lint,check_type_def,4,
                                 [{file,
                                   "/Users/dmcgreggor/lab/lfe/lfest/_build/test/plugins/lfe/src/lfe_lint.erl"},
                                  {line,339}]},
                                {lfe_lint,collect_form,2,
                                 [{file,
                                   "/Users/dmcgreggor/lab/lfe/lfest/_build/test/plugins/lfe/src/lfe_lint.erl"},
                                  {line,208}]},
                                {lists,foldl,3,
                                 [{file,"lists.erl"},{line,1261}]},
                                {lfe_lint,collect_module,2,
                                 [{file,
                                   "/Users/dmcgreggor/lab/lfe/lfest/_build/test/plugins/lfe/src/lfe_lint.erl"},
                                  {line,192}]},
                                {lfe_lint,check_module,2,
                                 [{file,
                                   "/Users/dmcgreggor/lab/lfe/lfest/_build/test/plugins/lfe/src/lfe_lint.erl"},
                                  {line,176}]},
                                {lfe_lint,module,2,
                                 [{file,
                                   "/Users/dmcgreggor/lab/lfe/lfest/_build/test/plugins/lfe/src/lfe_lint.erl"},
                                  {line,163}]}]}}}
===> Stack trace to the error location:
[{lr3_comp,compile,3,
           [{file,"/Users/dmcgreggor/lab/lfe/lfest/_build/default/plugins/lfe-compile/src/lr3_comp.erl"},
            {line,27}]},
 {rebar_base_compiler,compile_each,3,
                      [{file,"/opt/rebar3-3.10.0/src/rebar_base_compiler.erl"},
                       {line,185}]},
 {lr3_comp,'-compile_normal_app/1-lc$^0/1-0-',4,
           [{file,"/Users/dmcgreggor/lab/lfe/lfest/_build/default/plugins/lfe-compile/src/lr3_comp.erl"},
            {line,65}]},
 {lr3_comp,compile_normal_app,1,
           [{file,"/Users/dmcgreggor/lab/lfe/lfest/_build/default/plugins/lfe-compile/src/lr3_comp.erl"},
            {line,65}]},
 {lr3_comp,'-compile_normal_apps/1-lc$^0/1-0-',1,
           [{file,"/Users/dmcgreggor/lab/lfe/lfest/_build/default/plugins/lfe-compile/src/lr3_comp.erl"},
            {line,47}]},
 {lr3_comp,compile_normal_apps,1,
           [{file,"/Users/dmcgreggor/lab/lfe/lfest/_build/default/plugins/lfe-compile/src/lr3_comp.erl"},
            {line,47}]},
 {rebar_core,do,2,[{file,"/opt/rebar3-3.10.0/src/rebar_core.erl"},{line,154}]},
 {rebar_hooks,run_provider_hooks_,6,
              [{file,"/opt/rebar3-3.10.0/src/rebar_hooks.erl"},{line,48}]}]
@oubiwann oubiwann changed the title Can't upgrade to latest LFE Can't upgrade Erlang 17.5-based apps to use latest LFE May 18, 2019
@oubiwann
Copy link
Author

An LFE ticket has been filed here:

For a workaround, we can just disable the 17.5 build in the TravisCI config.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant