Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F08F9200CBB for ; Tue, 4 Jul 2017 11:11:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF381160BEF; Tue, 4 Jul 2017 09:11:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1E279160BE1 for ; Tue, 4 Jul 2017 11:11:29 +0200 (CEST) Received: (qmail 54427 invoked by uid 500); 4 Jul 2017 09:11:29 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 54405 invoked by uid 99); 4 Jul 2017 09:11:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jul 2017 09:11:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4842DC0914 for ; Tue, 4 Jul 2017 09:11:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.48 X-Spam-Level: X-Spam-Status: No, score=0.48 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=data-artisans-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Vg1UooAhrR98 for ; Tue, 4 Jul 2017 09:11:24 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 66A2A5FB7A for ; Tue, 4 Jul 2017 09:11:24 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id f67so77758158wmh.1 for ; Tue, 04 Jul 2017 02:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=data-artisans-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=ujpR+utb2NLzZUa7GPmZnyQdjM4hyKtCy9NqnTlK05c=; b=yrOadBNwYmwBe6DzA9ALUnWKFvIfHuNRBe3aeQnzq9CbjmRWXXOE4z7fLZ28lNGXPO wDwhV9sItYpXNrdnLt1LC5MKTGng6w9xR9lI85HB+udL6bRpXbMqAV6ZwhSLKSRxSHqb VXWkih/GG2uPTn2LrrUyqXIE2Qcm52eKPllfRgQywpVFk4tevA7Cru4cWGCLFEJ67kxW uDAgOEjQRenqfx2ggfJlM7igtZQxqmr6x6lcsZnrJQFvm377PL9iKRILKwATOrN2hqx1 16X11vueCBeAFK07MQJOnARHEa95SrzLBghBKkeh3mka+dABpNFTERHlAedvExGtkVFd Gtkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=ujpR+utb2NLzZUa7GPmZnyQdjM4hyKtCy9NqnTlK05c=; b=A3BRuTbo5rMR1o9KaIcqjxqM9vNAEcVA4KGOHOnIJQLFDdOYakCaBjYRBaXLkqveP7 YdKO6mp8gcInsSs/skDZDrIFK4akFOOqLESumDUns8lL16ZR/kml77CZRhfla0YGPvxO P0UuiOhh7CwSz4jTjOTkU1M4b+Y+cJUxl0HSXacGJ6KQb0X63LReYdkgL/Q0ElS4p2uC 7AFVExqPsuX+BaoKr2W8/tBdOWbcHROLJi6AHjZvfDFc+H0PEEZE8MNRc207IzxHzkA5 RnU83ZBCXD5202OMNSTgS9ERRqfiCcfNc3nIhXRLfM3t45zdkvNxY0pCn4lNqpQYKy+e 8XZw== X-Gm-Message-State: AKS2vOyDN9cUkCG4A6MxUlhO+gDkNuiki6eF/dfEjsq/bcVE7pVz1Tgt PEWg3eYyjqN1WsOAfSwIIA== X-Received: by 10.28.152.14 with SMTP id a14mr26664854wme.35.1499159483014; Tue, 04 Jul 2017 02:11:23 -0700 (PDT) Received: from piotrs-mbp.fritz.box (ipservice-092-208-199-000.092.208.pools.vodafone-ip.de. [92.208.199.0]) by smtp.gmail.com with ESMTPSA id p27sm10074205wmf.23.2017.07.04.02.11.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 02:11:22 -0700 (PDT) From: Piotr Nowojski Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Tips to fix IDEA strange problem after updating master code Date: Tue, 4 Jul 2017 11:11:21 +0200 References: <27D9BBDA-6E16-45EF-BACC-88F01F0338CD@immomo.com> To: dev@flink.apache.org In-Reply-To: <27D9BBDA-6E16-45EF-BACC-88F01F0338CD@immomo.com> Message-Id: X-Mailer: Apple Mail (2.3273) archived-at: Tue, 04 Jul 2017 09:11:31 -0000 Maybe try=20 $ mvn clean=20 Before reimporting and restarting/invalidating caches in IntelliJ? Did = you deactivate scala-2.10 profile in the IntelliJ? Piotrek > On Jul 4, 2017, at 11:05 AM, =E9=83=AD=E5=81=A5 = wrote: >=20 > I have done all these but still got some issue in IDEA, especially in = the flink-connector project. > ---- >=20 > On 7/4/17, 15:57, "Piotr Nowojski" wrote: >=20 > Besides deactivating =E2=80=9Cscala-2.10=E2=80=9D profile in the = Intellij it might be necessary to: > - reimport maven project: > 1. Right click on root module: =E2=80=9Cflink-parent=E2=80=9D > 2. Maven > 3. reimport > - invalidate caches and restart: File -> Invalidate caches and = restart -> invalidate /restart > - rebuild whole project >=20 > I suspect that either activation of scala-2.10 by default comes = from flink-scala and flick-scala-shell poms or it=E2=80=99s an artifact = because you created/imported Intellij project when 2.10 was the default. = If the first option is true, this PR: = https://github.com/apache/flink/pull/4240 = might fix this issue. >=20 >=20 > Another quirk that I encauntered is the compile error about = ILoopCompat class being defined twice in Intellij (works fine from = console). This comes from flink-scala-shell/pom.xml, which defines two = different source paths depending on Scala version: >=20 > src/main/scala-${scala.binary.version} >=20 > Such thing is not supported by Intellij and one have to manually = remove one of the source directory (either 2.11 or 2.10) from the = project settings. >=20 > Piotrek >=20 >> On Jul 4, 2017, at 9:46 AM, Aljoscha Krettek = wrote: >>=20 >> Thanks for the hint! >>=20 >>> On 4. Jul 2017, at 06:03, Ted Yu wrote: >>>=20 >>> Looks like the picture didn't go thru. >>>=20 >>> Mind using third party site ? >>>=20 >>> Thanks >>>=20 >>> On Mon, Jul 3, 2017 at 8:56 PM, Jark Wu wrote: >>>=20 >>>> Hi devs, >>>>=20 >>>> Yesterday, I updated the master code which include [FLINK-7030]: = Build >>>> with scala-2.11 by default. After that, I entered a strange problem = with >>>> IDEA that many classes can't be found, and the project can't be >>>> built/compiled (in IDEA), but maven install worked good. >>>>=20 >>>> After a series of attempts, I found that IDEA activate the = scala-2.10 >>>> profile by default which result in this problem. After deactivate >>>> scala-2.10 profile via sidebar Maven Projects -> Profiles -> = deactivate >>>> "scala-2.10" profile, and every works good again. >>>>=20 >>>> [image: =E5=86=85=E5=B5=8C=E5=9B=BE=E7=89=87 1] >>>>=20 >>>> I share this tip in the dev list, because a lot of my colleagues = have the >>>> same issues, and maybe many other Flink devs have the same problem = too. >>>>=20 >>>> BTW, I don't know why IDEA activate scala-2.10 by default, not sure = it's a >>>> IDEA bug or the wrong profile setting somewhere. >>>>=20 >>>>=20 >>>> Regards, >>>> Jark Wu >>>>=20 >>=20 >=20 >=20 >=20