These are chat archives for synrc/n2o

27th
Aug 2016
Andy
@m-2k
Aug 27 2016 12:13
что-то страшное происходит в lj и твиторе, кто-нибудь в курсе? :-)
Arun Babu
@arun-babu
Aug 27 2016 22:14
Hi, It would be nice to have some documentation on using n2o with SSL. Like how to specify certificates and keys ?
Matti Katila
@mudyc
Aug 27 2016 22:31
Compiling /deps/n2o/src/formatters/wf_convert.erl
Line 172: error {undefined_field,cx,formatter} in "/deps/n2o/src/formatters/wf_convert.erl"
format(Term) -> format(Term,?CTX#cx.formatter).
Namdak Tonpa
@5HT
Aug 27 2016 22:48
@mudyc mad up n2o
@arun-babu it has nothing to do with n2o, you can find this information in cowboy docs
@m-2k what do you mean? :-)
rusjava8
@rusjava8
Aug 27 2016 22:50
Та у него с телефона глючит :)
Matti Katila
@mudyc
Aug 27 2016 22:52
@5HT same error, i have 19.0
Namdak Tonpa
@5HT
Aug 27 2016 22:54
mad cle com ?
check that you have
-record(cx, { handlers, actions, req, module, lang, path, session, formatter=false, params, form, state=[] }).
inside wf.erl
you may have another tuple in compiled beam code
rusjava8
@rusjava8
Aug 27 2016 22:55
@mudyc I tried H2O at 19.0, all works
Matti Katila
@mudyc
Aug 27 2016 23:03
there's no such line, same here: https://github.com/synrc/n2o/blob/master/src/wf.erl
Namdak Tonpa
@5HT
Aug 27 2016 23:04
sorry wf.hrl
rr(wf), #cx{}.
Matti Katila
@mudyc
Aug 27 2016 23:08
1> rr(wf), #cx{}.

cx{handlers = undefined,actions = undefined,

req = undefined,module = undefined,lang = undefined,
path = undefined,session = undefined,params = undefined,
form = undefined,state = []}
Namdak Tonpa
@5HT
Aug 27 2016 23:09
you see there is no formatter field
show me your cat wf.hrl | grep formatter
> #cx{}.
#cx{handlers = undefined,actions = undefined,
    req = undefined,module = undefined,lang = undefined,
    path = undefined,session = undefined,formatter = false,
    params = undefined,form = undefined,state = []}
here it happened synrc/n2o@c6afbd3
Matti Katila
@mudyc
Aug 27 2016 23:11
cat deps/n2o/include/wf.hrl | grep formatter
-record(cx, { handlers, actions, req, module, lang, path, session, formatter=false, params, form, state=[] }).
Namdak Tonpa
@5HT
Aug 27 2016 23:11
you need to recompile all your beams that use #cx record
mad cle com do the job
but usually before mad cle com you do mad up
Matti Katila
@mudyc
Aug 27 2016 23:13
same error, i guess i have an issue with my osx upgrade since this used to work before that
Namdak Tonpa
@5HT
Aug 27 2016 23:14
are you sure you stopped the node and removed all beams?
Matti Katila
@mudyc
Aug 27 2016 23:17
embrassed there was old version of of the n2o and i guess the system used that for some reason
do you use brunch for asset handling, e.g. scss?
or other npm tools
Namdak Tonpa
@5HT
Aug 27 2016 23:21
I use casper.js for scripting and node.js for bert testing
this is it