by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jeffrey Hann
    @obihann
    @klokane I'll do that now, yesterday I checked out master directly from the apiary repo (not my fork) and it would not work
    I did a bisect and found when things went wrong
    I'm not framiliar with the -i or -j flags, what do they do?
    Undefined symbols for architecture x86_64:
      "refract::ArrayElement* drafter::CreateArrayElement<std::string>(std::string const&, bool)", referenced from:
          drafter::AnnotationToRefract(snowcrash::SourceAnnotation const&, bool) in libdrafter.a(RefractParseResult.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [out/Release/test-libdrafter] Error 1
    make: *** [test-libdrafter] Error 2
    klokane
    @klokane
    make -j allows "parallel compilation"
    configure -i add integraton tests
    Jeffrey Hann
    @obihann
    ahhh
    klokane
    @klokane
    Hmm it looks there is splited template function declaration and definition.
    Jeffrey Hann
    @obihann
    if it helps at all apiaryio/drafter@7613980 is the commit that my bisect told me was the first bad commit
    klokane
    @klokane
    this line
    template <> refract::ArrayElement* CreateArrayElement(const std::string& content, bool rFull);
    It seem there is not correctly created instance of function template while compiled
    Jeffrey Hann
    @obihann
    Undefined symbols for architecture x86_64:
      "refract::ArrayElement* drafter::CreateArrayElement<std::string>(std::string const&, bool)", referenced from:
          drafter::MetadataToRefract(drafter::NodeInfo<std::pair<std::string, std::string> > const&) in libdrafter.a(RefractAPI.o)
          drafter::CategoryToRefract(drafter::NodeInfo<snowcrash::Element> const&) in libdrafter.a(RefractAPI.o)
          drafter::BlueprintToRefract(drafter::NodeInfo<snowcrash::Blueprint> const&) in libdrafter.a(RefractAPI.o)
    ld: symbol(s) not found for architecture x86_64
    just so you can see where I put the line of code
    klokane
    @klokane
    Yes it is it! :)
    Jeffrey Hann
    @obihann
    namespace drafter {
    
        template <typename T>
        refract::ArrayElement* CreateArrayElement(const T& content, bool rFull = false);
        template <> refract::ArrayElement* CreateArrayElement(const std::string& content, bool rFull);
    
        void RegisterNamedTypes(const snowcrash::Elements& elements);
    
        refract::IElement* DataStructureToRefract(const NodeInfo<snowcrash::DataStructure>& dataStructure, bool expand = false);
        refract::IElement* BlueprintToRefract(const NodeInfo<snowcrash::Blueprint>& blueprint);
    }
    klokane
    @klokane
    Ok will make patch
    Jeffrey Hann
    @obihann
    awesome!
    klokane
    @klokane
    @obihann fixed apiaryio/drafter#155 can you please check with clear master
    Jeffrey Hann
    @obihann
    will do
    klokane
    @klokane
    thx
    Jeffrey Hann
    @obihann
    it works!!! :thumbsup:
    gonna rebase master to my branch and then I should be back in business
    Jeffrey Hann
    @obihann
    well my branch is still not working however thats on my end so if necessary I'll just create a new branch / fork
    klokane
    @klokane
    thanks for check
    Jeffrey Hann
    @obihann
    Does this look familiar to you?
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./build V=1 libdrafter
    make[1]: Nothing to be done for `libdrafter'.
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ./build V=1 test-libdrafter
      c++ '-DBUILDING_SNOWCRASH=1' '-D_DARWIN_USE_64_BIT_INODE=1' -I../src -I../test -I../test/vendor/Catch/include -I../test/vendor/dtl/dtl -I../ext/snowcrash/src -I../ext/snowcrash/ext/markdown-parser/src -I../ext/snowcrash/ext/markdown-parser/ext/sundown/src -I../ext/sos/src  -Os -gdwarf-2 -mmacosx-version-min=10.5 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -fno-threadsafe-statics -fno-strict-aliasing -MMD -MF out/Release/.deps/out/Release/obj.target/test-libdrafter/test/test-drafter.o.d.raw  -c -o out/Release/obj.target/test-libdrafter/test/test-drafter.o ../test/test-drafter.cc
    In file included from ../test/test-drafter.cc:10:
    ../test/draftertest.h:5:10: fatal error: 'dtl.hpp' file not found
    #include "dtl.hpp"
    klokane
    @klokane
    you need tu checkout submodules
    there is new one it makes "diffing" on test output
    Jeffrey Hann
    @obihann
    thanks
    Jeffrey Hann
    @obihann
    sigh, I can build from make, and make test passes on my branch, and my fork of master, but xcode, not so much :thumbsdown:
    klokane
    @klokane
    what does it mean exactly? :)
    Jeffrey Hann
    @obihann
    ld: warning: directory not found for option '-L/Users/jhann/Library/Developer/Xcode/DerivedData/drafter-gsbusumgxawcfndzeqzwyaefkhkh/Build/Products/Debug'
    Undefined symbols for architecture x86_64:
      "drafter::SourceMapToRefract(mdp::RangeSet<mdp::Range> const&)", referenced from:
          void drafter::AttachSourceMap<drafter::NodeInfo<bool> >(refract::IElement*, drafter::NodeInfo<bool> const&) in liblibdrafter.a(RefractDataStructure.o)
          void drafter::AttachSourceMap<drafter::NodeInfo<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >(refract::IElement*, drafter::NodeInfo<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in liblibdrafter.a(RefractDataStructure.o)
          void drafter::AttachSourceMap<drafter::NodeInfo<double> >(refract::IElement*, drafter::NodeInfo<double> const&) in liblibdrafter.a(RefractDataStructure.o)
          void drafter::AttachSourceMap<drafter::NodeInfo<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >(refract::IElement*, drafter::NodeInfo<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in liblibdrafter.a(RefractAPI.o)
          void drafter::AttachSourceMap<drafter::NodeInfo<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >(refract::IElement*, drafter::NodeInfo<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) in liblibdrafter.a(RefractAPI.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    But that only occurs in xcode, from command line using make, its great
    klokane
    @klokane
    It seems there is missing file src/RefractSourceMap.cc in Xcode project file
    But do not know how to do it, maybe @pksunkara can help
    Jeffrey Hann
    @obihann
    ahh, thats it
    Pavan Kumar Sunkara
    @pksunkara
    @obihann I said the same thing yesterday to you in this same channel. I also told that I have a fix on the way.
    Jeffrey Hann
    @obihann
    I'm aware of that thank you, but I had to get things up and running asap.
    Sean
    @swreeser
    hey there new to apib how's everybody doing?
    Z
    @zdne
    Hey @swreeser welcome to API Blueprint! What is up? Let us know should you have any questions or comments!
    Z
    @zdne
    /all We are abandoning Gitter in the favor of Slack for the realtime API Blueprint communication. Please visit http://apiblueprint-slack.herokuapp.com/ to sign up. I would like to thank you being awesome part of API Blueprint community and I am looking forward to seeing you again at the API Blueprint Slack #blueprint channel! Thanks!
    Jeffrey Hann
    @obihann
    Great news!
    Serhii Chaplia
    @iwex
    Hello
    Is there someone alive?
    klokane
    @klokane
    @iwex discussion moved to slack see message above
    Serhii Chaplia
    @iwex
    @klokane thanks
    tpodolak
    @tpodolak
    hi guys, do you know any tools to convert Json Schema to MSON ?
    Karega McCoy
    @karega
    Hello