这段时间在抽空学习scala,学肯定就要先把IDE装好,选择就是Eclipse scala ide插件,http://scala-ide.org/
安装好打开pom文件:
看detail报如下异常:
java.lang.NullPointerException
at org.eclipse.jface.preference.PreferenceConverter.getColor(PreferenceConverter.java:205)
at scala.tools.eclipse.util.EclipseUtils$PimpedPreferenceStore.getColor(EclipseUtils.scala:51)
at scala.tools.eclipse.properties.syntaxcolouring.ScalaSyntaxClass.getStyleInfo(ScalaSyntaxClass.scala:57)
at scala.tools.eclipse.properties.syntaxcolouring.ScalaSyntaxClass.getTextAttribute(ScalaSyntaxClass.scala:30)
at scala.tools.eclipse.lexical.AbstractScalaScanner$class.scala$tools$eclipse$lexical$AbstractScalaScanner$$getTextAttribute(AbstractScalaScanner.scala:27)
at scala.tools.eclipse.lexical.AbstractScalaScanner$class.scala$tools$eclipse$lexical$AbstractScalaScanner$$createToken(AbstractScalaScanner.scala:18)
at scala.tools.eclipse.lexical.AbstractScalaScanner$$anonfun$getToken$1.apply(AbstractScalaScanner.scala:15)
at scala.tools.eclipse.lexical.AbstractScalaScanner$$anonfun$getToken$1.apply(AbstractScalaScanner.scala:15)
at scala.collection.MapLike$class.getOrElse(MapLike.scala:128)
at scala.collection.AbstractMap.getOrElse(Map.scala:58)
at scala.tools.eclipse.lexical.AbstractScalaScanner$class.getToken(AbstractScalaScanner.scala:15)
at org.scalaide.play2.routeeditor.lexical.AbstractRouteScanner.getToken(AbstractRouteScanner.scala:10)
at org.scalaide.play2.routeeditor.lexical.AbstractRouteScanner.<init>(AbstractRouteScanner.scala:11)
at org.scalaide.play2.templateeditor.lexical.TemplateDefaultScanner.<init>(TemplateDefaultScanner.scala:11)
at org.scalaide.play2.templateeditor.TemplateConfiguration.<init>(TemplateConfiguration.scala:51)
at org.scalaide.play2.templateeditor.sse.TemplateStructuredTextViewerConfiguration.org$scalaide$play2$templateeditor$sse$TemplateStructuredTextViewerConfiguration$$scalaConfiguration$lzycompute(TemplateStructuredTextViewerConfiguration.scala:26)
at org.scalaide.play2.templateeditor.sse.TemplateStructuredTextViewerConfiguration.org$scalaide$play2$templateeditor$sse$TemplateStructuredTextViewerConfiguration$$scalaConfiguration(TemplateStructuredTextViewerConfiguration.scala:26)
at org.scalaide.play2.templateeditor.sse.TemplateStructuredTextViewerConfiguration.getConfiguredContentTypes(TemplateStructuredTextViewerConfiguration.scala:77)
at org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration.getContentAssistant(StructuredTextViewerConfiguration.java:286)
at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.configure(StructuredTextViewer.java:227)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3424)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:447)
at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1516)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:243)
at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:325)
at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:213)
at org.eclipse.ui.forms.editor.FormEditor.addPage(FormEditor.java:308)
at org.eclipse.m2e.editor.pom.MavenPomEditor.addSourcePage(MavenPomEditor.java:619)
at org.eclipse.m2e.editor.pom.MavenPomEditor.addPages(MavenPomEditor.java:375)
at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:358)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:142)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:96)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:323)
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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)
at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:857)
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:90)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:576)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:543)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:610)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:322)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1034)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3112)
at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:3034)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3016)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3012)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2976)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2967)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:534)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:493)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:47)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
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:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
google了一下,发现https://github.com/scala-ide/scala-ide-play2/issues/176
scala-ide-play2的bug导致的,升级 一下这个插件就完美解决了
相关推荐
"Eclipse Scala插件"是专门为Eclipse集成开发环境设计的一款扩展工具,它使得在Eclipse中编写、调试和管理Scala项目变得方便而高效。Scala是一种强大的、多范式的编程语言,融合了面向对象和函数式编程的特性,为...
maven-for-scala插件,用来解决eclipse/myeclipse scala插件安装后报错的问题: Plugin execution not covered by lifecycle configuration: net.alchim31.maven:scala-maven-plugin:3.2.0:compile (execution: ...
3. **准备Eclipse**: 打开你的Eclipse IDE,确保它是最新的稳定版本,并且与Scala插件兼容。在"Help"菜单下选择"Install New Software"选项,然后点击"Add"按钮。 4. **添加本地插件源**: 在弹出的窗口中,选择...
本文主要讲述了Eclipse中集成Maven和Scala的过程,包括JDK和Scala-SDK的安装和配置、Eclipse和Scala-IDE插件的安装、m2eclipse-scala插件的安装和设置Archetype等。通过这些步骤,可以在Eclipse中使用Maven和Scala...
以下将详细介绍如何使用Eclipse Scala离线安装包进行安装以及插件的主要功能。 首先,下载Eclipse Scala插件的离线安装包是非常必要的,这个包通常包含了所有需要的库和组件,以适应不同版本的Eclipse IDE。文件名...
在 Eclipse 中,原生的 Maven 插件不能应用于 Scala 项目,因此需要额外下载一个针对 Scala 的 Eclipse Maven 插件。通过以下更新站点安装该插件:"http://alchim31.free.fr/m2e-scala/update-site",按照常规方法...
**Eclipse Scala Plugin 插件测试可用功能** Scala是一种强大的静态类型编程语言,它结合了面向对象和函数式编程的特点,被广泛应用于开发高性能、可维护的软件。Eclipse Scala Plugin是Eclipse集成开发环境(IDE)...
2. **Eclipse Marketplace安装**:在Eclipse中,选择"Help" -> "Eclipse Marketplace",然后在搜索框中输入"Scala",找到相关的插件(如Scala IDE for Eclipse),点击"Install"按照提示完成安装。 3. **手动下载并...
2. **安装兼容的Scala插件**:在eclipse Marketplace中搜索Scala插件,然后卸载已安装的插件(如果版本不正确)。之后,安装适用于Scala 2.10.4的Scala IDE。确保插件版本与Spark项目的Scala版本一致。 3. **配置...
步骤一:安装eclipse-scala-plugin插件,附件下载 解压缩以后把plugins和features复制到eclipse目录,重启eclipse以后即可。 Window -> Open Perspective -> Other…,打开Scala,说明安装成功。 步骤二:安装...
安装Eclipse Scala 插件通常可以通过Eclipse Marketplace进行,也可以手动下载插件包并导入到Eclipse中。安装完成后,开发者只需创建一个新的Scala项目,就可以开始编写Scala代码了。 "artifacts.xml" 文件在...
在本文中,我们将深入探讨如何离线安装Eclipse Scala插件,特别关注“eclipse scala 插件 离线安装包之二”的过程。Scala是一种强大的编程语言,它结合了面向对象和函数式编程的概念,被广泛用于开发Java虚拟机(JVM...
Eclipse Scala 插件是开发Scala程序的重要工具,它为Eclipse IDE提供了对Scala语言的全面支持,使得Java开发者能够无缝地过渡到Scala环境。在本篇中,我们将深入探讨这个插件的功能、安装方法以及如何利用它来提升...
总结来说,要搭建Scala、Eclipse和Maven的开发环境,你需要安装Eclipse和Scala IDE插件,配置Maven,创建Maven Scala项目,并在`pom.xml`中管理依赖。这个环境能够支持你进行高效的Scala开发,利用Maven自动化构建...
以下将详细阐述Scala Eclipse插件的安装、功能以及如何将其添加到Eclipse中。 1. **安装Scala Eclipse插件** - 手动安装:首先,你需要从Scala官方网站或Eclipse Marketplace下载Scala插件的最新版本。下载完成后...
3. **安装过程**: 安装 Scala 插件通常涉及访问 Eclipse 的“帮助”菜单,然后选择“安装新软件”,输入更新站点 URL。对于这个压缩包,用户需要解压后找到包含的更新站点文件(可能在 "site" 文件夹中),并将其URL...
通过安装特定的插件,Eclipse可以扩展其功能以支持Scala开发。在这个压缩包中,我们有以下关键文件: 1. **content.jar**:这是插件的核心内容,包含了实现Scala开发支持的类库和功能。当你在Eclipse中安装插件时,...