These are chat archives for synrc/n2o

18th
Jul 2015
Stefan Schmiedl
@swsch
Jul 18 2015 16:57
There is a problem with Erlang 18 and the sample application:
./mad deps compile
...
Compiling /deps/kvs/src/kvs.erl
/home/stefan/erlang/projects/n2o/samples/deps/kvs/include/api.hrl:32: type tuple(_,_) undefined
Stefan Schmiedl
@swsch
Jul 18 2015 17:21
rebar.config specifies 2.1
Andy
@m-2k
Jul 18 2015 17:22
wat
Stefan Schmiedl
@swsch
Jul 18 2015 17:22
line 32 there: -spec containers() -> list(tuple(atom(),list(atom()))).
hmm.... the rebar.config I see on github is not the rebar.config in my fresh clone ...
Andy
@m-2k
Jul 18 2015 17:24
use n2o with tag 2.7
Andy
@m-2k
Jul 18 2015 17:29
f#ck
really, kvs
Stefan Schmiedl
@swsch
Jul 18 2015 17:30
I have a history of stumbling over such things on my first attempt at using something :-)
Andy
@m-2k
Jul 18 2015 17:32
how u build erlang and what u os?
Stefan Schmiedl
@swsch
Jul 18 2015 17:33
erlang 18.0 from standard gentoo package on x86_64 gentoo linux
comment out the line and check out again
Andy
@m-2k
Jul 18 2015 18:02
may be it unsuported type of -spec declaration in r18
Stefan Schmiedl
@swsch
Jul 18 2015 18:03
gentoo erlang is built from source upon installation. And I think I have seen the tuple problem somewhere else, too.
Andy
@m-2k
Jul 18 2015 18:08
comment line and try again or modify her as
-spec containers() -> list({atom(),list(atom())}).
Stefan Schmiedl
@swsch
Jul 18 2015 18:09
yep, that compiles.
Andy
@m-2k
Jul 18 2015 18:09
1> kvs:containers().
[{acl,[id,top,count]},
 {entry,[id,version,container,feed_id,prev,next,feeds,guard,
         etc,entry_id,from,to,title,description,created,hidden,
         access,shared,starred,deleted,media,type]},
 {log,[id,top,count,name,acc]},
 {comment,[id,version,container,feed_id,prev,next,feeds,
           guard,etc,comment_id,entry_id,content,from,created,media,
           parent]},
 {feed,[id,top,count,aclver]}]
@swsch comment out or corrected?
Stefan Schmiedl
@swsch
Jul 18 2015 18:12
I don't have the log container, the others look the same.
corrected as in your code snippet
Andy
@m-2k
Jul 18 2015 18:15
synrc/kvs#22
Stefan Schmiedl
@swsch
Jul 18 2015 18:16
yay, I feel useful :-)
Andy
@m-2k
Jul 18 2015 18:16
yeep :smile:
Stefan Schmiedl
@swsch
Jul 18 2015 18:23
do you have a "n2o for dummies" somewhere? Or will I have to write my own?
I have read https://synrc.com/apps/n2o/, but I have the feeling that it will be more useful, once I have the basic things down.
Stefan Schmiedl
@swsch
Jul 18 2015 18:31
thanks.