Giter Site home page Giter Site logo

Comments (20)

zinid avatar zinid commented on May 23, 2024

Gosh, seems like they changed erl_types API again in 19.3...
I will take a look ASAP.

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

Hi.
What progress for this ?
How i can help you to fix this bug ?

from xmpp.

zinid avatar zinid commented on May 23, 2024

I'm a bit busy on another tasks.
If you absolutely need to compile the spec, you can install 19.2 and compile it there. The generated code will work in 19.3 anyway.

from xmpp.

zhangcunxiang avatar zhangcunxiang commented on May 23, 2024

do you have spare time to this task ? I also have the bug with erlang 19.3,wish you take some time to fix the bug .

from xmpp.

weiss avatar weiss commented on May 23, 2024

Compiling Erlang 19.2 is easy:

cd /tmp
curl -LO http://erlang.org/download/otp_src_19.2.tar.gz
tar -xzf otp_src_19.2.tar.gz
cd otp_src_19.2
./configure --without-termcap --disable-hipe --prefix=/opt/erlang-19.2
make
sudo make install
export PATH=/opt/erlang-19.2/bin ;# Before compiling the xmpp spec.

So I don't think this issue is urgent.

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

See my comment: #9 (comment)
to automate building of extensions for xmpp

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

I tried compile specs again for erlang 19.3.5

I made:

$ git clone https://github.com/processone/xmpp.git
$ make
$ make spec

And got this:

erl -noinput +B -pa ebin -pa deps/*/ebin -eval \
'case fxml_gen:compile("specs/xmpp_codec.spec", [{add_type_specs, xmpp_element}, {erl_dir, "src"}, {hrl_dir, "include"}]) of ok -> halt(0); _ -> halt(1) end.'
failed to compile "specs/xmpp_codec.spec": {'EXIT',
                                            {{badmap,
                                              {dict,1,16,16,8,80,48,
                                               {[],[],[],[],[],[],[],[],[],[],
                                                [],[],[],[],[],[]},
                                               {{[],[],[],[],[],[],[],[],[],
                                                 [[{opaque,xmlel,[]}|
                                                   {{fxml,1,2,[]},type}]],
                                                 [],[],[],[],[],[]}}}},
                                             [{maps,filter,
                                               [#Fun<erl_types.11.61440706>,
                                                {dict,1,16,16,8,80,48,
                                                 {[],[],[],[],[],[],[],[],[],
                                                  [],[],[],[],[],[],[]},
                                                 {{[],[],[],[],[],[],[],[],[],
                                                   [[{opaque,xmlel,[]}|
                                                     {{fxml,1,2,[]},type}]],
                                                   [],[],[],[],[],[]}}}],
                                               [{file,"maps.erl"},{line,205}]},
                                              {erl_types,
                                               t_opaque_from_records,1,
                                               [{file,"erl_types.erl"},
                                                {line,770}]},
                                              {fxml_gen,t_remote,2,
                                               [{file,"src/fxml_gen.erl"},
                                                {line,2827}]},
                                              {fxml_gen,get_label_type,5,
                                               [{file,"src/fxml_gen.erl"},
                                                {line,2275}]},
                                              {fxml_gen,
                                               '-get_types/3-fun-0-',5,
                                               [{file,"src/fxml_gen.erl"},
                                                {line,2243}]},
                                              {lists,map,2,
                                               [{file,"lists.erl"},
                                                {line,1239}]},
                                              {fxml_gen,
                                               '-get_types/3-fun-1-',5,
                                               [{file,"src/fxml_gen.erl"},
                                                {line,2241}]},
                                              {lists,foldl,3,
                                               [{file,"lists.erl"},
                                                {line,1263}]}]}}

So isse still not fixed for master.
So pls reopen it.

Erlang is:

$erl
Erlang/OTP 19 [erts-8.3.5] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

from xmpp.

zinid avatar zinid commented on May 23, 2024

Works for me on 19.3

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

So how i can localize problem ? any ideas ?

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

Could you use same version of Erlang as me ?

from xmpp.

zinid avatar zinid commented on May 23, 2024

Install newer Erlang?
Also, I'm not sure why you constantly recompile the spec: the generated code wouldn't be different.

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

i have my own custom tags so i forced to recompile xmpp every time.

from xmpp.

zinid avatar zinid commented on May 23, 2024

i have my own custom tags so i forced to recompile xmpp every time.

What for? The result will be the same.

from xmpp.

zinid avatar zinid commented on May 23, 2024

It's supposed that you compile your spec only once, then forget about it for several years or so.

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

you uses standard tags from XMPP, but i have my own tags. So i need recompile code every time when i adds new tags for specification.

by the way it works for
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]

from xmpp.

zinid avatar zinid commented on May 23, 2024

So compile it on Erlang 20 and use the generated code on 19.3, what's the problem?

from xmpp.

zinid avatar zinid commented on May 23, 2024

I'm really not going to install all possible Erlang versions to check every minor release (the API breaks even between minor releases) any time soon, I have more important tasks.

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

I used esl-erlang installation named as 19.3.6, don't know why it showed as 19.3.5.
Could you check it with this version of erlang ?

from xmpp.

zinid avatar zinid commented on May 23, 2024

We do not recommend using Erlang from Erlang Solutions, there are already 2 other issues detected when using it.

from xmpp.

loguntsov avatar loguntsov commented on May 23, 2024

Could you point me on some articles for this ? what issues detected ?

from xmpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.