Blog Categories
Ad Space
Twitter Updates
    follow me on Twitter
    Currently Reading
    Powered by Squarespace
    Git Projects
    « 5 Minute Blog Using Nitrogen and CouchDB | Main | A knock knock joke »
    Sunday
    23Nov

    My CouchDBX version

    Hey people.

    I have been playing with Jan's CouchDBX a bit and thought someone might enjoy what I did. CouchDBX is a nice little Mac OS X tool to run CouchDB without the need to set up Erlang or anything.

    There are 3 major changes that I did. First of the UI is gone and everything is now in a status bar menu. Should make for quicker access to it and also stay out of the way. There is also a new transparent log window if you need to see what is happening on the Erlang level. The third an most important change is that CouchDBX now stores it's database in ~/Documents/CouchDB. Before the database was inside the Application bundle itself and all the data disappeared every time you downloaded a new release of CouchDBX.

    I have not renamed it or anything in case Jan would like to incorporate these changes to the original code or something.

    EDIT 26. Nov: There was a serious error in my old version that made the javascript engine not run correctly. This has now been fixed and you need to redownload.

    CouchDBX Screenshot

    Reader Comments (9)

    excellent stuff. really *really* like your improvements - hope they make it into the main build.

    ...but i'm still having substantial problems getting the test suite to run - is this expected?

    Nov 24, 2008 at 14:10 | Unregistered Commentergjh

    Depends on what you are talking about. If the computer gets slow and the browser crashes when you run the test it's because you are propably running Safari 4 DP. Just run them in that case in Firefox as the problem is either in Safari or CouchDB. Either way it's out of my control. :)

    If you are referring to the fact that many of the test fail then I'm taking a look at that. At the moment I have no idea what that's about but I'll figure it out.

    Nov 24, 2008 at 15:50 | Registered CommenterJón Grétar Borgþórsson

    what version of CouchDB are you using in your last version of CouchDBX?

    Nov 24, 2008 at 17:21 | Unregistered CommenterCarlos

    CouchDB 0.8.1-incubating

    Nov 24, 2008 at 18:28 | Registered CommenterJón Grétar Borgþórsson

    If you are referring to the fact that many of the test fail then I'm taking a look at that. At the moment I have no idea what that's about but I'll figure it out.

    yep this is the issue i'm having - the test suite itself *runs* fine, but most of the individual tests fail, with pretty inscrutable errors such as...

    {"error":"error","reason":"{{nocatch,{map_process_error,{exit_status,127}}},\n [{couch_query_servers,readline,2},\n {couch_query_servers,read_json,1},\n {couch_query_servers,prompt,2},\n {couch_query_servers,'-start_doc_map/2-fun-0-',2},\n {lists,foreach,2},\n {couch_query_servers,start_doc_map,2},\n {couch_view,view_compute,2},\n {couch_view,update_group,1}]}","line":114,"sourceURL":"http://127.0.0.1:5984/_utils/script/couch.js?0.8.0"}

    if this is *expected* (ie it's not just me!) i guess we wait for the couchDB guys to fix it...

    Nov 26, 2008 at 11:16 | Unregistered Commentergjh

    Yes... This is "expected". Propably some minor error on my part.

    Nov 26, 2008 at 11:54 | Registered CommenterJón Grétar Borgþórsson

    :-)

    fwiw there's an interesting line in my console log - one for each test that errors out

    26/11/2008 12:49:27 [0x0-0x4b04b].de.prima.jan.CouchDBX[2083] /Applications/CouchDBX.app/Contents/Resources/CouchDb//bin/couchjs: line 22: basename: command not found

    Nov 26, 2008 at 13:10 | Unregistered Commentergjh

    Holy. Know what this is now. :)

    Because of how I start up CouchDB the environment variables are cleaned up and I manually define them. And I totally forgot to define the PATH variable and couchjs refuses to run.
    I have uploaded the fixed version in the same location. All tests should run fine now.

    Thank you. I think I have learned a valuable lesson about tests today. ;)

    Nov 26, 2008 at 13:46 | Registered CommenterJón Grétar Borgþórsson

    bravo!

    great stuff - thanks indeed for the fix. really excellent work. everything now runs great (with the sole exception of reduce - but this looks much more like a couch problem)

    many, many thanks - have a fantastic weekend

    best

    guy

    Nov 28, 2008 at 17:19 | Unregistered Commentergjh

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
    Fork me on GitHub