eclipse 如何手动安装Scala插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3383419/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:32:18  来源:igfitidea点击:

How to install Scala plugin manually?

eclipsescala

提问by user310291

http://www.scala-ide.org/

http://www.scala-ide.org/

gives http://download.scala-ide.org/update-current-35

给出 http://download.scala-ide.org/update-current-35

There are features and plugins directory. Which should I use or both ? Should I just unzip them all in eclipse features and/or plugins directory ?

有功能和插件目录。我应该使用哪个或两者都使用?我应该将它们全部解压缩到 eclipse features 和/或 plugins 目录中吗?

By the way what diff between features and plugins ?

顺便说一下,功能和插件之间有什么区别?

采纳答案by VonC

You should use both: the update-current-35is a p2 siteyou can enter in your "Available Software List" when installing a new software in Eclipse.
Eclipse will detect both features and plugins within that address p2 site, and will install them all.

您应该同时使用两者:update-current-35是一个p2 站点,您可以在 Eclipse 中安装新软件时将其输入到“可用软件列表”中。
Eclipse 将检测该地址 p2 站点中的特性和插件,并将它们全部安装。

See this Scala installation video.

请参阅此Scala 安装视频

The difference between feature and plugin is explained here.

功能和插件之间的区别在这里解释

Don't forget to use the right Eclipse version for this installation: Eclipse Classic 3.5.2.

不要忘记为此安装使用正确的 Eclipse 版本:Eclipse Classic 3.5.2



If you need to install it manually, you should copy the full content of the pluginsand featuresdirectories from that p2 site in a shared dropinsyou reference in your eclipse.ini (see this eclipse.ini for eclipse3.5).
(you don't need to copy site.xml, contents.jar, artifact.jar)

如果您需要手动安装它,您应该在您在 eclipse.ini 中引用的共享 dropins 中复制该p2 站点的pluginsfeatures目录的全部内容(请参阅此eclipse.ini 以获取 eclipse3.5)。 (你不需要复制, , )
site.xmlcontents.jarartifact.jar

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/path/to/myPlugins

You will create the following tree (similar to another manual installation described in this SO answer)

您将创建以下树(类似于此SO 答案中描述的另一个手动安装)

C:/path/to/myPlugins
  org.scala-ide.1.0.0.201008022319
     eclipse
       features
         ch.epfl.lamp.sdt_2.8.0.scala-ide-upgrade.jar
         org.eclipse.contribution.weaving_1.6.4.scala-ide-upgrade.jar
         org.scala-ide.sdt.feature_1.0.0.201008022319.jar
         org.scala-ide.sdt.weaving.feature_1.0.0.201008022319.jar
       plugins
         org.aspectj.runtime_1.6.9.20100629172100.jar
         org.aspectj.weaver_1.6.9.20100629172100.jar
         org.eclipse.contribution.weaving.jdt_2.1.0.e35x-release-20100630-1500.jar
         org.eclipse.equinox.weaving.aspectj_1.0.0.v20100108.jar
         org.eclipse.equinox.weaving.hook_1.0.0.v20100108.jar
         org.scala-ide.scala.compiler_2.8.0.jar
         org.scala-ide.scala.library_2.8.0.jar
         org.scala-ide.sdt.aspects_1.0.0.201008022319.jar
         org.scala-ide.sdt.core_1.0.0.201008022319.jar
         org.scala-refactoring.library_0.2.0.201008022305.jar
         scalariform_0.0.5.201007302350.jar

Note:

笔记:

The 'org.scala-ide.1.0.0.201008022319' folder directly under myPlugins could be any name actually! I just took a name inspired from the features id, to clearly identify the exact Scala plugin you are installing.
If you have several Scala versions in your myPlugins, p2 will detect the most recent one automatically, even if you install them in 'a/eclipse/...', 'b/eclipse/...', 'c/eclipse/...'.
I simply find 'org.scala-ide.1.0.0.201008022319' more precise than 'a', 'b' or 'c', in order to remember what exact plugins I have in my shared dropins.

org.scala-ide.1.0.0.201008022319直接在 myPlugins 下的 ' ' 文件夹实际上可以是任何名称!我只是从功能 ID 中取了一个名字,以清楚地识别您正在安装的确切 Scala 插件。
如果您的 中有多个 Scala 版本myPlugins,即使您将它们安装在 ' a/eclipse/...'、' b/eclipse/...'、' c/eclipse/...' 中,p2 也会自动检测最新的版本。
我只是发现 ' org.scala-ide.1.0.0.201008022319' 比 ' a'、' b' 或' ' 更精确c,以便记住我在共享 dropins 中有哪些确切的插件。

You need to have the right Eclipse version (classic 3.5.2) in order to be sure to include all the dependencies the Scala plugin might need.

您需要拥有正确的 Eclipse 版本(经典 3.5.2),以确保包含 Scala 插件可能需要的所有依赖项。



Local installation:

本地安装:

You could create the very same tree ('org.scala-ide.1.0.0.201008022319/eclipse/....') within the 'dropins' directory within your eclipse.
You won't need to declared a shared dropins directory in your eclipse.ini.

您可以org.scala-ide.1.0.0.201008022319/eclipse/....在 Eclipse 的“dropins”目录中创建完全相同的树(“ ”)。
你不需要在你的eclipse.ini.

I just prefer using a shared dropins because I have many eclipse installations, but if you have the right eclipse, you can make the same tree directly in </path/to/your/eclipse/dropins>.

我只是更喜欢使用共享的 dropins,因为我有很多 eclipse 安装,但是如果你有正确的 eclipse,你可以直接在</path/to/your/eclipse/dropins>.



Dirty installation:

脏安装:

Finally, you could:

最后,你可以:

  • copy the content of 'http://download.scala-ide.org/update-current-35/plugins/' in the pluginsdirectory of your eclipse.
  • copy the content of 'http://download.scala-ide.org/update-current-35/features/' in the featuresdirectory of your eclipse.
  • 将 ' http://download.scala-ide.org/update-current-35/plugins/'的内容复制到plugins您的 eclipse 目录中。
  • 将 ' http://download.scala-ide.org/update-current-35/features/'的内容复制到features您的 eclipse 目录中。

But I find that not very clean, because it mixes up the native plugins coming with your Eclipse distro and the extra plugins you are adding.

但我发现这不是很干净,因为它混淆了 Eclipse 发行版附带的本机插件和您添加的额外插件。

回答by madhu

Just Drag and Drop Scala IDE your eclipse. You can find the drag drop image file (Install) in below link.

只需将 Scala IDE 拖放到您的日食即可。您可以在下面的链接中找到拖放图像文件(安装)。

http://marketplace.eclipse.org/content/scala-ide

http://marketplace.eclipse.org/content/scala-ide

http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=421

http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=421

Then follow the installation steps.

然后按照安装步骤进行。

enter image description here

在此处输入图片说明

回答by shivakiran

For neon version of eclipse, we can add Scala plug-ins by following below steps.

对于neon版的eclipse,我们可以按照以下步骤添加Scala插件。

  1. Help --> Install New Software
  2. Click on Add button next to "Work with" text field.
  3. Enter "http://download.scala-ide.org/sdk/lithium/e46/scala211/stable/site" in location and give some name that you can remember.
  4. Scala related plug-in tree is listed. Choose the components to add.
  5. Click next, next , finish.
  1. 帮助 --> 安装新软件
  2. 单击“使用”文本字段旁边的添加按钮。
  3. 在 location 中输入“ http://download.scala-ide.org/sdk/lithium/e46/scala211/stable/site”并给出一些你能记住的名字。
  4. Scala相关插件树列出。选择要添加的组件。
  5. 单击下一步,下一步,完成。

回答by Spandana r

Currently, I am using Eclipse IDE and then added Scala plugin follow the below steps simply:

目前,我正在使用 Eclipse IDE,然后简单地按照以下步骤添加 Scala 插件:

Go to the “Help” option on top of your Eclipse IDE on the dashboard.

转到仪表板上 Eclipse IDE 顶部的“帮助”选项。

http://commandstech.com/how-to-add-scala-plugin-in-sts-eclipse-ide-on-ubuntu/

http://commandstech.com/how-to-add-scala-plugin-in-sts-eclipse-ide-on-ubuntu/

The above source is worked for me.

上述来源对我有用。

回答by Raghav

I know its an old question, and perhaps better handled /answered by various sites, though i just added the following as an update site, and installed relevant pieces !!

我知道这是一个老问题,也许可以更好地处理/回答各个站点,尽管我只是将以下内容添加为更新站点,并安装了相关部分!!

http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site

http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site