build/debug workflow

25 views
Skip to first unread message

Matthew Neeley

unread,
Jul 19, 2010, 1:11:38 PM7/19/10
to scala-...@googlegroups.com
Hi All-

I previously asked about helping get things updated for helios; thanks
David and Matt for the help. I got code checked out (from the
tycho-reorg branch), was able to build, install the plugins from the
local update site, restart my workbench and then... a bunch of class
not found errors. There's probably some kind of issue with the
metadata or the build/runtime classpaths, who knows. So, I have
several questions about how you scala-ide devs build, test and debug
the ide plugins.

First, it seems the various top-level directories in the checkout are
valid PDE projects, so that you can import them into eclipse and work
on them there. You get special editors for the manifest files, build
properties, etc. Is this the way you all do things, or do you work on
the projects totally outside the IDE?

I understand that tycho is a nice tool for managing dependencies and
integrating with the maven workflow, but all the eclipse plugin
documentation I can find is centered around building from within the
PDE. They also talk about how to debug, how to launch a new workbench
that will run the most-recently built version of the plugin you're
working on, etc. How is this done with tycho the way you have things
set up? Do I always have to build from outside the ide, then launch a
new test workbench myself, install from the local update site, etc?
If so, how do I set up that test workbench so I can debug plugin
errors, get tracebacks, etc? As far as I can tell, Jin's helios patch
was mostly about setting up his environment so he could build from
within the PDE using ant and thus take advantage of the platform
infrastructure that is already there. But this would seem to totally
negate the whole tycho reorganization, unless I'm missing something.
How were things done before tycho? What are people doing now?

Sorry for all the newbie questions, but I feel like there's a lot of
complicated infrastructure I need to understand before I can really
help. Any info you have would be greatly appreciated, and I
definitely plan to document this all on the wiki so other can get up
and running more quickly than me.

Thanks,
Matthew

Matthew Neeley

unread,
Jul 19, 2010, 3:28:40 PM7/19/10
to scala-...@googlegroups.com
On Mon, Jul 19, 2010 at 10:43 AM, David Bernard
<david.be...@gmail.com> wrote:
>
> I import project following project into my eclipse (as eclipse project
> or as maven project ;) with m2eclipse) :
> * org.scala-ide.sdt.core
> * org.scala-ide.sdt.feature
>
Are you using eclipse 3.5.x for this, or already self-hosting in 3.6?
Also, when you import these projects into eclipse, is maven/tycho
doing the build behind the scenes regardless of which way it is
imported into eclipse, or does eclipse do the build itself?


> (sometime to read the source I import/open and then close
> org.scala-ide.sdt.aspects)
>
> I did live test of change :
> * via Eclipse > run Eclipse Appication (I reduce the number of plugins
> to minimum) I can dump/send you my launcher script if you want.

I'd appreciate if you could send that. Can this be set up using the
standard eclipse run configuration editors, or does it require editing
raw XML?

-Matthew

David Bernard

unread,
Jul 19, 2010, 3:53:08 PM7/19/10
to scala-...@googlegroups.com
On Mon, Jul 19, 2010 at 21:28, Matthew Neeley <mne...@gmail.com> wrote:
> On Mon, Jul 19, 2010 at 10:43 AM, David Bernard
> <david.be...@gmail.com> wrote:
>>
>> I import project following project into my eclipse (as eclipse project
>> or as maven project ;) with m2eclipse) :
>> * org.scala-ide.sdt.core
>> * org.scala-ide.sdt.feature
>>
> Are you using eclipse 3.5.x for this, or already self-hosting in 3.6?

As i work on 3.5.x, I imported project into 3.5.x.
I don't know how to code for 3.6 from 3.5.x, so IMO, until you'll be
able to create an update-site for 3.6 and use scala-ide with e3.6 you
will have to code with editor + maven.
Then you will use/eat your own build to improve 3.6 support.

Doing cross eclipse dev is not the simple way to start contributing ;-)

> Also, when you import these projects into eclipse, is maven/tycho
> doing the build behind the scenes regardless of which way it is
> imported into eclipse, or does eclipse do the build itself?

under 3.5 (my config)
if you import as existing project then eclipse do the build itself via
Scala-IDE (other version installed from http update-site or your own)
if you import as maven project with m2eclipse + m2eclipse-scala +
scala-ide installed, maven will only do some resources processing (~
nothing) and delegate to scala-ide

under 3.6
if you don't have scala-ide but m2eclipse, i suppose you could edit
source (as raw text) and build (run maven from command line, or
run-as>maven ... menu on project)

>
>
>> (sometime to read the source I import/open and then close
>> org.scala-ide.sdt.aspects)
>>
>> I did live test of change :
>> * via Eclipse > run Eclipse Appication (I reduce the number of plugins
>> to minimum) I can dump/send you my launcher script if you want.
>
> I'd appreciate if you could send that.  Can this be set up using the
> standard eclipse run configuration editors, or does it require editing
> raw XML?

Args, I currently testing some additional module with it.
To create the run configuration (under eclipse):
1. open META-INF/MANIFEST.MF
2. on 'Overview' tab, hit 'Launch an Ecplise Application' (Shift+Alt+X E)
3. play with the eclipse env with your plugin
4. back on original Eclipse, call Run >Run Configurations ... , under
EclipseApplication select the newly created configuration adjust name,
and plugins (enabled, deselect all, select yours, hit add required,
validate, apply, run)

/davidB

>
> -Matthew
>

Matthew Neeley

unread,
Jul 19, 2010, 9:44:32 PM7/19/10
to scala-...@googlegroups.com
Thanks so much for the information. Getting closer (I think), but
still more questions.

I tried running a maven build in this way from inside eclipse
(helios), but I can't figure out how to do the equivalent of the -P
helios options used in the build scripts. When I run the build it
starts adding galileo repos and (I assume) building for galileo. Any
thoughts here?

>>
>>
>>> (sometime to read the source I import/open and then close
>>> org.scala-ide.sdt.aspects)
>>>
>>> I did live test of change :
>>> * via Eclipse > run Eclipse Appication (I reduce the number of plugins
>>> to minimum) I can dump/send you my launcher script if you want.
>>
>> I'd appreciate if you could send that.  Can this be set up using the
>> standard eclipse run configuration editors, or does it require editing
>> raw XML?
>
> Args, I currently testing some additional module with it.
> To create the run configuration (under eclipse):
> 1. open META-INF/MANIFEST.MF
> 2. on 'Overview' tab, hit 'Launch an Ecplise Application' (Shift+Alt+X E)
> 3. play with the eclipse env with your plugin
> 4. back on original Eclipse, call Run >Run Configurations ... , under
> EclipseApplication select the newly created configuration adjust name,
> and plugins (enabled, deselect all, select yours, hit add required,
> validate, apply, run)
>

I can launch with a run configuration, but the plugins are not
activated because it says there are missing dependencies on the
bundles

org.scala-ide.scala.library
org.scala-ide.scala.compiler
org.scala-refactoring.library
scalariform

these are getting built by the command-line maven build and the jars
show up in the local update site, but how do I tell the eclipse PDE
project how to find these so that the dependencies are satisfied? I
tried adding the built jars and the maven projects to the .core
plugin's build path, but neither of those things seemed to work.

cheers,
Matthew

David Bernard

unread,
Jul 20, 2010, 2:44:52 AM7/20/10
to scala-...@googlegroups.com

Properties of your project > Maven therer is field "Active Maven Profiles"
Else In the Run Conffiguration, I think you could complete the
configuration of your build command : "Maven Build" section.
Else you could edit (on your branch) org.scala-ide.build/pom.xml and
move the <activeByDefault>true</activeByDefault> from profile
"galileo" to "helios"

My hackerie (I'm not sure, it's the right solution) :
I installed the plugins in my main eclipse and use the "add required" plugin.
Else you need to have those project as eclipse project.

Sorry to not be helpfull about cross eclipse build/test (I never did it).

>
> cheers,
> Matthew
>

Jin Mingjian

unread,
Jul 20, 2010, 8:49:18 AM7/20/10
to scala-...@googlegroups.com
I may not grasp all of your meanings. Generally, you can launch a Eclipse instance to run and debug your SDT. For building, my way is just one in many ways. Tycho is the way, ant script is another way. If you have installed SDT now, SDT is also one way. That is, SDT can build the sources for you directly. Then you can run/debug the Eclipse Instance(contributed to Platform by PDE). I almost work in this mode recently, exception with the crash of SDT in some cases. 


2010/7/20 Matthew Neeley <mne...@gmail.com>

Jin Mingjian

unread,
Jul 20, 2010, 8:52:26 AM7/20/10
to scala-...@googlegroups.com
David, good explanation. I should your reply first:)

Matthew Neeley

unread,
Jul 20, 2010, 1:38:09 PM7/20/10
to scala-...@googlegroups.com
On Mon, Jul 19, 2010 at 11:44 PM, David Bernard
<david.be...@gmail.com> wrote:
>> I tried running a maven build in this way from inside eclipse
>> (helios), but I can't figure out how to do the equivalent of the -P
>> helios options used in the build scripts.  When I run the build it
>> starts adding galileo repos and (I assume) building for galileo.  Any
>> thoughts here?
>>
>
> Properties of your project > Maven therer is  field "Active Maven Profiles"
> Else In the Run Conffiguration, I think you could complete the
> configuration of your build command : "Maven Build" section.
> Else you could edit (on your branch) org.scala-ide.build/pom.xml and
> move the <activeByDefault>true</activeByDefault> from profile
> "galileo" to "helios"
>
This seems to work. I changed the active profile in the build pom, so
I can build with the command line script without any arguments. Also
added the profile in the maven build run configuration, so I can do
the build with maven from inside eclipse.


>> I can launch with a run configuration, but the plugins are not
>> activated because it says there are missing dependencies on the
>> bundles
>>
>> org.scala-ide.scala.library
>> org.scala-ide.scala.compiler
>> org.scala-refactoring.library
>> scalariform
>>
>> these are getting built by the command-line maven build and the jars
>> show up in the local update site, but how do I tell the eclipse PDE
>> project how to find these so that the dependencies are satisfied?  I
>> tried adding the built jars and the maven projects to the .core
>> plugin's build path, but neither of those things seemed to work.
>
> My hackerie (I'm not sure, it's the right solution) :
> I installed the plugins in my main eclipse and use the "add required" plugin.
> Else you need to have those project as eclipse project.
>
> Sorry to not be helpfull about cross eclipse build/test (I never did it).
>

I've searched around and seen that other people have the same problems
with dependencies when trying to use eclipse, so for now I've decide
to punt on this issue. I just start up a workbench using a run
configuration with the scala plugins deactivated, then use the local
update site (built previously by maven) to install the plugins.

This works, but the plugins do not install and run because of a
missing dependency. It says org.scala-refactoring.library depends on
junit-0.0.0 and this bundle can't be resolved. Shouldn't the maven
build be managing the transitive dependencies when it build the
refactoring library? Also what's with the 0.0.0 version number? I
see these all over (for example in the various feature.xml files);
does this mean any version number will do, or get the latest version,
or something like that?

Thanks again for the help.

Cheers,
Matthew

David Bernard

unread,
Jul 21, 2010, 5:12:26 PM7/21/10
to scala-...@googlegroups.com

refactoring library is provide by an other update-site (listed in main pom.xml)
Mirko (the author) doesn't seem (like eclipse, PDE,...) to separate
test and main dependencies.
It is strange as junit plugins are provided with default eclipse
distribution (classic and java developper).
Do you have some *junit* jar into your helios's plugins directory ?

>  Also what's with the 0.0.0 version number? I
> see these all over (for example in the various feature.xml files);
> does this mean any version number will do, or get the latest version,
> or something like that?

I read 0.0.0 as "unspecified", "latest". I don't know exactly, I use
it into feature.xml and site.xml to not have to keep the value
uptodate with plugins and features.

>
> Thanks again for the help.

Do made some progress ?

> Cheers,
> Matthew
>

/davidB

Matthew Neeley

unread,
Jul 22, 2010, 1:19:59 PM7/22/10
to scala-...@googlegroups.com
>
> Do made some progress ?
>
> /davidB
>

I'm getting an error while maven is building the core ide plugin. For
some reason Maven continues on happily with the build even after the
error, which is why I hadn't noticed this before. It's an out of
memory error happening in the scala compiler (see traceback below). I
turned on maven debug output, but still can't tell what file is being
compiled when the error happens. I also set MAVEN_OPTS=-Xmx1024m to
increase the heap space, but that doesn't solve the problem, so I
don't know whether I'm just running out of memory, or seeing some sort
of compiler bug. Any thoughts about finding which file, and how much
memory I should need for the build? Also, when I look at the final
org.scala-ide.cor_xxx.jar that gets packaged up, it is only 400kB,
while the version installed in 3.5.2 is something like 1.3MB, so I'm
guessing there is a lot missing from the package.

cheers,
Matthew

Matthew Neeley

unread,
Jul 22, 2010, 1:59:08 PM7/22/10
to scala-...@googlegroups.com
On Thu, Jul 22, 2010 at 10:29 AM, David Bernard
<david.be...@gmail.com> wrote:
> MAVEN_OPTS has no effect on scala compiler because it's a forked
> process you should edit pom.xml to define jvmArgs.
>
> ~~~
>      <plugin>
>        <groupId>org.scala-tools</groupId>
>        <artifactId>maven-scala-plugin</artifactId>
>        <version>2.14</version>
>        <executions>
>          <execution>
>            <goals>
>              <goal>compile</goal>
>            </goals>
>          </execution>
>        </executions>
>        <configuration>
>          <jvmArgs>
>            <jvmArg>-Xms64m</jvmArg>
>            <jvmArg>-Xmx1024m</jvmArg>
>          </jvmArgs>
>        </configuration>
>      </plugin>
> ~~~
>
>
> (see http://scala-tools.org/mvnsites/maven-scala-plugin/usage_compile.html )
>
> Could you send me a full console capture (not stopping after an OOM is
> a bug of maven or maven-scala-compiler (I'm the lead dev of the
> plugin)) ?
>
> /davidB
>

Great, with more heap space the build works. There is a compile
error, but at least it stops and shows me where the error is so I can
try to fix it. I've attached the gory details of the debug output
with the OOM error that did not stop the build. There's actually only
one [ERROR] line in the whole thing, right in the middle of the
relevant traceback so it's easy to find, though if you're writing
maven plugins you're probably used to looking at this kind of output
:-)

-Matthew

OOM.txt

Matthew Neeley

unread,
Jul 22, 2010, 9:51:54 PM7/22/10
to scala-...@googlegroups.com
I can now build and install the plugin on helios, which is good
progress I guess. It doesn't seem to work very well, though. In
particular, .scala source files still have a java icon and are clearly
getting analysed as java files because all sorts of errors about
missing semicolons and such are showing up. Any hints about where to
look for a problem like this? I've checked the .metadata/.log file
and there are no errors being reported there, so something about
detecting the scala file type must be broken.

Another issue: I tried installing the scala plugin in the eclipse
installation where I had been working on developing the plugin and
already had installed AJDT along with its weaving feature. When I
restarted eclipse after the install, it went into an infinite loop
with the launcher window appearing, disappearing, etc. Again, no
errors were logged anywhere I could see them, but clearly the
bootstrapping was broken. I tried again on a fresh installation of
eclipse, this time installing AJDT _without_ its weaving feature, and
then just installing the weaving feature of the scala plugin, and now
at least eclipse boots, though the plugin has issues as described
above. Any thoughts? I used the AJDT release update site:
http://download.eclipse.org/tools/ajdt/36/update

Thanks for all your help. I feel like this is pretty close.

Cheers,
Matthew

David Bernard

unread,
Jul 23, 2010, 3:01:44 AM7/23/10
to scala-...@googlegroups.com
Hello,

The Milles advice about having AJDT + scala in same install is to :
1. install AJDT + weaving feature
2. install Scala only, no weaving feature

I must admit, that run into trouble in my 3.5.2 install with AJDT (and
did a fresh install without AJDT to be able to work)

May be, it's time to share your work.
Do you have permissions to push your branch somewhere (scala assembla
git repository or github) ?
git push origin wip_helios
Can you deploy your update site on a static web server ?

Thanks for your time and feedback

/davidB

David Bernard

unread,
Jul 23, 2010, 3:07:31 AM7/23/10
to scala-...@googlegroups.com
typo :

The advice (from Miles) ....

Matthew Neeley

unread,
Jul 23, 2010, 11:54:23 AM7/23/10
to scala-...@googlegroups.com
I pushed my wip_helios branch to github: g...@github.com:maffoo/scala-ide.git
(Hope I did this correctly; I'm a total git novice.)

The problem seems to be that JDT weaving service is not getting
started. I had a fresh eclipse 3.6 installation, installed the plugin
from local update site, then looked at Eclipse preference and under
JDT Weaving it says the service is disabled and gives the option to
start it. When I enable the service and then restart Eclipse it still
shows up as disabled. Not sure what's up or how to fix it, but I'll
continue to explore.

-Matthew


On Fri, Jul 23, 2010 at 12:01 AM, David Bernard

David Bernard

unread,
Jul 23, 2010, 12:02:09 PM7/23/10
to scala-...@googlegroups.com
I can't help, I'd got the same issue with 3.5.2 last time I try to
have AJDT and Scala in the same eclipse install.
I'll try your push tomorrow.

/davidB

Matthew Neeley

unread,
Jul 23, 2010, 12:20:35 PM7/23/10
to scala-...@googlegroups.com
I also uploaded the update site to
http://maffoo.net/scala-ide/site-helios if you'd rather try it from
there and not fiddle with the build.

The weird thing about the weaving service issue is that it's even
happening in a fresh eclipse installation with AJDT completely out of
the picture. But glad to know it's not specific to me or to helios.

-Matthew


On Fri, Jul 23, 2010 at 9:02 AM, David Bernard

David Bernard

unread,
Jul 24, 2010, 9:57:53 AM7/24/10
to scala-...@googlegroups.com
Matthew,

Thank for your works, I spent few hours to complete your job.
I attach I patch who allow me to install Scala-IDE on helios and test it with a basic project.
I used the AspectJ Equinox Weaving feature (not the own provide by Scala-IDE), so the generation of the update site should be fixe to us the "official".

/davidB

0001-fix-update-configuration-for-aspects.patch

Matthew Neeley

unread,
Jul 24, 2010, 4:45:22 PM7/24/10
to scala-...@googlegroups.com
Nice! Your patch works for me too. One strange thing: after
installation, I still have to manually enable the JDT Weaving service.
Is there some way to make this automatic? Also, if I add the -clean
command line option to my eclipse.ini, it seems to prevent reset the
status of the JDT Weaving service so that eclipse always starts with
it disabled. Is there some metadata about starting the service that
gets destroyed or overwritten by the -clean option? Maybe this is
just a consequence of using the JDT Weaving service from AJDT, that it
has a different default state than the custom build being used on
galileo?

I also had to remove and then re-add the Scala Nature on a few
existing projects to get them properly compiled and I saw a few
failures in the presentation compiler, but generally things are
working. I've update the update site at
http://maffoo.net/scala-ide/site-helios if anyone else wants to give
it a try. Thanks for getting the last bits fixed!

-matthew

David Bernard

unread,
Jul 24, 2010, 5:26:28 PM7/24/10
to scala-...@googlegroups.com
On 24/07/2010 22:45, Matthew Neeley wrote:
> Nice! Your patch works for me too. One strange thing: after
> installation, I still have to manually enable the JDT Weaving service.
> Is there some way to make this automatic? Also, if I add the -clean
> command line option to my eclipse.ini, it seems to prevent reset the
> status of the JDT Weaving service so that eclipse always starts with
> it disabled. Is there some metadata about starting the service that
> gets destroyed or overwritten by the -clean option? Maybe this is
> just a consequence of using the JDT Weaving service from AJDT, that it
> has a different default state than the custom build being used on
> galileo?

Yes I notice the issue (and others), IMO it's an AJDT behavior.
Against Miles advice, I don't use -clean (only explicitly sometimes).

>
> I also had to remove and then re-add the Scala Nature on a few
> existing projects to get them properly compiled and I saw a few
> failures in the presentation compiler, but generally things are
> working. I've update the update site at
> http://maffoo.net/scala-ide/site-helios if anyone else wants to give
> it a try. Thanks for getting the last bits fixed!

Please update the ticket, to show the progress an try to have user feedback.
Tomorrow I'll push your wip_tuning branch as a branch on assembla git repo (or you can do it, ask Miles (privately) for permission).
I'll see how we can link the feature to use the AJDT weaving instead of our own.

Good job.

/davidB

Matthew Neeley

unread,
Jul 24, 2010, 5:55:42 PM7/24/10
to scala-...@googlegroups.com
I've updated the ticket with links to my github clone and the test
update site. Hopefully folks will try it out and give feedback.

-matthew

Matthew Neeley

unread,
Jul 24, 2010, 9:11:14 PM7/24/10
to scala-...@googlegroups.com
I put some detailed instructions up on the wiki about setting things
up for development with/for helios, now that I've got it working:

https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho

Would be nice to have someone else try this out and let me know how it
works for you.

Cheers,
Matthew

Jin Mingjian

unread,
Jul 24, 2010, 11:42:40 PM7/24/10
to scala-...@googlegroups.com
Hi, all, good work, although I can not test it recently for my network limitation:)

2010/7/25 Matthew Neeley <mne...@gmail.com>

David Bernard

unread,
Jul 25, 2010, 4:32:21 AM7/25/10
to scala-...@googlegroups.com
Matthew,

I push back your stuff under assembla repo and I update/merge latest
changeset from tycho-reorg into wip_helios.

/davidB

Miles Sabin

unread,
Jul 25, 2010, 5:44:29 AM7/25/10
to scala-...@googlegroups.com
This is great stuff! Thanks both of you :-)

Cheers,


Miles

--
Miles Sabin
tel: +44 7813 944 528
gtalk: mi...@milessabin.com
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin

Lachlan Deck

unread,
Jul 27, 2010, 1:15:15 PM7/27/10
to scala-...@googlegroups.com
Hi there,

On 25/07/2010, at 11:11 AM, Matthew Neeley wrote:

> I put some detailed instructions up on the wiki about setting things
> up for development with/for helios, now that I've got it working:
>
> https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho
>
> Would be nice to have someone else try this out and let me know how it
> works for you.

Just going through this at the moment and there's a step missing somewhere.
After importing the projects from the wip_helios branch into eclipse via File > Import > git etc...

The projects
- org.scala-ide.sdt.aspects
- org.scala-ide.sdt.core
- org.scala-ide.sdt.feature
- org.scala-ide.sdt.update-site
- org.scala-ide.sdt.weaving-feature

are failing to compile due to a missing dependency.

e.g.,
28/07/10 3:11:36 AM: Build errors for org.scala-ide.sdt.aspects; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project org.scala-ide.sdt.aspects: Unable to get dependency information for org.scala-ide:org.scala-ide.scala.library:jar:2.8.0: Failed to process POM for org.scala-ide:org.scala-ide.scala.library:jar:2.8.0: Non-resolvable parent POM org.scala-ide:scala-toolchain-for-eclipse:2.8.0 for org.scala-ide:org.scala-ide.scala.library:2.8.0: Failed to resolve POM for org.scala-ide:scala-toolchain-for-eclipse:2.8.0 due to Missing:
----------
1) org.scala-ide:scala-toolchain-for-eclipse:pom:2.8.0
----------
1 required artifact is missing.

for artifact:
org.scala-ide:scala-toolchain-for-eclipse:pom:2.8.0

from the specified remote repositories:
helios (http://download.eclipse.org/releases/helios/, releases=false, snapshots=false),
jdt-weaving (http://download.eclipse.org/tools/ajdt/36/update, releases=false, snapshots=false),
scala-refactoring (http://download.scala-ide.org/scala-refactoring, releases=false, snapshots=false),
scalariform (http://download.scala-ide.org/scalariform, releases=false, snapshots=false),
scala-tools.release (http://scala-tools.org/repo-releases, releases=true, snapshots=false),
scala-tools.snapshot (http://scala-tools.org/repo-snapshots, releases=true, snapshots=true),
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

with regards,
--

Lachlan Deck

David Bernard

unread,
Jul 27, 2010, 1:49:20 PM7/27/10
to scala-...@googlegroups.com
if you 're under unix and have maven 3 installed :
~~~
cd org.scala-ide.build
./build-ide-release.sh
~~~

else you could try under eclipse with m2eclipse plugin (not tested as
I used shell and eclipse only for project org.scala-ide.sdt.core) :
open folder org.scala-ide.build
on 'toolchain-pom.xml' => run as > install
after
on 'pom.xml' (same dir) => run as > install

/davidB

Adi

unread,
Jul 27, 2010, 5:22:12 PM7/27/10
to Scala IDE Dev
just read the https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho
great! i try to investigate and bugfix for helios.
unfortunally, i can't find the wip_helios branch.

adi



On 25 Jul., 10:32, David Bernard <david.bernard...@gmail.com> wrote:
> Matthew,
>
> I push back your stuff under assembla repo and I update/merge latest
> changeset from tycho-reorg into wip_helios.
>
> /davidB
>
> On Sun, Jul 25, 2010 at 05:42, Jin Mingjian <jin....@gmail.com> wrote:
> > Hi, all, good work, although I can not test it recently for my network
> > limitation:)
>
> > 2010/7/25 Matthew Neeley <mnee...@gmail.com>
>
> >> I put some detailed instructions up on the wiki about setting things
> >> up for development with/forhelios, now that I've got it working:
>
> >>https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho
>
> >> Would be nice to have someone else try this out and let me know how it
> >> works for you.
>
> >> Cheers,
> >> Matthew
>
> >> On Sat, Jul 24, 2010 at 2:55 PM, Matthew Neeley <mnee...@gmail.com> wrote:
> >> > I've updated the ticket with links to my github clone and the test
> >> > update site.  Hopefully folks will try it out and give feedback.
>
> >> > -matthew
>
> >> > On Sat, Jul 24, 2010 at 2:26 PM, David Bernard
> >> > <david.bernard...@gmail.com> wrote:
> >> >> On 24/07/2010 22:45, Matthew Neeley wrote:
>
> >> >>> Nice!  Your patch works for me too.  One strange thing: after
> >> >>> installation, I still have to manually enable the JDT Weaving service.
> >> >>>  Is there some way to make this automatic?  Also, if I add the -clean
> >> >>> command line option to my eclipse.ini, it seems to prevent reset the
> >> >>> status of the JDT Weaving service so that eclipse always starts with
> >> >>> it disabled.  Is there some metadata about starting the service that
> >> >>> gets destroyed or overwritten by the -clean option?  Maybe this is
> >> >>> just a consequence of using the JDT Weaving service from AJDT, that it
> >> >>> has a different default state than the custom build being used on
> >> >>> galileo?
>
> >> >> Yes I notice the issue (and others), IMO it's an AJDT behavior.
> >> >> Against Miles advice, I don't use -clean (only explicitly sometimes).
>
> >> >>> I also had to remove and then re-add the Scala Nature on a few
> >> >>> existing projects to get them properly compiled and I saw a few
> >> >>> failures in the presentation compiler, but generally things are
> >> >>> working.  I've update the update site at
> >> >>>http://maffoo.net/scala-ide/site-heliosif anyone else wants to give
> >> >>> it a try.  Thanks for getting the last bits fixed!
>
> >> >> Please update the ticket, to show the progress an try to have user
> >> >> feedback.
> >> >> Tomorrow I'll push your wip_tuningbranchas abranchon assembla git
> >> >> repo
> >> >> (or you can do it, ask Miles (privately) for permission).
> >> >> I'll see how we can link the feature to use the AJDT weaving instead of
> >> >> our
> >> >> own.
>
> >> >> Good job.
>
> >> >> /davidB
>
> >> >>> -matthew
>
> >> >>> On Sat, Jul 24, 2010 at 6:57 AM, David Bernard
> >> >>> <david.bernard...@gmail.com>  wrote:
>
> >> >>>> Matthew,
>
> >> >>>> Thank for your works, I spent few hours to complete your job.
> >> >>>> I attach I patch who allow me to install Scala-IDE onheliosand test
> >> >>>> it
> >> >>>> with a basic project.
> >> >>>> I used the AspectJ Equinox Weaving feature (not the own provide by
> >> >>>> Scala-IDE), so the generation of the update site should be fixe to us
> >> >>>> the
> >> >>>> "official".
>
> >> >>>> /davidB
>
> >> >>>> On 23/07/2010 18:20, Matthew Neeley wrote:
>
> >> >>>>> I also uploaded the update site to
> >> >>>>>http://maffoo.net/scala-ide/site-heliosif you'd rather try it from

Matthew Neeley

unread,
Jul 27, 2010, 6:53:19 PM7/27/10
to scala-...@googlegroups.com
On Tue, Jul 27, 2010 at 2:22 PM, Adi <spaced...@gmail.com> wrote:
> just read the https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho
> great! i try to investigate and bugfix for helios.
> unfortunally, i can't find the wip_helios branch.
>
> adi
>
Which repo are you using, mine from github or the official one on
assembla? Are you using Egit inside eclipse? When you clone a repo
with Egit it will show you the available branches, so it should be
easy to find the necessary branch.

-Matthew

Ilya Klyuchnikov

unread,
Jul 28, 2010, 4:11:16 AM7/28/10
to Scala IDE Dev


On Jul 25, 5:11 am, Matthew Neeley <mnee...@gmail.com> wrote:
> I put some detailed instructions up on the wiki about setting things
> up for development with/for helios, now that I've got it working:
>
> https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho
>
> Would be nice to have someone else try this out and let me know how it
> works for you.
>
> Cheers,
> Matthew
>

Matthew,

I tried these instructions and did not succeed. When I launch
org.scala-ide.sdt.update-site/pom.xml "Run as Maven Install", I get:

[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build
is platform dependent.
[INFO] Resolving target platform for project MavenProject: org.scala-
ide:org.scala-ide.sdt.update-site:1.0.0-SNAPSHOT @ /Users/ilya/
Documents/repos/scala-ide/org.scala-ide.sdt.update-site/pom.xml
log4j:WARN No appenders could be found for logger
(org.apache.commons.httpclient.HttpClient).
log4j:WARN Please initialize the log4j system properly.
[INFO] Adding repository http://download.eclipse.org/releases/helios/
[INFO] Adding repository http://download.eclipse.org/releases/helios/
[INFO] Adding repository http://download.eclipse.org/tools/ajdt/36/update
[INFO] Adding repository http://download.eclipse.org/tools/ajdt/36/update
[INFO] Adding repository http://download.scala-ide.org/scala-refactoring
[INFO] Adding repository http://download.scala-ide.org/scala-refactoring
[INFO] Adding repository http://download.scala-ide.org/scalariform
[INFO] Adding repository http://download.scala-ide.org/scalariform
[INFO] Cannot complete the request. Generating details.
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/
Minimum-1.1, osgi.ws=cocoa, osgi.arch=x86_64, osgi.os=macosx,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[Software being installed: org.scala-ide.sdt.update-site raw:
1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT, Missing
requirement: org.scala-ide.sdt.update-site raw:1.0.0.'SNAPSHOT'/
format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT requires 'org.scala-
ide.sdt.feature.feature.group 0.0.0' but it could not be found]
[ERROR] Internal error: java.lang.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the problem is unsatisfiable. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException

Do these instructions work for you with fresh (empty) local maven
repo?

Thanks,

Ilya

Ilya Klyuchnikov

unread,
Jul 28, 2010, 3:41:35 AM7/28/10
to Scala IDE Dev
On Jul 25, 5:11 am, Matthew Neeley <mnee...@gmail.com> wrote:
> I put some detailed instructions up on the wiki about setting things
> up for development with/for helios, now that I've got it working:
>
> https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho
>
> Would be nice to have someone else try this out and let me know how it
> works for you.
>
> Cheers,
> Matthew

Hi Matthew, I tries these instructions, and unfortunately, they do not
work for me.
When I launch org.scala-ide.sdt.update-site/pom.xml "Run as maven
install" I get following in the console:
I guess that you have some "magic" stuff (results of previous builds/
installs) in you local maven repo.

Does these instructions work for you on fresh (empty) local maven
repo?

Thanks.

Ilya

David Bernard

unread,
Jul 28, 2010, 4:43:04 AM7/28/10
to scala-...@googlegroups.com
try (require maven3) :

~~~
cd org.scala-ide.build
./build-ide-release.sh
~~~
or (same as content of script) :
~~~
cd org.scala-ide.build
mvn -f toolchain-pom.xml install
mvn -f pom.xml install
~~~

that should build everything (from bundle for scala-library to
update-site for helios)

/davidB

Ilya Klyuchnikov

unread,
Jul 28, 2010, 5:39:02 AM7/28/10
to Scala IDE Dev


On Jul 28, 12:43 pm, David Bernard <david.bernard...@gmail.com> wrote:
> try (require maven3) :
> ~~~
> cd org.scala-ide.build
> ./build-ide-release.sh
> ~~~
> or (same as content of script) :
> ~~~
> cd org.scala-ide.build
> mvn -f toolchain-pom.xml install
> mvn -f pom.xml install
> ~~~
>
> that should build everything (from bundle for scala-library to
> update-site for helios)
>
> /davidB
>


Thanks, it works. After invoking maven from command line local repo is
populated with new artifacts. And then invoking maven targets from
eclipse is OK.

I experimented a bit and found that problem with m2eclipse is that it
doesn't understand sometimes parent pom if it is not named "pom.xml"

Scala IDE has "toolchain-pom.xml" and it seems (just because of name)
to be a problem to build everything in eclipse with fresh maven local
repo.

Will it make sense to reorganize poms in such a way that every pom
will be "pom.xml" (exactly)? It will ease work of other new-coming
contributors.

Thanks,

Ilya.

Lachlan Deck

unread,
Aug 3, 2010, 10:58:08 PM8/3/10
to scala-...@googlegroups.com
Hi there,

On 25/07/2010, at 11:11 AM, Matthew Neeley wrote:

> I put some detailed instructions up on the wiki about setting things
> up for development with/for helios, now that I've got it working:
>
> https://www.assembla.com/wiki/show/scala-ide/Setup_with_Helios_and_Tycho
>
> Would be nice to have someone else try this out and let me know how it
> works for you.

I'm still having no luck in building all modules.

I can successfully build/install:
- org.scala-ide.scala.compiler
- org.scala-ide.scala.library


- org.scala-ide.sdt.aspects
- org.scala-ide.sdt.core
- org.scala-ide.sdt.feature

- org.scala-ide.sdt.weaving.feature

But when doing Run > Maven Install on
- org.scala-ide.sdt.update-site

I get the below stack trace. What am I missing?

Mac OS X 10.6.x, Eclipse Helios Java EE, etc.

Thanks.

with regards,
--

Lachlan Deck


[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.

[INFO] Resolving target platform for project MavenProject: org.scala-ide:org.scala-ide.sdt.update-site:1.0.0-SNAPSHOT @ /Users/ldeck/Developer/scala/scala-ide/org.scala-ide.sdt.update-site/pom.xml


log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient).
log4j:WARN Please initialize the log4j system properly.
[INFO] Adding repository http://download.eclipse.org/releases/helios/
[INFO] Adding repository http://download.eclipse.org/releases/helios/
[INFO] Adding repository http://download.eclipse.org/tools/ajdt/36/update
[INFO] Adding repository http://download.eclipse.org/tools/ajdt/36/update
[INFO] Adding repository http://download.scala-ide.org/scala-refactoring
[INFO] Adding repository http://download.scala-ide.org/scala-refactoring
[INFO] Adding repository http://download.scala-ide.org/scalariform
[INFO] Adding repository http://download.scala-ide.org/scalariform
[INFO] Cannot complete the request. Generating details.

{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1, osgi.ws=cocoa, osgi.arch=x86_64, osgi.os=macosx, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}
[Software being installed: org.scala-ide.sdt.update-site raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT, Missing requirement: org.scala-ide.sdt.feature.feature.group 1.0.0.201008041244 requires 'org.scala-ide.sdt.core [1.0.0.201007301349]' but it could not be found, Cannot satisfy dependency: org.scala-ide.sdt.update-site raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT depends on: org.scala-ide.sdt.feature.feature.group 0.0.0]

David Bernard

unread,
Aug 4, 2010, 2:27:45 AM8/4/10
to scala-...@googlegroups.com
Hello,

You need to build (install) other projects. see my previous email.

/davidB

Reply all
Reply to author
Forward
0 new messages