Slogger
Slogger copied to clipboard
Installing Slogger on a new Machine
Hi
I recently got a new MacBook Air (mid 2013). I run Mavericks 10.9.1 and I want to install slogger on my new machine.
So I zipped up up the old Slogger folder on my MacBook Pro early 2011 (10.9.1) and placed it in the user folder on my Air.
I open Terminal and run
sudo gem install bundler bundle install
But I get this error (see attached image)
Any thoughts would be much appreciated.
I just ran through this myself recently. The two useful steps that I gleaned from other posts about this problem are to have Xcode installed and to make it sudo bundle install
OK thanks. I tried sudo bundle install
and got this:
I am installing Xcode atm. hopefully that will work
So I installed Xcode and ran the installs. It seemed to go smoothly.
Then I did the "./slogger --update-config" and "./slogger"
I don't recall how a successful output should look. But here are the results. I'm not sure if it is working or not :/
There's an error in your config file.
On 6 Jan 2014, at 19:54, andreaslau wrote:
So I installed Xcode and ran the installs. It seemed to go smoothly.
Then I did the "./slogger --update-config" and "./slogger"
I don't recall how a successful output should look. But here are the results. I'm not sure if it is working or not :/
Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/247#issuecomment-31706905
Hi Brett!
I uploaded the config file here https://www.dropbox.com/s/c2lg1lema15swnt/slogger_config
Can anyone see what the error might be?
According to your error, it's in line 2, and it appears you've lost all the basic, non-plugin info. I would generate a new one and paste the plugin specifics into it.
Thanks!
How specifically would I go about doing that?
How do I generate a new one?
(Re)move the slogger_config and re-run slogger? Should generate a config file if there isn't one.
Hi
Thanks for your reply. I did that and then I pasted in the details from the old config.
However, I am getting some errors. It doesn't seem to work. Nothing is being logged in DayOne when i run ./slogger.
Are there are any errors in the terminal or slogger config?
Slogger Config: https://www.dropbox.com/s/c2lg1lema15swnt/slogger_config
Oooooh, I've seen this before! This is because Ruby 1.9 removed the each() method from String, and replaced it with each_line() and each_char(). There's probably a better way to fix it upstream, but just to test and get it working can you try editing instapaperlogger.rb, line 49, and changing "each" to "each_line" just on that line ? glenn j. mason | palantir technologies [email protected] | +614 2897 3111
we¹re hiring http://www.palantir.com/careers/OpenPositionLanding !
From: andreaslau [email protected] Reply-To: ttscoff/Slogger <reply+i-25140919-89c356ab931b97ef27d8bdf3da29ad8be1ecca1f-122350@reply.gith ub.com> Date: Wednesday, 8 January 2014 2:49 PM To: ttscoff/Slogger [email protected] Cc: Glenn Mason [email protected] Subject: Re: [Slogger] Installing Slogger on a new Machine (#247)
Hi
Thanks for your reply. I did that and then I pasted in the details from the old config.
However, I am getting some errors. It doesn't seem to work. Nothing is being logged in DayOne when i run ./slogger.
Are there are any errors in the terminal or slogger config? <https://f.cloud.github.com/assets/5008271/1865704/c797185a-7817-11e3-971a- e588d4867a33.PNG>
Slogger Config: https://www.dropbox.com/s/c2lg1lema15swnt/slogger_config
‹ Reply to this email directly or view it on GitHub https://github.com/ttscoff/Slogger/issues/247#issuecomment-31803793 .
Hi
thanks!
So I changed what you said (see screenshots):
From:
To:
And then I ran ./slogger
Here is the result (see screnshot).
It seems to be working! It successfully logged OmniFocus and Instapaper. However, I'm not completely sure with the Twitter log. There is a: "String (NoMethodError)" error in the first line. I didn't post to Twitter today, so I don't know if it is working correctly or not. But an error is an error ;)
Any thoughts?
Yarp. So it looks like the twitterlogger.rb file has the same problem, on line 235. And maybe some others do too; if you really want to use those loggers, you'll have to fix them in the same way ‹ and hopefully there aren't too many more! (If you don't want to use a particular logger then just move the corresponding *.rb file out of the plugins folder and into plugins_disabled.)
As I say, this stuff can be fixed upstream (by the Slogger folk(s) -- Brett?), but I'm totally not a Rubyista and thus unsure how to make it compatible with Ruby 1.9 in any sensible way.
Hi Glenn
Thanks!
So, replacing “each” with “each_line” is a bit more difficult than in the case of Instapaper, which had just two instances of “each” in the Xcode file - twitter has 10.
How do I specify ilne 235 in Xcode to find the correct instance of “each”?
Thanks!
On 08/01/2014, at 06.34, Glenn J. Mason [email protected] wrote:
Yarp. So it looks like the twitterlogger.rb file has the same problem, on line 235. And maybe some others do too; if you really want to use those loggers, you'll have to fix them in the same way ‹ and hopefully there aren't too many more! (If you don't want to use a particular logger then just move the corresponding *.rb file out of the plugins folder and into plugins_disabled.)
As I say, this stuff can be fixed upstream (by the Slogger folk(s) -- Brett?), but I'm totally not a Rubyista and thus unsure how to make it compatible with Ruby 1.9 in any sensible way. — Reply to this email directly or view it on GitHub.
Did you figure this out? I'm not an Xcode dude either. ;-) Try "apple-L" or
"Navigate -> Jump in "
we¹re hiring http://www.palantir.com/careers/OpenPositionLanding !
From: andreaslau [email protected] Reply-To: ttscoff/Slogger <reply+i-25140919-89c356ab931b97ef27d8bdf3da29ad8be1ecca1f-122350@reply.gith ub.com> Date: Wednesday, 8 January 2014 8:35 PM To: ttscoff/Slogger [email protected] Cc: Glenn Mason [email protected] Subject: Re: [Slogger] Installing Slogger on a new Machine (#247)
How do I specify ilne 235 in Xcode to find the correct instance of ³each²?
Hi Glenn
So I managed to find the correct line and correct it. Then I ran ./slogger --update-config and ./slogger in the Terminal. Here is the output:
It did log entries to DayOne. So it seems like it might be working.
That's good, isn't it? It looks like it ran through completely. How does your DayOne journal look?
It looks fine. I still haven’t tested all the active plugins or the automated run at 23.50, but looks alright so far.
Thanks for the help! really appreciate it :)
On 09/01/2014, at 23.31, Glenn J. Mason [email protected] wrote:
That's good, isn't it? It looks like it ran through completely. How does your DayOne journal look? — Reply to this email directly or view it on GitHub.