Thanks for the tip! On Wed, Jul 13, 2022 at 10:33 AM Jing Ge <j...@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 <user@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 < >> alexan...@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 <borah.hema...@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 <user@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 >>>>> >>>>