My CouchDBX version
Sunday, November 23, 2008 at 21:31 by
Jón Grétar Borgþórsson 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.




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?
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.
what version of CouchDB are you using in your last version of CouchDBX?
CouchDB 0.8.1-incubating
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...
Yes... This is "expected". Propably some minor error on my part.
:-)
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 foundHoly. 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. ;)
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