Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Error when updating config file

Open fot-oox opened this issue 12 years ago • 6 comments

I am getting the following error message when running

./slogger --update-config

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:in parse': (<unknown>): did not find expected key while parsing a block mapping at line 2 column 1 (Psych::SyntaxError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:205:inparse_stream' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:153:in parse' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych.rb:129:inload' from /Users/Thomas 1/Dropbox/scripts/Slogger/lib/configtools.rb:11:in block in load_config' from /Users/Thomas 1/Dropbox/scripts/Slogger/lib/configtools.rb:11:inopen' from /Users/Thomas 1/Dropbox/scripts/Slogger/lib/configtools.rb:11:in load_config' from /Users/Thomas 1/Dropbox/scripts/Slogger/slogger.rb:157:ininitialize' from /Users/Thomas 1/Dropbox/scripts/Slogger/slogger.rb:364:in new' from /Users/Thomas 1/Dropbox/scripts/Slogger/slogger.rb:364:in<top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from ./slogger:18:in `

'

fot-oox avatar Dec 25 '13 12:12 fot-oox

That looks like an issue with the config file, something on line 2 that slogger doesn't like? I can't be sure. What's line 2 of your config file look like?

larryhynes avatar Dec 25 '13 16:12 larryhynes

Thanks. Line 2 of the Config file is the path to Journal.Dayone.

storage: /Users/Username/Dropbox/Apps/Day One/Journal.dayone

fot-oox avatar Dec 26 '13 22:12 fot-oox

You have replaced username in that with your username, yes? (If you haven't, that's the reason for the error.)

larryhynes avatar Dec 26 '13 22:12 larryhynes

I did replace the username. Better to sync through icloud?

2013/12/26 Larry Hynes [email protected]

You have replaced username in that with your username, yes? (If you haven't, that's the reason for the error.)

— Reply to this email directly or view it on GitHubhttps://github.com/ttscoff/Slogger/issues/240#issuecomment-31239419 .

fot-oox avatar Dec 26 '13 23:12 fot-oox

As far as I'm concerned Dropbox is the preferred sync method. All I can think of is that you carefully confirm that storage config line, make sure it's correct.

larryhynes avatar Dec 26 '13 23:12 larryhynes

Can't find anything wrong with the storage line, I'm afraid.

fot-oox avatar Dec 26 '13 23:12 fot-oox