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

no function clause matching lists:flatten #311

Closed
7stud opened this issue Aug 1, 2018 · 5 comments
Closed

no function clause matching lists:flatten #311

7stud opened this issue Aug 1, 2018 · 5 comments

Comments

@7stud
Copy link

7stud commented Aug 1, 2018

OSX 10.13.4

~$ which erl
/usr/local/bin/erl
~$ erl
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.4  (abort with ^G)
1> 
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
^C
~$ cd n2o/samples/
~/n2o/samples$ ./mad deps compile plan repl
==> dependency: "git://github.com/uwiger/gproc" tag: {tag,"0.6.1"}
==> dependency: "git://github.com/synrc/rest" tag: {tag,"2.9"}
==> dependency: "git://github.com/evanmiller/erlydtl" tag: {tag,"0.8.0"}
==> dependency: "git://github.com/synrc/nitro" tag: {tag,"2.4"}
==> dependency: "git://github.com/synrc/mad" tag: {tag,"1.9"}
==> dependency: "git://github.com/synrc/sh" tag: {tag,"1.9"}
==> dependency: "git://github.com/synrc/fs" tag: {tag,"1.9"}
==> dependency: "git://github.com/synrc/active" tag: {tag,"1.9"}
==> dependency: "git://github.com/synrc/avz" tag: {tag,"4.4"}
==> dependency: "git://github.com/synrc/n2o" tag: {tag,"4.4"}
==> dependency: "git://github.com/extend/cowboy" tag: {tag,"1.0.1"}
==> dependency: "git://github.com/ninenines/cowlib.git" tag: "1.0.0"
==> dependency: "git://github.com/ninenines/ranch.git" tag: "1.0.0"
==> dependency: "git://github.com/synrc/kvs" tag: {tag,"3.9.1"}
==> dependency: "git://github.com/tim/erlang-oauth" tag: {tag,"v1.6.0"}
==> dependency: "git://github.com/sile/jsone.git" tag: {tag,"v0.3.3"}
==> "gproc"
==> "rest"
==> "erlydtl"
==> "nitro"
==> "mad"
==> "sh"
==> "fs"
==> "active"
==> "avz"
==> "n2o"
==> "cowboy"
==> "cowlib"
==> "ranch"
==> "kvs"
==> "oauth"
==> "jsone"
==> "/Users/7stud/n2o/samples"
==> "/Users/7stud/n2o/samples/apps"
==> "/Users/7stud/n2o/samples/apps/review"
Compiling /apps/review/src/users.erl

=ERROR REPORT==== 1-Aug-2018::10:59:21 ===
beam/beam_load.c(1161): Error loading module rest:
  mandatory chunk of type 'Atom' not found



=ERROR REPORT==== 1-Aug-2018::10:59:21 ===
Loading of /Users/7stud/Downloads/ejabberd/ebin/rest.beam failed: badfile
Line none: error {undef_parse_transform,rest} in "/apps/review/src/users.erl"
ERROR: "/Users/7stud/n2o/samples/apps/review"
escript: exception error: no function clause matching lists:flatten({return,
                                                            {return,
                                                             [{error,
                                                               "/Users/7stud/n2o/samples/apps/review"}]}}) (lists.erl, line 614)
  in function  mad:main/1 (/Users/5HT/depot/synrc/mad/src/mad.erl, line 17)
  in call from escript:run/2 (escript.erl, line 752)
  in call from escript:start/1 (escript.erl, line 276)
  in call from init:start_it/1 
  in call from init:start_em/1 

I've tried unsuccessfully to play around with ejabberd before, but I don't know why N20 is messing around with my ejabberd directory:

Loading of /Users/7stud/Downloads/ejabberd/ebin/rest.beam failed: badfile

@5HT
Copy link
Member

5HT commented Aug 1, 2018

For master branch we support only latest Erlang from brew.

@5HT 5HT closed this as completed Aug 1, 2018
@5HT
Copy link
Member

5HT commented Aug 1, 2018

The problem you encountered is due to bytecode incompatibility between Erlang version and this is happened because you're using precompiled ./mad binary. Theoretically n2o can be runned with 18 version (not less, due to using the modern application:get_env API). Please learn you some Erlang for the great good before spamming the Issue list or use Elixir 😈 We are very toxic! ☢️ ☠️ And don't provide Erlang consulting in Synrc repositories.

@synrc synrc deleted a comment from 7stud Aug 1, 2018
@7stud
Copy link
Author

7stud commented Aug 1, 2018

In the comments for the original issue I filed, you wrote:

We only support Erlang built from sources...

I built erlang 17 from source, yet I get that lists:flatten() error. You also said:

we don't support Erlang installed from package managers.

On Homebrew's webpage it says this:

Homebrew
The missing package manager for macOS

Nevertheless, now you say:

For master branch we support only latest Erlang from brew.

Do you not understand why someone would think you are complete jackass? Why don't you actually try to help people install N20 rather than belittling them?

@5HT
Copy link
Member

5HT commented Aug 1, 2018

First of all, if you want to get help in open source community please stop doing following:

  1. call maintainers jackass on public;
  2. create duplicating issues;
  3. use incorrect spelling of product name.

Also, take into account that we don't help people (for free). We just open sourced it. We don't see you as a person who deserves to write in N2O. I reported your rude language and content of deleted comment to Github. Have a nice day.

@5HT
Copy link
Member

5HT commented Aug 1, 2018

Also did you read the LICENSE?

Software may only be used for the great good and the true happiness of all sentient beings.

Could you prove that you are allowed to use the software?

Did you read the README?

Posting Issues on Github

Thank you for using N2O (you've made a wise choice) and your contributions to help make it better. Before posting an issue on Github, please contact us via the options listed below in the support section. Doing so will help us determine whether your issue is a suggested feature, refactor of existing code, bug, etc, that needs to be posted to GitHub for the contributing development community of N2O to incorporate. DO NOT post issues to GitHub related to misuses of N2O, all such issues will be closed.

Free Support

Channel #1 Stack Overflow: https://stackoverflow.com/questions/tagged/n2o
Channel #2 Erlang Mailing List: http://erlang.org/pipermail/erlang-questions/
Channel #3 Private E-Mail: maxim@synrc.com, doxtop@synrc.com

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

2 participants