This page is no longer maintained — Please continue to the home page at www.scala-lang.org

eclipse-scala-plugin 2.8 rc - Install fails

4 replies
Hashbrown
Joined: 2009-11-16,
User offline. Last seen 42 years 45 weeks ago.

Trying to upgrade from 2.7.7 on mac osx leopard.  Appears from log file that it requires eclipse to be running on java 1.6, which means I woudl need the 64-bit eclipse version.  Is this a new restriction to use the plug-in or a bug?

!ENTRY org.eclipse.osgi 2 0 2009-11-14 17:55:05.604
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-11-14 17:55:05.604
!MESSAGE Bundle org.eclipse.jdt.apt.pluggable.core_1.0.201.R35x_v20090818-0225 [296] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-11-14 17:55:05.604
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-11-14 17:55:05.604
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-11-14 17:55:05.604
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0.
!SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-11-14 17:55:05.604
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-11-14 17:55:05.604
!MESSAGE Bundle org.eclipse.jdt.compiler.apt_1.0.201.R35x_v20090825-1530 [298] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-11-14 17:55:05.604
!MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-11-14 17:55:05.604
!MESSAGE Bundle org.eclipse.jdt.compiler.tool_1.0.100.v_972_R35x [299] was not resolved.
!SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2009-11-14 17:55:05.604
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6

!ENTRY org.eclipse.equinox.registry 4 0 2009-11-14 17:55:05.800
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.registry.osgi.Activator.stop() of bundle org.eclipse.equinox.registry.





--
Tweets: http://twitter.com/hashbrown1
Posts: http://www.HashbrownOnTheMic.com
milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: eclipse-scala-plugin 2.8 rc - Install fails

On Sun, Nov 15, 2009 at 11:15 PM, Hashbrown wrote:
> Trying to upgrade from 2.7.7 on mac osx leopard.  Appears from log file that
> it requires eclipse to be running on java 1.6, which means I woudl need the
> 64-bit eclipse version.  Is this a new restriction to use the plug-in or a
> bug?

Hmm ... that's annoying ... another 1.6-ism masked by an implicit.

Try again with tomorrow's build.

Cheers,

Miles

Hashbrown
Joined: 2009-11-16,
User offline. Last seen 42 years 45 weeks ago.
Re: eclipse-scala-plugin 2.8 rc - Install fails

Miles Sabin writes:

>
> On Sun, Nov 15, 2009 at 11:15 PM, Hashbrown wrote:
> > Trying to upgrade from 2.7.7 on mac osx leopard.  Appears from log file that
> > it requires eclipse to be running on java 1.6, which means I woudl need the
> > 64-bit eclipse version.  Is this a new restriction to use the plug-in or a
> > bug?
>
> Hmm ... that's annoying ... another 1.6-ism masked by an implicit.
>
> Try again with tomorrow's build.
>
> Cheers,
>
> Miles
>

Excellent, I'll update the plugin tomorrow and report results.

Thanks for the very prompt response!

-HB

Hashbrown
Joined: 2009-11-16,
User offline. Last seen 42 years 45 weeks ago.
Re: eclipse-scala-plugin 2.8 rc - Install fails

Brad writes

>
> Miles Sabin writes:
>
> >
> > On Sun, Nov 15, 2009 at 11:15 PM, Hashbrown wrote:
> > > Trying to upgrade from 2.7.7 on mac osx leopard.  Appears from log file
> > > that
> > > it requires eclipse to be running on java 1.6, which means I woudl need
> > > the
> > > 64-bit eclipse version.  Is this a new restriction to use the plug-in or a
> > > bug?
> >
> > Hmm ... that's annoying ... another 1.6-ism masked by an implicit.
> >
> > Try again with tomorrow's build.
> >
> > Cheers,
> >
> > Miles
> >
>
> Excellent, I'll update the plugin tomorrow and report results.
>
> Thanks for the very prompt response!
>
> -HB
>
>
The latest build of the plug(2.8.0.r19664-b20091116035131)
has solved my issue, thanks very much!

A few oddities to note for others,
after updating the plugin,
existing open editors may fail.
Close all scala editors, clean and rebuild your project.
This solved strange errors for me.

Nice surprise compared to 2.7.7 stable,
I no longer have to save the editor to get dependencies/references resolved,
happens automatically.

New issue:
Previously in the 2.7.7 stable, "Organize Imports" would wipe out
any scala imports.
Wanted to test this out in the new version, but received the
following error...

java.lang.reflect.InvocationTargetException
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread
(ModalContext.java:477)
at org.eclipse.jface.operation.ModalContext.run
(ModalContext.java:372)
at org.eclipse.jface.window.ApplicationWindow$1.run
(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run
(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2579)
at
org.eclipse.ui.internal.progress.ProgressManager$6.run
(ProgressManager.java:1203)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:70)
at
org.eclipse.ui.internal.progress.ProgressManager.runInUI
(ProgressManager.java:1197)
at
org.eclipse.jdt.ui.actions.OrganizeImportsAction.run
(OrganizeImportsAction.java:287)
at
org.eclipse.jdt.ui.actions.OrganizeImportsAction.run
(OrganizeImportsAction.java:201)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
(SelectionDispatchAction.java:278)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:250)
at org.eclipse.jface.action.Action.runWithEvent
(Action.java:498)
at
Caused by: java.lang.IllegalArgumentException: AST must not be null
at org.eclipse.jdt.core.dom.rewrite.ImportRewrite.create
(ImportRewrite.java:185)
at
org.eclipse.jdt.ui.CodeStyleConfiguration.createImportRewrite
(CodeStyleConfiguration.java:70)
at
org.eclipse.jdt.internal.corext.codemanipulation.
StubUtility.createImportRewrite(StubUtility.java:1454)
at
org.eclipse.jdt.internal.corext.codemanipulation.
OrganizeImportsOperation.createTextEdit
(OrganizeImportsOperation.java:427)
at
org.eclipse.jdt.internal.corext.codemanipulation.
OrganizeImportsOperation.run(OrganizeImportsOperation.java:398)
...

If you prefer, I can start a new thread.

Thanks for your hard work,
Brad

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Re: eclipse-scala-plugin 2.8 rc - Install fails

On Tue, Nov 17, 2009 at 1:30 AM, Brad wrote:
> The latest build of the plug(2.8.0.r19664-b20091116035131)
> has solved my issue, thanks very much!

Excellent ... thanks for the feedback.

> New issue:
> Previously in the 2.7.7 stable, "Organize Imports" would wipe out
> any scala imports.
> Wanted to test this out in the new version, but received the
> following error...

Right, this functionality is waiting on Mirko Stockers refactoring
work. For now I'll just disable the action ... could you create a Trac
ticket for this?

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland