tag:support.flying-sphinx.com,2011-01-05:/discussions/problems/29662-tsindex-gives-argumenterror-wrong-number-of-arguments-given-1-expected-0Flying Sphinx: Discussion 2018-04-23T12:00:21Ztag:support.flying-sphinx.com,2011-01-05:Comment/451517832018-04-23T08:40:27Z2018-04-23T08:40:27Zts:index gives ArgumentError: wrong number of arguments (given 1, expected 0)<div><p>ts:rebuild is passing successfully</p></div>Kiriltag:support.flying-sphinx.com,2011-01-05:Comment/451517832018-04-23T08:51:55Z2018-04-23T08:51:55Zts:index gives ArgumentError: wrong number of arguments (given 1, expected 0)<div><p>Problem seems to be in this code</p>
<p>flying-sphinx-2.0.0/lib/flying_sphinx/commands/index_sql.rb where clear_jobs is called.</p>
<p>clear_jobs calls for</p>
<p>Delayed::Job.delete_all("handler LIKE '--- !ruby/object:FlyingSphinx::%'")<br>
and this returns an error</p>
<p>ArgumentError: wrong number of arguments (given 1, expected 0)</p></div>Kiriltag:support.flying-sphinx.com,2011-01-05:Comment/451517832018-04-23T09:25:43Z2018-04-23T09:25:44Zts:index gives ArgumentError: wrong number of arguments (given 1, expected 0)<div><p>Pull request with where I think the problem is - <a href="https://github.com/flying-sphinx/flying-sphinx/pull/19">https://github.com/flying-sphinx/flying-sphinx/pull/19</a></p></div>Kiriltag:support.flying-sphinx.com,2011-01-05:Comment/451517832018-04-23T10:52:31Z2018-04-23T10:52:32Zts:index gives ArgumentError: wrong number of arguments (given 1, expected 0)<div><p>The problem is resolved with the pull request</p></div>Kiriltag:support.flying-sphinx.com,2011-01-05:Comment/451517832018-04-23T12:00:16Z2018-04-23T12:00:16Zts:index gives ArgumentError: wrong number of arguments (given 1, expected 0)<div><p>Thanks so much for not only reporting this bug, but fixing it! Great to know your patch is working well for you now 👍</p></div>Pat Allan