Error when updating config file
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 `
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?
Thanks. Line 2 of the Config file is the path to Journal.Dayone.
storage: /Users/Username/Dropbox/Apps/Day One/Journal.dayone
You have replaced username in that with your username, yes? (If you haven't, that's the reason for the error.)
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 .
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.
Can't find anything wrong with the storage line, I'm afraid.