#1 ✓resolved
niclasnilsson

Table not found

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

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

Comments and changes to this ticket

  • reborg

    reborg February 27th, 2009 @ 09:26 AM

    • 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...

  • niclasnilsson

    niclasnilsson March 3rd, 2009 @ 02:14 AM

    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.

  • niclasnilsson

    niclasnilsson March 3rd, 2009 @ 02:17 AM

    (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$

  • niclasnilsson

    niclasnilsson March 3rd, 2009 @ 02:19 AM

    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

  • reborg

    reborg March 3rd, 2009 @ 04:30 PM

    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.

  • niclasnilsson

    niclasnilsson March 4th, 2009 @ 06:08 AM

    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

  • reborg

    reborg March 4th, 2009 @ 09:31 AM

    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.

  • niclasnilsson

    niclasnilsson March 9th, 2009 @ 03:04 AM

    Worked just fine. Thanks!

  • reborg

    reborg March 9th, 2009 @ 09:50 AM

    • State changed from “open” to “resolved”

    Cool. Closing the ticket. Thanks for your help.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Little widget for your daily pomodoro practice

People watching this ticket

Pages