Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion NoSuchFieldError after code changes

Received: by 10.14.205.5 with SMTP id i5mr10327113eeo.5.1345668608387;
        Wed, 22 Aug 2012 13:50:08 -0700 (PDT)
X-BeenThere: scala-ide-dev@googlegroups.com
Received: by 10.14.213.71 with SMTP id z47ls592943eeo.6.gmail; Wed, 22 Aug
 2012 13:50:07 -0700 (PDT)
Received: by 10.14.214.69 with SMTP id b45mr10870407eep.2.1345668607751;
        Wed, 22 Aug 2012 13:50:07 -0700 (PDT)
Received: by 10.14.214.69 with SMTP id b45mr10870404eep.2.1345668607715;
        Wed, 22 Aug 2012 13:50:07 -0700 (PDT)
Return-Path: <m...@antoras.de>
Received: from wp270.webpack.hosteurope.de (wp270.webpack.hosteurope.de. [2a01:488:42::50ed:8527])
        by gmr-mx.google.com with ESMTPS id d5si7201957eep.0.2012.08.22.13.50.07
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 22 Aug 2012 13:50:07 -0700 (PDT)
Received-SPF: neutral (google.com: 2a01:488:42::50ed:8527 is neither permitted nor denied by best guess record for domain of m...@antoras.de) client-ip=2a01:488:42::50ed:8527;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2a01:488:42::50ed:8527 is neither permitted nor denied by best guess record for domain of m...@antoras.de) smtp.mail=m...@antoras.de
Received: from hsi-kbw-149-172-102-247.hsi13.kabel-badenwuerttemberg.de ([149.172.102.247] helo=[192.168.0.198]); authenticated
	by wp270.webpack.hosteurope.de running ExIM with esmtpa
	id 1T4HsN-0000Rt-37; Wed, 22 Aug 2012 22:50:07 +0200
Message-ID: <50393A74.3080103@antoras.de>
Date: Sat, 25 Aug 2012 22:49:56 +0200
From: =?UTF-8?B?U2ltb24gU2Now6RmZXI=?= <m...@antoras.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120808 Thunderbird/15.0
MIME-Version: 1.0
To: scala-ide-dev@googlegroups.com
Subject: Re: [scala-ide-dev] NoSuchFieldError after code changes
References: <502CD507.8040705@antoras.de> <BBC158ED-F4FA-460C-B446-C27EFAAC9EDE@typesafe.com> <502FF014.4080707@antoras.de> <CAOwe9fYhq=jxbDLik+ky4niDrHJ8o1EdRg6C4k+XSitaNS=vwg@mail.gmail.com>
In-Reply-To: <CAOwe9fYhq=jxbDLik+ky4niDrHJ8o1EdRg6C4k+XSitaNS=vwg@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-bounce-key: webpack.hosteurope.de;m...@antoras.de;1345668607;0876a495;

Thanks for the help, Iulian. After deactivating -optimise the exception 
is gone and the code change can be succesfuly used.
I think this issue should be go into the FAQ or at least somewhere else 
in the documentation, shouldn't it?

On Di 21 Aug 2012 14:23:03 CEST, iulian dragos wrote:
>
>
> On Sat, Aug 18, 2012 at 9:42 PM, sschaef <m...@antoras.de
> <mailto:m...@antoras.de>> wrote:
>
>     I did a change in the body of foreach
>     https://github.com/scala-ide/__scala-ide/blob/master/org.__scala-ide.sdt.core/src/scala/__tools/eclipse/refactoring/__EditorHelpers.scala#L127
>     <https://github.com/scala-ide/scala-ide/blob/master/org.scala-ide.sdt.core/src/scala/tools/eclipse/refactoring/EditorHelpers.scala#L127>
>
>     After compiling I started core (in Run or Debug mode; it doesn't
>     matter) and tried to do some code completion. After choosing one
>     of the methods, suggested by the completion pop-up, the exception
>     occurs when control flow arrives at the changed foreach block.
>
>
> Are you using -optimize? Are you using Scala 2.9 or 2.10? If you're
> using the optimizer, it might be that some method in EditorHelpers is
> inlined at the call site, including the access to that field. After
> recompiling EditorHelpers, that field may have been renamed (looks
> synthetic anyway), but de call-site is not recompiled (since the
> incremental compiler only recompiles calling code if *signatures*
> change -- meaning it's not -optimize proof).
>
> iulian
>
>
>
>     On Sa 18 Aug 2012 19:33:07 CEST, Mirco Dotta wrote:
>
>         Hey Simon,
>
>         That is weird, can you tell us how to reproduce it?
>
>         -- Mirco
>
>         On Aug 16, 2012, at 1:09 PM, sschaef wrote:
>
>             After some edits to code completion I got the following
>             exception after running core inside of eclipse to test the
>             changes:
>
>             2012-08-16 12:49:27,791 DEBUG [main] - System.out -
>             java.lang.NoSuchFieldError: block$3
>                     at
>             scala.tools.eclipse.ui.__ScalaCompletionProposal.apply(__ScalaCompletionProposal.scala:__107)
>                     at
>             org.eclipse.jface.text.__contentassist.__CompletionProposalPopup.__insertProposal(__CompletionProposalPopup.java:__933)
>                     at
>             org.eclipse.jface.text.__contentassist.__CompletionProposalPopup.__insertSelectedProposalWithMask__(CompletionProposalPopup.java:__881)
>                     at
>             org.eclipse.jface.text.__contentassist.__CompletionProposalPopup.__verifyKey(__CompletionProposalPopup.java:__1307)
>                     at
>             org.eclipse.jface.text.__contentassist.__ContentAssistant$__InternalListener.verifyKey(__ContentAssistant.java:807)
>             ...
>
>             It looks like binary incompatibility. Interestingly all
>             works fine after a clean and rebuild of the project, but
>             with each new change it is broken again. How can that be?
>
>
>
>
>
>
>
> --
> « Je déteste la montagne, ça cache le paysage »
> Alphonse Allais