title: No implicits found for parameter evidence
body: <p>I have a line of code in a scala app that takes a dataframe with one column and two rows, and assigns them to variables <code>start</code> and <code>end</code>:</p>
  
  <pre><code>val Array(start, end) = datesInt.map(_.getInt(0)).collect()
  </code></pre>
  
  <p>This code works fine when run in a REPL, but when I try to put the same line in a scala object in Intellij, it inserts a grey <code>(?: Encoder[Int])</code> before the <code>.collect()</code> statement, and show an inline error <code>No implicits found for parameter evidence$6: Encoder[Int]</code></p>
  
  <p>I'm pretty new to scala and I'm not sure how to resolve this.</p>