Comments (10)
I'm confused. You're using an older version of grok with tests from the master branch?
from grok.
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.
What version of jruby are you using?
from grok.
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.
No worries about bug report quality, easy to ask for more data. I want grok to work for you :)
from grok.
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:
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.
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:
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.
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:
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.
The makefile has ruby hardcoded into it, if you flip it to jruby - things work fine.
from grok.
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)
- grok.gemspec incorrect? HOT 1
- Fix for broken Makefile on OS X with homebrew HOT 1
- Make install only installs base pattern
- Fail to compile: make: *** [grok] Error 1 HOT 8
- Master branch fails to build on Ubuntu 12.04 HOT 4
- Move source code into src/
- README
- spew only the number of times the pattern was found
- grok giving internal compiler error HOT 1
- Ressurect pygrok
- Seems to be failing with PCRE >=8.34+ for me. HOT 1
- Wrong version check for gperf Makefile (fails to build with gperf 3.1)
- Failes to compile with gperf 3.1 (conflicting types for ‘patname2macro’) HOT 4
- valgrind reports memory leak on grok HOT 1
- Do not match after a specific line
- [Question] How to get all the fields' value
- request a new release HOT 1
- various bugs HOT 1
- Wrong version reported
- error: implicit declaration of function 'yylex' is invalid in C99
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grok.