scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

Eclipse plugin fails to start when build output directory does not exist #1475

Closed scabug closed 13 years ago

scabug commented 16 years ago

If you try to open a .scala file in a project with a non-existent output directory, the plugin crashes.

Stack Trace: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$$TerminatingClassNotFoundException: An error occurred while automatically activating bundle ch.epfl.lamp.sdt.core (767). at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:125) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:427) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193) at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:313) at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227) at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1274) at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160) at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867) at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243) at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51) at org.eclipse.ui.internal.WorkbenchPlugin$$1.run(WorkbenchPlugin.java:267) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263) at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:233) at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:846) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:606) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594) at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:263) at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1410) at org.eclipse.ui.internal.EditorManager$$5.runWithException(EditorManager.java:944) at org.eclipse.ui.internal.StartupThreading$$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803) at org.eclipse.ui.internal.Workbench$$27.runWithException(Workbench.java:1361) at org.eclipse.ui.internal.StartupThreading$$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293) at org.eclipse.ui.internal.Workbench.access$$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236) Caused by: org.osgi.framework.BundleException: Exception in scala.tools.eclipse.Driver.start() of bundle ch.epfl.lamp.sdt.core. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400) at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111) ... 57 more Caused by: scala.tools.nsc.FatalError: Output location "C:\Projects\Fortisphere\RuleEngine\web\target\classes" not found at scala.tools.nsc.util.ClassPath$$Build.addDirsInPath(ClassPath.scala:310) at scala.tools.nsc.util.ClassPath$$Build.(ClassPath.scala:229) at scala.tools.nsc.Global.classPath(Global.scala:192) at scala.tools.eclipse.ScalaPlugin$$ProjectImpl$$class.initialize(ScalaPlugin.scala:269) at scala.tools.eclipse.Driver$$Project.initialize(Driver.scala:16) at scala.tools.eclipse.ScalaPlugin$$ProjectImpl$$compiler0$$.(ScalaPlugin.scala:168) at scala.tools.eclipse.Driver$$Project.compiler0(Driver.scala:16) at scala.tools.eclipse.javaelements.ScalaCompilationUnit.(ScalaCompilationUnit.scala:31) at scala.tools.eclipse.javaelements.ScalaCompilationUnit.(ScalaCompilationUnit.scala:35) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$$$anonfun$$scala$$tools$$eclipse$$javaelements$$ScalaCompilationUnitManager$$$$createCU$$1.apply(ScalaCompilationUnitManager.scala:145) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$$$anonfun$$scala$$tools$$eclipse$$javaelements$$ScalaCompilationUnitManager$$$$createCU$$1.apply(ScalaCompilationUnitManager.scala:144) at scala.tools.eclipse.ContentTypeUtils$$.withoutJavaLikeExtension(ContentTypeUtils.scala:54) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$.scala$$tools$$eclipse$$javaelements$$ScalaCompilationUnitManager$$$$createCU(ScalaCompilationUnitManager.scala:144) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$$$anonfun$$initCompilationUnits$$2$$$$anonfun$$apply$$1.apply(ScalaCompilationUnitManager.scala:171) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$$$anonfun$$initCompilationUnits$$2$$$$anonfun$$apply$$1.apply(ScalaCompilationUnitManager.scala:171) at scala.Iterator$$class.foreach(Iterator.scala:410) at scala.Iterator$$$$anon$$16.foreach(Iterator.scala:303) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$$$anonfun$$initCompilationUnits$$2.apply(ScalaCompilationUnitManager.scala:171) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$$$anonfun$$initCompilationUnits$$2.apply(ScalaCompilationUnitManager.scala:170) at scala.Iterator$$class.foreach(Iterator.scala:410) at scala.runtime.BoxedArray$$AnyIterator.foreach(BoxedArray.scala:45) at scala.Iterable$$class.foreach(Iterable.scala:256) at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24) at scala.tools.eclipse.javaelements.ScalaCompilationUnitManager$$.initCompilationUnits(ScalaCompilationUnitManager.scala:170) at scala.tools.eclipse.ScalaUIPlugin$$class.start(ScalaUIPlugin.scala:39) at scala.tools.eclipse.Driver.start(Driver.scala:13) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) ... 62 more

scabug commented 16 years ago

Imported From: https://issues.scala-lang.org/browse/SI-1475?orig=1 Reporter: Josh Suereth (joshua.suereth)

scabug commented 15 years ago

@milessabin said: Fixed in r16770.