Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError in watcher.rb #94

Closed
janverhulst opened this issue Jul 1, 2013 · 4 comments
Closed

SyntaxError in watcher.rb #94

janverhulst opened this issue Jul 1, 2013 · 4 comments
Assignees
Labels

Comments

@janverhulst
Copy link

Hi guys,

I've been trying to figure this one out. I am trying to do a compile/watch/config/... and I always get this error:

/Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require': /Library/Ruby/Gems/1.8/gems/fontcustom-1.0.0/lib/fontcustom/watcher.rb:9: syntax error, unexpected '.', expecting kEND (SyntaxError)
                        .relative_paths(true)
                         ^
/Library/Ruby/Gems/1.8/gems/fontcustom-1.0.0/lib/fontcustom/watcher.rb:10: syntax error, unexpected '.', expecting kEND
                        .filter(/\.(eps|svg)$/)
                         ^
/Library/Ruby/Gems/1.8/gems/fontcustom-1.0.0/lib/fontcustom/watcher.rb:11: syntax error, unexpected '.', expecting kEND
                        .change(&callback)
                         ^
    from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Library/Ruby/Gems/1.8/gems/fontcustom-1.0.0/lib/fontcustom/cli.rb:4
    from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /Library/Ruby/Gems/1.8/gems/fontcustom-1.0.0/bin/fontcustom:3
    from /usr/bin/fontcustom:23:in `load'
    from /usr/bin/fontcustom:23

So I guess my ruby installation is a bit more strict or something, that it doesn't want the new lines? I have no experience with ruby devevelopment.

I'm on a mac (osx 10.8.4), ruby version (ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0])

Any help would be much appreciated.

Tnx

Jan

@jimniels
Copy link

jimniels commented Jul 2, 2013

I was having a similar issue running fontcustom on my local machine. Though I have no experience with Ruby Development, I can tell you that upgrading my Ruby Version to 1.9.2 fixed my issue. Perhaps you might try that. A good place to start is RVM

@ghost ghost assigned kaizau Jul 2, 2013
@janverhulst
Copy link
Author

Ok, thank you. I'll try and do that. Currently I've switched to the gruntjs implementation, which does a perfect job as well.

On 02 Jul 2013, at 20:46, Jim Nielsen notifications@github.com wrote:

I was having a similar issue running fontcustom on my local machine. Though I have no experience with Ruby Development, I can tell you that upgrading my Ruby Version to 1.9.2 fixed my issue. Perhaps you might try that. A good place to start is RVM


Reply to this email directly or view it on GitHub.

@rogercampos
Copy link
Contributor

This is a syntax error from ruby 1.8.7.

@kaizau
Copy link
Member

kaizau commented Jul 21, 2013

Closed by cb637e9

@kaizau kaizau closed this as completed Jul 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants