Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Table not found

#1

When starting pomodori, it dies with an exception:

mb:pomodori$ pomodori.app/Contents/MacOS/pomodori /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/thirdparties/kirbybase.rb:2805: warning: removing pure Objective-C method select_by_recno_index' may cause serious problem /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/thirdparties/kirbybase.rb:520:inget_table': Table not found! (RuntimeError)

from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/kirby_storage.rb:56:in `table_for'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/kirby_storage.rb:36:in `find_all_by_date'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/kirby_storage.rb:32:in `find_all_day_before'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/kirby_storage.rb:24:in `yesterday_pomodoros'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/pomodori_controller.rb:10:in `yesterday_pomodoros'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/application.rb:116:in `format_metrics'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/application.rb:101:in `update_metrics_for_pomodoro'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/application.rb:25:in `block in start'
from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:15:in `call'
from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/mappings/application.rb:15:in `handle_block'
from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/hotcocoa/mapper.rb:67:in `block in map_method'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/pomodori/application.rb:16:in `start'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/lib/main.rb:6:in `<top (required)>'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/rb_main.rb:3:in `load'
from /Users/me/code/pomodori/pomodori.app/Contents/Resources/rb_main.rb:3:in `<main>'

me

Reported by niclasnilsson · February 23rd, 2009 @ 07:59 AM

State: resolved
Milestone: none
Assigned to: reborg reborg

Activity

  1. reborg
    reborg
    • Assigned user set to reborg
    • Tag set to database, initialization, startup
    • State changed from new to open

    I was not able to reproduce this. I was using ENV['HOME'] that I removed since maybe that variable is not set in your environment. But still, it looks like the DB got created correctly somewhere. Can you check "~/Library/Application Support/Pomodori" or "/Library/Application Support/Pomodori" and see if you find any files there? Anyway, please try download the fixed version and let me know: http://reborg.github.com/pomodor...

    February 27th, 2009 @ 09:26 AM

  2. niclasnilsson
    niclasnilsson

    Still the same thing, (and my HOME-env looks correct).

    Here's the content of my ~/Library/Application Support/Pomodori folder:


    mb:Library$ ls Application\ Support/Pomodori/ pomodoro.tbl

    mb:Library$ cat Application\ Support/Pomodori/pomodoro.tbl 000000|000000|Struct|recno:Integer|text:String|timestamp:Time

    mb:Library$

    I also tried deleting the pomodoro.tbl to see if that helped, but it was recreated in the exact same way.

    March 3rd, 2009 @ 02:14 AM

  3. niclasnilsson
    niclasnilsson

    (Hmm... Maybe I should format this differently... :-)

    mb:Library$ ls Application\ Support/Pomodori/ pomodoro.tbl

    mb:Library$ cat Application\ Support/Pomodori/pomodoro.tbl 000000|000000|Struct|recno:Integer|text:String|timestamp:Time

    mb:Library$

    March 3rd, 2009 @ 02:17 AM

  4. niclasnilsson
    niclasnilsson

    Ok, Lighthouse seems to ignore my line breaks. But there is one file in ~/Library/Application Support/Pomodori and that is the file pomodoro.tbl, and you see the content above.

    Kind regards Niclas

    March 3rd, 2009 @ 02:19 AM

  5. reborg
    reborg

    I saw I was not downcasing the name of the table for the lookup. If you formatted the mac with a case sensitive file system, this could be the fix (and the reason I couldn't reproduce it). Let me know. Thanks.

    March 3rd, 2009 @ 04:30 PM

  6. niclasnilsson
    niclasnilsson

    I certainly do use the case sensitive version of the file system. Doesn't all programmers do that? :-)

    That's very likely the problem then. Good catch.

    Kind regards Niclas

    March 4th, 2009 @ 06:08 AM

  7. reborg
    reborg

    I'm using the pre-installed formatted partition. It looks case unsensitive by default:

    reborg:tmp reborg$ mkdir Temp reborg:tmp reborg$ mkdir temp mkdir: temp: File exists

    And sure next time I'll format Unix like. Let me know if that did the trick. Thanks.

    March 4th, 2009 @ 09:31 AM

  8. niclasnilsson
    niclasnilsson

    Worked just fine. Thanks!

    March 9th, 2009 @ 03:04 AM

  9. reborg
    reborg
    • State changed from open to resolved

    Cool. Closing the ticket. Thanks for your help.

    March 9th, 2009 @ 09:50 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.