Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
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

@oubiwann

Description

@oubiwann

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}]}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions