Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Installing Slogger on a new Machine

Open andreaslau opened this issue 11 years ago • 18 comments

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. screenshot 2014-01-07 01 36 38

andreaslau avatar Jan 07 '14 00:01 andreaslau

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

notArtist avatar Jan 07 '14 01:01 notArtist

OK thanks. I tried sudo bundle install

and got this:

screenshot 2014-01-07 02 32 50

I am installing Xcode atm. hopefully that will work

andreaslau avatar Jan 07 '14 01:01 andreaslau

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 :/

screenshot 2014-01-07 02 51 26

andreaslau avatar Jan 07 '14 01:01 andreaslau

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 :/

screenshot 2014-01-07 02 51
26


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/247#issuecomment-31706905

ttscoff avatar Jan 07 '14 02:01 ttscoff

Hi Brett!

I uploaded the config file here https://www.dropbox.com/s/c2lg1lema15swnt/slogger_config

Can anyone see what the error might be?

andreaslau avatar Jan 07 '14 02:01 andreaslau

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.

notArtist avatar Jan 07 '14 02:01 notArtist

Thanks!

How specifically would I go about doing that?

andreaslau avatar Jan 07 '14 02:01 andreaslau

How do I generate a new one?

andreaslau avatar Jan 08 '14 01:01 andreaslau

(Re)move the slogger_config and re-run slogger? Should generate a config file if there isn't one.

glennji avatar Jan 08 '14 02:01 glennji

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? screenshot 2014-01-08 04 46 29

Slogger Config: https://www.dropbox.com/s/c2lg1lema15swnt/slogger_config

andreaslau avatar Jan 08 '14 03:01 andreaslau

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 .

glennji avatar Jan 08 '14 04:01 glennji

Hi

thanks!

So I changed what you said (see screenshots):

From:

screenshot 2014-01-08 05 25 05

To:

screenshot 2014-01-08 05 25 50

And then I ran ./slogger

Here is the result (see screnshot).

screenshot 2014-01-08 05 29 48

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?

andreaslau avatar Jan 08 '14 04:01 andreaslau

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.

glennji avatar Jan 08 '14 05:01 glennji

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.

andreaslau avatar Jan 08 '14 09:01 andreaslau

Did you figure this out? I'm not an Xcode dude either. ;-) Try "apple-L" or "Navigate -> Jump in "" 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 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²?

glennji avatar Jan 09 '14 02:01 glennji

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:

screenshot 2014-01-09 12 48 37

It did log entries to DayOne. So it seems like it might be working.

andreaslau avatar Jan 09 '14 12:01 andreaslau

That's good, isn't it? It looks like it ran through completely. How does your DayOne journal look?

glennji avatar Jan 09 '14 22:01 glennji

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.

andreaslau avatar Jan 10 '14 03:01 andreaslau