Skip to content

Compilation error: compilation of katana_code plugin failing #6

@louishawkins

Description

@louishawkins

This project does not compile sucessfully.

Steps to reproduce:

  1. Clone repository
  2. Ensure main branch is checked out
  3. Run make

Output:

(base) ➜  els_dap git:(main) make
Building escript...
===> Fetching erlfmt v1.7.0
===> Analyzing applications...
===> Compiling erlfmt
===> Fetching rebar3_lint v1.0.2
===> Fetching elvis_core v1.3.2
===> Fetching katana_code v1.1.2
===> Fetching zipper v1.0.1
===> Analyzing applications...
===> Compiling zipper
===> Compiling katana_code
===> Compiling _build/default/plugins/katana_code/src/ktn_code.erl failed
    ┌─ _build/default/plugins/katana_code/src/ktn_code.erl:
    │
 52 │        | undef | ifdef | ifndef | else | endif | elif | error | warning
    │                                   ╰── syntax error before: 'else'


    ┌─ _build/default/plugins/katana_code/src/ktn_code.erl:
    │
 23 │  -export_type([tree_node/0, tree_node_type/0]).
    │   ╰── type tree_node_type() undefined

    ┌─ _build/default/plugins/katana_code/src/ktn_code.erl:
    │
 62 │      #{type => tree_node_type(),
    │                ╰── type tree_node_type() undefined


===> Errors loading plugin {rebar3_lint,"1.0.2"}. Run rebar3 with DEBUG=1 set to see errors.
===> Analyzing applications...
===> Compiling zipper
===> Compiling katana_code
===> Compiling _build/default/plugins/katana_code/src/ktn_dodger.erl failed
     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 582 │  quickscan_form([{'-', _L}, {atom, La, else} | _Ts]) ->
     │                                        ╰── syntax error before: 'else'

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 747 │  scan_form([{'-', _L}, {atom, La, else} | Ts], Opt) ->
     │                                   ╰── syntax error before: 'else'


     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 564 │      filter_form(parse_tokens(quickscan_form(Ts))).
     │                               ╰── function quickscan_form/1 undefined, did you mean quickscan_macros/1?

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 696 │      case scan_form(Ts0, Opt) of
     │           ╰── function scan_form/2 undefined, did you mean scan_macros/2?


     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 599 │  kill_form(L) ->
     │  ╰── Warning: function kill_form/1 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 603 │  quickscan_macros(Ts) ->
     │  ╰── Warning: function quickscan_macros/1 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 606 │  quickscan_macros([{'?',_}, {Type, _, A} | Ts], [{string, L, S} | As])
     │  ╰── Warning: function quickscan_macros/2 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 634 │  quickscan_macros_1({_Type, _, A}, [{string, L, S} | Ts], As) ->
     │  ╰── Warning: function quickscan_macros_1/3 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 642 │  quick_macro_atom(A) ->
     │  ╰── Warning: function quick_macro_atom/1 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 645 │  quick_macro_string(A) ->
     │  ╰── Warning: function quick_macro_string/1 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 651 │  skip_macro_args([{'(',_}=T | Ts]) ->
     │  ╰── Warning: function skip_macro_args/1 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 656 │  skip_macro_args([{'(',_}=T | Ts], Es, As) ->
     │  ╰── Warning: function skip_macro_args/3 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 776 │  build_info_string(Prefix, Ts0) ->
     │  ╰── Warning: function build_info_string/2 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 781 │  scan_macros(Ts, Opt) ->
     │  ╰── Warning: function scan_macros/2 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 784 │  scan_macros([{'?', _}=M, {Type, _, _}=N | Ts], [{string, L, _}=S | As],
     │  ╰── Warning: function scan_macros/3 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 823 │  macro(L, {Type, _, A}, Rest, As, Opt) ->
     │  ╰── Warning: function macro/5 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 826 │  macro_call([{'(',_}, {')',_}], L, {_, Ln, _}=N, Rest, As, Opt) ->
     │  ╰── Warning: function macro_call/6 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 841 │  macro_atom(atom, A) ->
     │  ╰── Warning: function macro_atom/2 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 849 │  parentheses([{string, _, _} | _]) ->
     │  ╰── Warning: function parentheses/1 is unused

     ┌─ _build/default/plugins/katana_code/src/ktn_dodger.erl:
     │
 855 │  scan_macros_1(Args, [{string, L, _} | _]=Rest, As,
     │  ╰── Warning: function scan_macros_1/4 is unused


===> Errors loading plugin {rebar3_lint,"1.0.2"}. Run rebar3 with DEBUG=1 set to see errors.
===> Verifying dependencies...
===> Fetching getopt v1.0.1
===> Fetching jsx v3.0.0
===> Analyzing applications...
===> Compiling getopt
===> Compiling _build/default/plugins/katana_code/src/ktn_code.erl failed
    ┌─ _build/default/plugins/katana_code/src/ktn_code.erl:
    │
 52 │        | undef | ifdef | ifndef | else | endif | elif | error | warning
    │                                   ╰── syntax error before: 'else'


    ┌─ _build/default/plugins/katana_code/src/ktn_code.erl:
    │
 23 │  -export_type([tree_node/0, tree_node_type/0]).
    │   ╰── type tree_node_type() undefined

    ┌─ _build/default/plugins/katana_code/src/ktn_code.erl:
    │
 62 │      #{type => tree_node_type(),
    │                ╰── type tree_node_type() undefined


make: *** [all] Error 1

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