wmorgan / whistlepig

A minimalist realtime full-text search index
http://masanjin.net/whistlepig
Other
152 stars 13 forks source link

syntax error, unexpected '-' triggered by heliotrope prune_labels! #4

Closed np closed 13 years ago

np commented 13 years ago

Steps to reproduce in turnsole:

Whistlepig::ParseError - parse error: line 1: syntax error, unexpected '-', expecting WORD:
 ./lib/heliotrope/index.rb:258:in `new'
 ./lib/heliotrope/index.rb:258:in `prune_labels!'
 /opt/ruby1.8/lib/ruby/1.8/webrick/httpserver.rb:55:in `reject'
 /opt/ruby1.8/lib/ruby/1.8/set.rb:195:in `each'
 /opt/ruby1.8/lib/ruby/1.8/set.rb:195:in `each_key'
 /opt/ruby1.8/lib/ruby/1.8/set.rb:195:in `each'
 ./lib/heliotrope/index.rb:257:in `reject'
 ./lib/heliotrope/index.rb:257:in `prune_labels!'
 ./bin/heliotrope-server:345:in `POST /labels/prune.json'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1151:in `call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:1151:in `compile!'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:724:in `instance_eval'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:724:in `route_eval'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:708:in `route!'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:758:in `process_route'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:755:in `catch'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:755:in `process_route'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:707:in `route!'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:706:in `each'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:706:in `route!'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:843:in `dispatch!'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:644:in `call!'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `instance_eval'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `invoke'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `catch'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:808:in `invoke'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:644:in `call!'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/base.rb:629:in `call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/rack-1.3.2/lib/rack/head.rb:9:in `call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/sinatra-1.2.6/lib/sinatra/showexceptions.rb:21:in `call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/rack-1.3.2/lib/rack/lint.rb:48:in `_call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/rack-1.3.2/lib/rack/lint.rb:36:in `call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/rack-1.3.2/lib/rack/showexceptions.rb:24:in `call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/rack-1.3.2/lib/rack/commonlogger.rb:20:in `call'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/rack-1.3.2/lib/rack/handler/webrick.rb:59:in `service'
 /opt/ruby1.8/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
 /opt/ruby1.8/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:162:in `start'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:95:in `start'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:92:in `each'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:92:in `start'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:23:in `start'
 /opt/ruby1.8/lib/ruby/1.8/webrick/server.rb:82:in `start'
 /home/np/e/sup2/heliotrope/vendor/bundle/ruby/1.8/gems/rack-1.3.2/lib/rack/handler/webrick.rb:13:in `run'
 ./bin/heliotrope-server:609