Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] JDT version

Sorry, I meant SR1, not SRA. It seems my eyes/brain failed and managed to repeatedly transpose ‘jdt’ onto ‘pde’ and I was looking at the org.eclipse.pde.core plugin by mistake. K So sorry for the confusion that generated.

 

Your long answer does help, as now I at least know where to find newer builds if I need to test an upcoming version so developers can know if they need a short-term or long-term code workaround.

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of David M Williams
Sent: Sunday, October 26, 2014 3:53 AM
To: Tycho user list
Subject: Re: [tycho-user] JDT version

 

I am a bit confused by the numbers ... or, else I don't know what you mean by "SRA" ... if you mean "Luna SR1", it appears that 3.10.0.v20140902-0626 was the version released there.

That said, ... next confusing part ... normally I'd advise people to use "released" versions from
https://repo.eclipse.org/content/repositories/eclipse/
But, a) I do not see 3.10.0.v20140902-0626 there
And, b) I do not see 3.10.1.* there,
But, c) do see 3.11.0.v20140917-1904, there
which I assume is from our "Mars stream" -- as yet *unreleased*, so someone mistakenly put it in https://repo.eclipse.org/content/repositories/eclipse/ (which is supposed to have only formal releases).
[Thanh used to do this work, as far as I know, only him, ... perhaps there is a bug on it somewhere?].

All that said, there are *unreleased* versions in https://repo.eclipse.org/content/repositories/eclipse-staging/
which is what we in the Eclipse Platform use, specifically because we want to test the un-released compiler in our own builds.
Which I say just for "full disclosure". Still no 3.10.1 version there, so not sure where you are getting that number from?
(And, if anyone decides to use something from "eclipse-staging" beware that those versions "disappear" from time to time -- unlike most maven repositories -- it is intentionally a "test" or "staging" area, not released code).

To more directly address your question, besides "maven central", you would normally have to specify the repository where to find the jdt compiler you specify, with something like
    <pluginRepository>
      <id>cbi-jdt</id>
      <url>${cbi-jdt-repo.url}</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>

But .. in this case, I have no idea what "cbi-jdt-repo.url" to advise you to use, since "what you want" does not seem to be in any of the repos I am aware of.

I still hope the (long) background-answer helps you a little, though.

Good luck,









From:        Justin Georgeson <JGeorgeson@xxxxxxx>
To:        Tycho user list <tycho-user@xxxxxxxxxxx>,
Date:        10/24/2014 03:03 PM
Subject:        [tycho-user] JDT version
Sent by:        tycho-user-bounces@xxxxxxxxxxx





We just switched a project to Tycho 0.21.0 targeting Eclipse 4.4 with JDK8 compiler compliance, and we are seeing JDT crash
 
[ERROR] Internal compiler error: java.lang.ArrayIndexOutOfBoundsException: -1 at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)
 
I can find plenty of defects logged with the same error, and they pretty much all say they’re fixed, pre-Luna.
 
It looks like Tycho 0.21.0 is using JDT 3.10.0 from the original Luna release, while Luna SRA has JDT 3.10.1, so I wanted to try and use the newer version. I’ve tried this
 
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.tycho</groupId>
                    <artifactId>tycho-compiler-plugin</artifactId>
                    <version>${tychoVersion}</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.eclipse.jdt</groupId>
                            <artifactId>org.eclipse.jdt.core</artifactId>
                            <version>3.10.1.v20140902-1534</version>
                        </dependency>
                    </dependencies>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
 
But that fails because maven central doesn’t have that version. So how do I get Tycho to use the newer JDT?
 


This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message._______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top