Skip to content

Instantly share code, notes, and snippets.

@tazsingh
Created November 29, 2012 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tazsingh/4169642 to your computer and use it in GitHub Desktop.
Save tazsingh/4169642 to your computer and use it in GitHub Desktop.
pacer-neo4j paths_to bug
source "https://rubygems.org"
gem "pacer-neo4j", require: "pacer-neo4j"
> 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
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