You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Min Tu via user <us...@flink.apache.org> on 2022/07/09 04:59:42 UTC

Unit test have Error "could not find implicit value for evidence parameter"

Hi,

I have downloaded the flink code and the build works fine with following
command

mvnw install -DskipTests -Dcheckstyle.skip

Then I try to run the unit test code in IntelliJ, but got following error:

/Users/mintu/ApacheProjects/flink/flink-scala/src/test/scala/org/apache/flink/api/scala/DeltaIterationSanityCheckTest.scala:34:41
*could not find implicit value for evidence parameter of type*
org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)]
    val solutionInput = env.fromElements((1, "1"))

Please advise.

Thanks in advance

Re: Unit test have Error "could not find implicit value for evidence parameter"

Posted by Min Tu via user <us...@flink.apache.org>.
Thanks for the tip!

On Wed, Jul 13, 2022 at 10:33 AM Jing Ge <ji...@ververica.com> wrote:

> Hi,
>
> you don't have to do that. Next time you can try "Invalidate Caches..."
> under the File menu in Intellij Idea.
>
> Best regards,
> Jing
>
> On Wed, Jul 13, 2022 at 7:21 PM Min Tu via user <us...@flink.apache.org>
> wrote:
>
>> Thanks a lot !! I have removed the .idea folder and the unit test works.
>>
>> On Mon, Jul 11, 2022 at 2:44 PM Alexander Fedulov <
>> alexander@ververica.com> wrote:
>>
>>> Hi Min Tu,
>>>
>>> try clean install to make sure the build starts from scratch. Refresh
>>> maven modules in IntelliJ after the build. If that doesn't work, try
>>> invalidating IntelliJ caches and/or reimporting the project (remove .idea
>>> folder).
>>>
>>> Best,
>>> Alexander Fedulov
>>>
>>> On Sun, Jul 10, 2022 at 12:59 AM Hemanga Borah <bo...@gmail.com>
>>> wrote:
>>>
>>>> What version of scala are you using?
>>>>
>>>> Depending on the build you are using you may be using 2.11 or 2.12. The
>>>> version on your maven build files needs to be consistent across your system.
>>>>
>>>> On Fri, Jul 8, 2022 at 10:00 PM Min Tu via user <us...@flink.apache.org>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have downloaded the flink code and the build works fine
>>>>> with following command
>>>>>
>>>>> mvnw install -DskipTests -Dcheckstyle.skip
>>>>>
>>>>> Then I try to run the unit test code in IntelliJ, but got following
>>>>> error:
>>>>>
>>>>>
>>>>> /Users/mintu/ApacheProjects/flink/flink-scala/src/test/scala/org/apache/flink/api/scala/DeltaIterationSanityCheckTest.scala:34:41
>>>>> *could not find implicit value for evidence parameter of type*
>>>>> org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)]
>>>>>     val solutionInput = env.fromElements((1, "1"))
>>>>>
>>>>> Please advise.
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>

Re: Unit test have Error "could not find implicit value for evidence parameter"

Posted by Jing Ge <ji...@ververica.com>.
Hi,

you don't have to do that. Next time you can try "Invalidate Caches..."
under the File menu in Intellij Idea.

Best regards,
Jing

On Wed, Jul 13, 2022 at 7:21 PM Min Tu via user <us...@flink.apache.org>
wrote:

> Thanks a lot !! I have removed the .idea folder and the unit test works.
>
> On Mon, Jul 11, 2022 at 2:44 PM Alexander Fedulov <al...@ververica.com>
> wrote:
>
>> Hi Min Tu,
>>
>> try clean install to make sure the build starts from scratch. Refresh
>> maven modules in IntelliJ after the build. If that doesn't work, try
>> invalidating IntelliJ caches and/or reimporting the project (remove .idea
>> folder).
>>
>> Best,
>> Alexander Fedulov
>>
>> On Sun, Jul 10, 2022 at 12:59 AM Hemanga Borah <bo...@gmail.com>
>> wrote:
>>
>>> What version of scala are you using?
>>>
>>> Depending on the build you are using you may be using 2.11 or 2.12. The
>>> version on your maven build files needs to be consistent across your system.
>>>
>>> On Fri, Jul 8, 2022 at 10:00 PM Min Tu via user <us...@flink.apache.org>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have downloaded the flink code and the build works fine
>>>> with following command
>>>>
>>>> mvnw install -DskipTests -Dcheckstyle.skip
>>>>
>>>> Then I try to run the unit test code in IntelliJ, but got following
>>>> error:
>>>>
>>>>
>>>> /Users/mintu/ApacheProjects/flink/flink-scala/src/test/scala/org/apache/flink/api/scala/DeltaIterationSanityCheckTest.scala:34:41
>>>> *could not find implicit value for evidence parameter of type*
>>>> org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)]
>>>>     val solutionInput = env.fromElements((1, "1"))
>>>>
>>>> Please advise.
>>>>
>>>> Thanks in advance
>>>>
>>>

Re: Unit test have Error "could not find implicit value for evidence parameter"

Posted by Min Tu via user <us...@flink.apache.org>.
Thanks a lot !! I have removed the .idea folder and the unit test works.

On Mon, Jul 11, 2022 at 2:44 PM Alexander Fedulov <al...@ververica.com>
wrote:

> Hi Min Tu,
>
> try clean install to make sure the build starts from scratch. Refresh
> maven modules in IntelliJ after the build. If that doesn't work, try
> invalidating IntelliJ caches and/or reimporting the project (remove .idea
> folder).
>
> Best,
> Alexander Fedulov
>
> On Sun, Jul 10, 2022 at 12:59 AM Hemanga Borah <bo...@gmail.com>
> wrote:
>
>> What version of scala are you using?
>>
>> Depending on the build you are using you may be using 2.11 or 2.12. The
>> version on your maven build files needs to be consistent across your system.
>>
>> On Fri, Jul 8, 2022 at 10:00 PM Min Tu via user <us...@flink.apache.org>
>> wrote:
>>
>>> Hi,
>>>
>>> I have downloaded the flink code and the build works fine with following
>>> command
>>>
>>> mvnw install -DskipTests -Dcheckstyle.skip
>>>
>>> Then I try to run the unit test code in IntelliJ, but got following
>>> error:
>>>
>>>
>>> /Users/mintu/ApacheProjects/flink/flink-scala/src/test/scala/org/apache/flink/api/scala/DeltaIterationSanityCheckTest.scala:34:41
>>> *could not find implicit value for evidence parameter of type*
>>> org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)]
>>>     val solutionInput = env.fromElements((1, "1"))
>>>
>>> Please advise.
>>>
>>> Thanks in advance
>>>
>>

Re: Unit test have Error "could not find implicit value for evidence parameter"

Posted by Alexander Fedulov <al...@ververica.com>.
Hi Min Tu,

try clean install to make sure the build starts from scratch. Refresh maven
modules in IntelliJ after the build. If that doesn't work, try invalidating
IntelliJ caches and/or reimporting the project (remove .idea folder).

Best,
Alexander Fedulov

On Sun, Jul 10, 2022 at 12:59 AM Hemanga Borah <bo...@gmail.com>
wrote:

> What version of scala are you using?
>
> Depending on the build you are using you may be using 2.11 or 2.12. The
> version on your maven build files needs to be consistent across your system.
>
> On Fri, Jul 8, 2022 at 10:00 PM Min Tu via user <us...@flink.apache.org>
> wrote:
>
>> Hi,
>>
>> I have downloaded the flink code and the build works fine with following
>> command
>>
>> mvnw install -DskipTests -Dcheckstyle.skip
>>
>> Then I try to run the unit test code in IntelliJ, but got following error:
>>
>>
>> /Users/mintu/ApacheProjects/flink/flink-scala/src/test/scala/org/apache/flink/api/scala/DeltaIterationSanityCheckTest.scala:34:41
>> *could not find implicit value for evidence parameter of type*
>> org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)]
>>     val solutionInput = env.fromElements((1, "1"))
>>
>> Please advise.
>>
>> Thanks in advance
>>
>

Re: Unit test have Error "could not find implicit value for evidence parameter"

Posted by Hemanga Borah <bo...@gmail.com>.
What version of scala are you using?

Depending on the build you are using you may be using 2.11 or 2.12. The
version on your maven build files needs to be consistent across your system.

On Fri, Jul 8, 2022 at 10:00 PM Min Tu via user <us...@flink.apache.org>
wrote:

> Hi,
>
> I have downloaded the flink code and the build works fine with following
> command
>
> mvnw install -DskipTests -Dcheckstyle.skip
>
> Then I try to run the unit test code in IntelliJ, but got following error:
>
>
> /Users/mintu/ApacheProjects/flink/flink-scala/src/test/scala/org/apache/flink/api/scala/DeltaIterationSanityCheckTest.scala:34:41
> *could not find implicit value for evidence parameter of type*
> org.apache.flink.api.common.typeinfo.TypeInformation[(Int, String)]
>     val solutionInput = env.fromElements((1, "1"))
>
> Please advise.
>
> Thanks in advance
>