Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work with Erlang OTP 26/27 #368

Open
Hygens opened this issue Feb 4, 2025 · 0 comments
Open

Not work with Erlang OTP 26/27 #368

Hygens opened this issue Feb 4, 2025 · 0 comments

Comments

@Hygens
Copy link

Hygens commented Feb 4, 2025

I have used mad to create and test one basic nitro app but have that:

[jose@jose-i512TH erlang_projs]$ erl
Erlang/OTP 26 [erts-14.2.5.6] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns]

Eshell V14.2.5.6 (press Ctrl+G to abort, type help(). for help)
1> 
BREAK: (a)bort (A)bort with dump (c)ontinue (p)roc info (i)nfo
       (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution
^C[jose@jose-i512TH erlang_projs]$ mad app nitro n2o_sample
Created: "n2o_sample/src/n2o_sample.app.src"
Created: "n2o_sample/priv/ssl/fullchain.pem"
Created: "n2o_sample/priv/templates/message.html"
Created: "n2o_sample/priv/static/index.htm"
Created: "n2o_sample/priv/ssl/privkey.pem"
Created: "n2o_sample/src/routes.erl"
Created: "n2o_sample/src/n2o_sample.erl"
Created: "n2o_sample/vm.args"
Created: "n2o_sample/src/index.erl"
Created: "n2o_sample/rebar.config"
Created: "n2o_sample/src/login.erl"
Created: "n2o_sample/priv/static/synrc.css"
Created: "n2o_sample/sys.config"
Created: "n2o_sample/priv/static/login.htm"
OK
[jose@jose-i512TH erlang_projs]$ cd n2o_sample/
[jose@jose-i512TH n2o_sample]$ mad clean deps compile release n2o_sample
OK
==> dependency: "git://github.com/voxoz/cowboy2" tag: []
^C
[jose@jose-i512TH n2o_sample]$ nano rebar.config 
[jose@jose-i512TH n2o_sample]$ mad clean deps compile release n2o_sample
OK
==> dependency: "https://github.com/voxoz/cowboy2" tag: []
==> dependency: "https://github.com/synrc/active" tag: []
==> dependency: "https://github.com/synrc/mad.git" tag: {tag,"master"}
==> dependency: "https://github.com/synrc/sh" tag: {branch,"master"}
==> dependency: "https://github.com/synrc/fs.git" tag: {tag,"master"}
==> dependency: "https://github.com/synrc/nitro" tag: []
==> dependency: "https://github.com/ostinelli/syn" tag: "1.6.3"
==> dependency: "https://github.com/synrc/n2o" tag: []
==> dependency: "https://github.com/enterprizing/rocksdb" tag: []
==> dependency: "https://github.com/synrc/kvs" tag: []
==> "cowboy"
==> "active"
==> "mad"
==> "sh"
cc -c  -g -Wall -fPIC -MMD  -I/home/linuxbrew/.linuxbrew/Cellar/erlang@26/26.2.5.7/lib/erlang/lib/erl_interface-5.5.1/include -I/home/linuxbrew/.linuxbrew/Cellar/erlang@26/26.2.5.7/lib/erlang/erts-14.2.5.6/include  /home/jose/erlang_projs/n2o_sample/deps/sh/c_src/fdlink.c -o /home/jose/erlang_projs/n2o_sample/deps/sh/c_src/fdlink.o
cc /home/jose/erlang_projs/n2o_sample/deps/sh/c_src/fdlink.o   -L/home/linuxbrew/.linuxbrew/Cellar/erlang@26/26.2.5.7/lib/erlang/lib/erl_interface-5.5.1/lib -lei -o priv/fdlink
Line {56,76}: warning {removed,{erlang,get_stacktrace,0},
                               "use the new try/catch syntax for retrieving the stack backtrace"} in "/deps/mad/src/mad_man.erl"
==> "fs"
Line {84,9}: warning {unused_var,'Path'} in "/deps/active/src/active.erl"
Line {94,18}: warning {unused_var,'Path'} in "/deps/active/src/active.erl"
Line {102,40}: warning {removed,{erlang,get_stacktrace,0},
                                "use the new try/catch syntax for retrieving the stack backtrace"} in "/deps/active/src/active.erl"
==> "nitro"
Line {54,48}: warning {unused_var,'Lang'} in "/deps/nitro/src/elements/combo/element_calendar.erl"
Line {55,30}: warning {unused_var,'SelectFn'} in "/deps/nitro/src/elements/combo/element_calendar.erl"
Line {55,52}: warning {unused_var,'DisDayFn'} in "/deps/nitro/src/elements/combo/element_calendar.erl"
Line {56,18}: warning {unused_var,'Pos'} in "/deps/nitro/src/elements/combo/element_calendar.erl"
Line {56,33}: warning {unused_var,'Repos'} in "/deps/nitro/src/elements/combo/element_calendar.erl"
Line {56,62}: warning {unused_var,'Calendar'} in "/deps/nitro/src/elements/combo/element_calendar.erl"
Line {19,107}: warning {unused_var,'Data'} in "/deps/nitro/src/elements/combo/element_comboLookup.erl"
Line {6,121}: warning {unused_var,'Values'} in "/deps/nitro/src/elements/combo/element_comboLookupText.erl"
Line {7,3}: warning {unused_var,'InputId'} in "/deps/nitro/src/elements/combo/element_comboLookupText.erl"
Line {7,13}: warning {ignored,{result,{erlang,element,2}}} in "/deps/nitro/src/elements/combo/element_comboLookupText.erl"
Line {10,3}: warning {unused_var,'InputId'} in "/deps/nitro/src/elements/combo/element_comboLookupVec.erl"
Line {10,13}: warning {ignored,{result,{erlang,element,2}}} in "/deps/nitro/src/elements/combo/element_comboLookupVec.erl"
Line {8,37}: warning {unused_var,'Style'} in "/deps/nitro/src/elements/combo/element_koatuu.erl"
Line {8,75}: warning {unused_var,'Module'} in "/deps/nitro/src/elements/combo/element_koatuu.erl"
Line {8,85}: warning {unused_var,'Data'} in "/deps/nitro/src/elements/combo/element_koatuu.erl"
Line {47,17}: warning {nomatch,{shadow,46}} in "/deps/nitro/src/elements/form/element_select.erl"
==> "syn"
==> "n2o"
==> "rocksdb"
==> "kvs"
==> "/home/jose/erlang_projs/n2o_sample"
==> "cowboy"
Line {26,59}: warning {unused_var,'Data'} in "/src/index.erl"
Line {29,7}: warning {unused_var,'Event'} in "/src/index.erl"
OK
OK
[jose@jose-i512TH n2o_sample]$ mad repl
Configuration: [{n2o,[{port,8001},
                      {app,n2o_sample},
                      {upload,"./priv/static/"},
                      {routes,routes},
                      {mq,n2o_syn},
                      {formatter,n2o_bert},
                      {protocols,[n2o_heart,n2o_nitro,n2o_ftp]},
                      {session,n2o_session},
                      {origin,<<"*">>},
                      {pickler,n2o_secret},
                      {event,pickle}]},
                {kvs,[{dba,kvs_mnesia},
                      {dba_st,kvs_stream},
                      {schema,[kvs,kvs_stream]}]}]
Applications:  [cowboy,crypto,ranch,kernel,stdlib,fs,inets,compiler,kvs,
                mnesia,n2o,nitro,asn1,syntax_tools,xmerl,public_key,syn,
                active,mad,rocksdb,sh,n2o_sample]
Application Load Error: {false,cowboy,[]}
Application Load Error: {false,ranch,[]}
Application Load Error: {false,fs,[]}
Application Load Error: {false,kvs,[]}
Application Load Error: {false,n2o,[]}
Application Load Error: {false,nitro,[]}
Application Load Error: {false,syn,[]}
Application Load Error: {false,active,[]}
Application Load Error: {false,mad,[]}
Application Load Error: {false,rocksdb,[]}
Application Load Error: {false,sh,[]}
Application Load Error: {false,n2o_sample,[]}

I'm on Manjaro Linux with kernel:

6.12.4-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon, 09 Dec 2024 11:58:37 +0000 x86_64 GNU/Linux

Mad version is:

MAD Manage Dependencies 7.1-10-gcae65ac
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

No branches or pull requests

1 participant