0

我正在使用 java sdk 1.5.0_30 运行 Mac Os 10.5.8。我已经下载并安装了 sbt 包,并验证它运行正常。最后,我下载了 Mac OS Cocoa 32 位版本的 Typesafe IDE for Scala 2.10.1,并安装了它。

问题在于,尽管 Eclipse 似乎认识到它已设置为使用 Scala(默认窗口的标题以“资源 - Scala IDE ...”开头),但任何地方都没有 Scala 项目或工作表可用 - 仅“新”显示“Project”,而不是“Scala Project”,“New->Other”不显示任何 Scala 向导,右键单击从 Scala 项目导入的文件不会显示创建 Scala 工作表的可能性等。

附加信息:

  1. 这是靛蓝
  2. Run 和 Window 之间没有 Scala 菜单
  3. 左侧菜单显示“项目资源管理器”
  4. About>Installation Details> Features 包括 Scala 插件

配置详细信息(截断):

*** Date: Saturday, April 6, 2013 9:00:43 AM Eastern Daylight Time

*** Platform Details:

*** System properties:
awt.nativeDoubleBuffering=true
awt.toolkit=apple.awt.CToolkit
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=3.0.0-vfinal-20130326-1146-Typesafe
eclipse.commands=-os
macosx
-ws
cocoa
-arch
ppc
-showsplash
-launcher
/Users/me/Downloads/eclipse - Scala/Eclipse.app/Contents/MacOS/eclipse
-name
Eclipse
--launcher.library
/Users/me/Downloads/eclipse - Scala/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.101.v20120109-1504/eclipse_1408.so
-startup
/Users/me/Downloads/eclipse - Scala/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-keyring
/Users/me/.eclipse_keyring
-showlocation
-vm
/System/Library/Frameworks/JavaVM.framework
eclipse.home.location=file:/Users/me/Downloads/eclipse - Scala/
eclipse.launcher=/Users/me/Downloads/eclipse - Scala/Eclipse.app/Contents/MacOS/eclipse
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=@config.dir/../p2
eclipse.p2.profile=SDKProfile
eclipse.product=org.scala-ide.sdk.product
eclipse.startTime=1365252840252
eclipse.vm=/System/Library/Frameworks/JavaVM.framework
eclipse.vmargs=-Xmx1048m
-Xms100m
-XX:MaxPermSize=256m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Djava.class.path=/Users/me/Downloads/eclipse - Scala/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
equinox.use.ds=true
file.encoding=MacRoman
file.encoding.pkg=sun.io
file.separator=/
gopherProxySet=false
java.awt.graphicsenv=apple.awt.CGraphicsEnvironment
java.awt.printerjob=apple.awt.CPrinterJob
java.class.path=/Users/me/Downloads/eclipse - Scala/Eclipse.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
java.class.version=49.0
java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
java.ext.dirs=/Users/me/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
java.io.tmpdir=/var/folders/Fi/FiG8O39A2Ra7AE+1YwLaJ++++TI/-Tmp-/
java.library.path=.:/Users/me/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_30-b03-389-9M3425
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Apple Inc.
java.vendor.url=http://www.apple.com/
java.vendor.url.bug=http://bugreport.apple.com/
java.version=1.5.0_30
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Apple Inc.
java.vm.version=1.5.0_30-161
line.separator=

mrj.build=9M3425
mrj.version=1050.1.5.0_30-389
org.eclipse.equinox.launcher.splash.location=/Users/me/Downloads/eclipse - Scala/plugins/org.eclipse.platform_3.7.2.v201202080800/splash.bmp
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.swt.internal.carbon.smallFonts=
org.eclipse.update.reconcile=false
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5
org.osgi.framework.language=en
org.osgi.framework.os.name=MacOSX
org.osgi.framework.os.version=10.5.8
org.osgi.framework.processor=PowerPC
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2",osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5"
org.osgi.framework.system.packages=javax.accessibility,javax.activity,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views ,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
org.osgi.framework.uuid=f015af0e-b99e-0012-1997-8799bf6d8071
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.6.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=ppc
os.name=Mac OS X
os.version=10.5.8
osgi.arch=ppc
osgi.bundles=reference:file:org.eclipse.equinox.weaving.hook_1.0.200.I20120427-0800.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438.jar@1:start
osgi.bundles.defaultStartLevel=4
osgi.bundlestore=/Users/me/Downloads/eclipse - Scala/configuration/org.eclipse.osgi/bundles
osgi.configuration.area=file:/Users/me/Downloads/eclipse - Scala/configuration/
osgi.framework=file:/Users/me/Downloads/eclipse - Scala/plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar
osgi.framework.extensions=reference:file:org.eclipse.equinox.weaving.hook_1.0.200.I20120427-0800.jar
osgi.framework.shape=jar
osgi.framework.version=3.7.2.v20120110-1415
osgi.frameworkClassPath=., file:/Users/me/Downloads/eclipse - Scala/plugins/org.eclipse.equinox.weaving.hook_1.0.200.I20120427-0800.jar
osgi.install.area=file:/Users/me/Downloads/eclipse - Scala/
osgi.instance.area=file:/Users/me/Scala class/
osgi.logfile=/Users/me/Scala class/.metadata/.log
osgi.manifest.cache=/Users/me/Downloads/eclipse - Scala/configuration/org.eclipse.osgi/manifests
osgi.nl=en_US
osgi.os=macosx
osgi.splashLocation=/Users/me/Downloads/eclipse - Scala/plugins/org.eclipse.platform_3.7.2.v201202080800/splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath=/Users/me/Downloads/eclipse - Scala/plugins
osgi.tracefile=/Users/me/Scala class/.metadata/trace.log
osgi.ws=cocoa
path.separator=:
sun.arch.data.model=32
sun.boot.class.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsfd.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar
sun.boot.library.path=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries
sun.cpu.endian=big
sun.cpu.isalist=
sun.io.unicode.encoding=UnicodeBig
sun.jnu.encoding=MacRoman
sun.management.compiler=HotSpot Client Compiler
sun.os.patch.level=unknown
user.country=US
user.dir=/Users/me/Downloads/eclipse - Scala/Eclipse.app/Contents/MacOS
user.home=/Users/me
user.language=en
user.name=me
user.timezone=America/New_York

*** Features:
org.eclipse.cvs (1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C) "Eclipse CVS Client"
org.eclipse.help (1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx) "Help System Base"
org.eclipse.jdt (3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1) "Eclipse Java Development Tools"
org.eclipse.m2e.feature (1.3.1.20130219-1424) "Maven Integration for Eclipse"
org.eclipse.pde (3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E--0) "PDE"
org.eclipse.platform (3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q) "Eclipse Platform"
org.eclipse.rcp (3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272) "Eclipse RCP"
org.scala-ide.sdk.feature (3.0.0.201303261047) "Scala Plugin"
4

3 回答 3

1

不幸的是,我无法访问 Mac OS 10.5.x,所以我无法直接复制您的设置。但是,在 10.7 上,32 位Cocoa 版本按预期工作。为了解决这个问题,我们需要更多的数据点:

  • 您看到Scala菜单(在RunWindow之间)吗?
  • 左侧面板是否称为Package Explorer
  • 你能发布安装细节(Eclipse->About Scala IDE -> Installation Details/Configuration.
于 2013-04-03T08:24:17.380 回答
0

您是否已切换到 Scala 视角?

于 2013-04-03T00:52:54.787 回答
0

我遇到了同样的问题:可能没有加载 scala 插件。

要检查它,请转到菜单帮助 - > 关于,单击安装详细信息,名为已安装软件的选项卡:如果它在此处而不在功能选项卡中,则在安装详细信息选项卡中卸载所有与 scala 相关的软件(在底部)。然后通过在安装软件对话框中配置一个新的更新站点来重新安装它(菜单帮助->安装新软件)

于 2013-04-03T08:06:38.400 回答