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

Problems getting hovercraft to compile against latest couchdb trunk #2

Open
grempe opened this issue Sep 21, 2009 · 4 comments
Open

Comments

@grempe
Copy link

grempe commented Sep 21, 2009

I am trying to compile hovercraft against CouchDB and hovercraft trunk at the following versions:

couchdb: 4ca4c10114de3a1c96906428c5285282af820b52
hovercraft: 34b4452

And I get the following errors. I am an Erlang n00b so be gentle. :-)

glenn@macbook-pro ~/src/git/couchdb[master*]$ erlc hovercraft/*erl && make dev && ERL_LIBS="hovercraft" utils/run -i
hovercraft/hovercraft.erl:261: field attachments undefined in record doc
hovercraft/hovercraft.erl:262: variable 'Attachments' is unbound
hovercraft/hovercraft.erl:192: Warning: variable 'Group' is unused
hovercraft/hovercraft.erl:208: Warning: variable 'Group' is unused
hovercraft/hovercraft.erl:234: Warning: variable 'DocId' is unused
hovercraft/hovercraft.erl:239: Warning: variable 'Acc' is unused
hovercraft/hovercraft.erl:248: Warning: variable 'Etag' is unused
hovercraft/hovercraft.erl:248: Warning: variable 'Req' is unused
hovercraft/hovercraft.erl:261: Warning: variable 'Doc' is unused
hovercraft/hovercraft.erl:347: Warning: variable 'DbInfo' is unused
@sendtopms
Copy link

attachments is renamed as atts in couch_db.hrl but after changing to atts it compiles but not working. Do you have any plan to update to reflect CouchDB 0.11

@sendtopms
Copy link

I am able to run hovercraft after changing attachments to atts in hovercraft.erl. Please follow the instruction in readme in hovercraft github

@sendtopms
Copy link

I ran hovercraft after a change from attachements to atts, following cases are working
1.open_doc

  1. save_doc

  2. open_db

    But query_view is not working, here is the trace info,

    49> hovercraft:query_view(<<"test">>, <<"d1">>, <<"v1">>).
    ** exception error: no function clause matching
    couch_httpd_view:'-make_view_fold_fun/6-fun-0-'({{[<<"item1">>,
    <<"shirt">>],
    <<"1">>},null},
    {[],[]},
    {10000000000,
    0,
    undefined,
    []},
    3,
    {db,
    <0.6164.0>,

                                                                 <0.6165.0>,
    
                                                                 nil,<<"1255642240817000">>,
                                                                 <0.6162.0>,
    
                                                                 <0.6166.0>,
    
                                                                 {db_header,
    
                                                                  1,69,0,
                                                                  {206252,
                                                                   {11,1}},
                                                                  {206366,
                                                                   12},
                                                                  nil,0,
                                                                  nil,nil,
                                                                  1000},
                                                                 69,
                                                                 {btree,
                                                                  <0.6162.0>,
                                                                  {206252,
                                                                   {11,1}},
                                                                  #Fun<couch_db_updater.8.117532479>,
                                                                  #Fun<couch_db_updater.9.105507025>,
                                                                  #Fun<couch_db_updater.7.32442936>,
                                                                  #Fun<couch_db_updater.10.43662179>},
                                                                 {btree,
                                                                  <0.6162.0>,
                                                                  {206366,
                                                                   12},
                                                                  #Fun<couch_db_updater.11.41695917>,
                                                                  #Fun<couch_db_updater.12.6934644>,
                                                                  #Fun<couch_btree.5.124754102>,
                                                                  #Fun<couch_db_updater.13.28245598>},
                                                                 {btree,
                                                                  <0.6162.0>,
                                                                  nil,
                                                                  #Fun<couch_btree.0.83553141>,
                                                                  #Fun<couch_btree.1.30790806>,
                                                                  #Fun<couch_btree.2.124754102>,
                                                                  nil},
                                                                 69,
                                                                 <<"test">>,
    
                                                                 "../var/lib/couchdb/test.couch",
                                                                 [],[],
                                                                 nil,
                                                                 {user_ctx,
                                                                  null,
                                                                  [<<"_adm"...>>]},
                                                                 nil,1000,
                                                                 [before_header,
                                                                  after_header|...]},
                                                                <<>>,nil,
                                                                #Fun<hovercraft.4.19656838>,
                                                                #Fun<hovercraft.2.9524041>,
                                                                #Fun<couch_httpd_view.15.105273538>,
                                                                #Fun<couch_view.reduce_to_count.1>,
                                                                false)
    

    in function couch_view:fold_fun/4
    in call from couch_btree:stream_kv_node2/7
    in call from couch_btree:fold/5
    in call from couch_view:fold/5
    in call from hovercraft:query_view/5
    50>

@sendtopms
Copy link

fixed...

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