Giter VIP home page Giter VIP logo

Comments (10)

jordansissel avatar jordansissel commented on July 29, 2024

I'm confused. You're using an older version of grok with tests from the master branch?

from grok.

crankycoder avatar crankycoder commented on July 29, 2024

I tried removing the gem and reinstalling from source. Unless I'm screwing
something up - which is entirely possible because I'm a novice with ruby- I
can't get tests to pass.
On Oct 12, 2011 5:56 PM, "Jordan Sissel" <
[email protected]>
wrote:

I'm confused. You're using an older version of grok with tests from the
master branch?

Reply to this email directly or view it on GitHub:
#6 (comment)

from grok.

jordansissel avatar jordansissel commented on July 29, 2024

What version of jruby are you using?

from grok.

crankycoder avatar crankycoder commented on July 29, 2024

Sorry, not at my computer right now. I'll send better bug reports. if it's
of any use, I'm using whatever homebrew on osx installed. I just put it in
last week.
On Oct 12, 2011 5:59 PM, "Jordan Sissel" <
[email protected]>
wrote:

What version of jruby are you using?

Reply to this email directly or view it on GitHub:
#6 (comment)

from grok.

jordansissel avatar jordansissel commented on July 29, 2024

No worries about bug report quality, easy to ask for more data. I want grok to work for you :)

from grok.

crankycoder avatar crankycoder commented on July 29, 2024

Ok, so here's what I've got - again, I'm new to ruby - I'm coming from a
python/mercurial world so if you think I'm overlooking something - I
probably am.

Before you go and read the rest of this email, I'm just pulling from
whatever is in github. I'm assuming that the master branch is deployable.
If that's not the case, can you tell me how to checkout and run tests
against the released gem of jls-grok?

So here we go:

http://pastebin.com/xPHZk3mV

That said, I've just realized I don't actually need the grok library
anymore, but I would like to be able to get tests to pass properly.

vic

On Wed, Oct 12, 2011 at 6:08 PM, Jordan Sissel <
[email protected]>wrote:

No worries about bug report quality, easy to ask for more data. I want grok
to work for you :)

Reply to this email directly or view it on GitHub:
#6 (comment)

from grok.

jordansissel avatar jordansissel commented on July 29, 2024

On Wed, Oct 12, 2011 at 5:30 PM, Victor Ng <
[email protected]>wrote:

Ok, so here's what I've got - again, I'm new to ruby - I'm coming from a
python/mercurial world so if you think I'm overlooking something - I
probably am.

Before you go and read the rest of this email, I'm just pulling from
whatever is in github. I'm assuming that the master branch is deployable.
If that's not the case, can you tell me how to checkout and run tests
against the released gem of jls-grok?

So here we go:

http://pastebin.com/xPHZk3mV

That said, I've just realized I don't actually need the grok library
anymore, but I would like to be able to get tests to pass properly.

If I check out the grok code, master branch, all the tests pass for me.

If you look at what 'make test-pure' does, it invokes "ruby". The 'pure ruby
grok' will only work under Ruby 1.9.2 syntax, which requires JRuby 1.6.x or
Ruby 1.9.2 itself.

It is likely that whatever "ruby" runs is not one of these. Here, I can even
reproduce your error by using the wrong ruby:

% ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]

% make test-pure
JRUBY_OPTS=--1.9 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$PWD/../../"
RUBYLIB="$PWD/../lib" ruby pure-ruby/alltests.rb
Loading tests: pure-ruby/general/captures_test.rb
./pure-ruby/general/captures_test.rb:2:in `require':
/home/jls/projects/grok/ruby/test/../lib/grok-pure.rb:22: undefined (?...)
sequence: /%{ # match '%{' not prefixed with '' (SyntaxError)

But if I use a supported version of ruby, it works (ruby 1.9.2, jruby 1.6.4,
etc)

-Jordan

from grok.

crankycoder avatar crankycoder commented on July 29, 2024

bingo. thanks. i didn't see the 'ruby' in there. flipped it to jruby and
everything is happy. both my failures i posted as bugs are running clean
now.

thanks,
vic

On Thu, Oct 13, 2011 at 11:56 AM, Jordan Sissel <
[email protected]>wrote:

On Wed, Oct 12, 2011 at 5:30 PM, Victor Ng <
[email protected]>wrote:

Ok, so here's what I've got - again, I'm new to ruby - I'm coming from a
python/mercurial world so if you think I'm overlooking something - I
probably am.

Before you go and read the rest of this email, I'm just pulling from
whatever is in github. I'm assuming that the master branch is
deployable.
If that's not the case, can you tell me how to checkout and run tests
against the released gem of jls-grok?

So here we go:

http://pastebin.com/xPHZk3mV

That said, I've just realized I don't actually need the grok library
anymore, but I would like to be able to get tests to pass properly.

If I check out the grok code, master branch, all the tests pass for me.

If you look at what 'make test-pure' does, it invokes "ruby". The 'pure
ruby
grok' will only work under Ruby 1.9.2 syntax, which requires JRuby 1.6.x or
Ruby 1.9.2 itself.

It is likely that whatever "ruby" runs is not one of these. Here, I can
even
reproduce your error by using the wrong ruby:

% ruby --version
ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]

% make test-pure
JRUBY_OPTS=--1.9 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$PWD/../../"
RUBYLIB="$PWD/../lib" ruby pure-ruby/alltests.rb
Loading tests: pure-ruby/general/captures_test.rb
./pure-ruby/general/captures_test.rb:2:in `require':
/home/jls/projects/grok/ruby/test/../lib/grok-pure.rb:22: undefined (?...)
sequence: /%{ # match '%{' not prefixed with '' (SyntaxError)

But if I use a supported version of ruby, it works (ruby 1.9.2, jruby
1.6.4,
etc)

-Jordan

Reply to this email directly or view it on GitHub:
#6 (comment)

from grok.

crankycoder avatar crankycoder commented on July 29, 2024

The makefile has ruby hardcoded into it, if you flip it to jruby - things work fine.

from grok.

jordansissel avatar jordansissel commented on July 29, 2024

On Thu, Oct 13, 2011 at 9:22 AM, Victor Ng <
[email protected]>wrote:

bingo. thanks. i didn't see the 'ruby' in there. flipped it to jruby and
everything is happy. both my failures i posted as bugs are running clean
now.

Excellent! Glad things are working for you now :)

-Jordan

from grok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.