Created
November 29, 2012 15:04
-
-
Save tazsingh/4169642 to your computer and use it in GitHub Desktop.
pacer-neo4j paths_to bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "pacer-neo4j", require: "pacer-neo4j" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> jruby -S path_to_bug.rb | |
Created vertices | |
Created edge | |
NoMethodError: undefined method `element_type' for nil:NilClass | |
attach_pipe at /Users/tsingh/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/pacer-neo4j-2.1.0-java/lib/pacer-neo4j/algo.rb:294 | |
build_pipeline at /Users/tsingh/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/pacer-1.1.1-java/lib/pacer/core/route.rb:558 | |
iterator at /Users/tsingh/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/pacer-1.1.1-java/lib/pacer/core/route.rb:493 | |
each at /Users/tsingh/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/pacer-1.1.1-java/lib/pacer/core/route.rb:131 | |
collect at org/jruby/RubyEnumerable.java:713 | |
inspect at /Users/tsingh/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/pacer-1.1.1-java/lib/pacer/core/route.rb:319 | |
hide_route_elements at /Users/tsingh/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/pacer-1.1.1-java/lib/pacer.rb:102 | |
inspect at /Users/tsingh/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/pacer-1.1.1-java/lib/pacer/core/route.rb:316 | |
(root) at path_to_bug.rb:17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler" | |
Bundler.require | |
GRAPH = Pacer.neo4j "temp" | |
v1 = GRAPH.create_vertex | |
v2 = GRAPH.create_vertex | |
puts "Created vertices" | |
e1 = GRAPH.create_edge nil, v1, v2, :follows | |
puts "Created edge" | |
p = v1.paths_to v2 | |
puts p.inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment