IntelliJ 14 - 创建/导入 Scala/SBT 项目 [英] IntelliJ 14 - Create / Import a Scala / SBT project

查看:40
本文介绍了IntelliJ 14 - 创建/导入 Scala/SBT 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IntelliJ 14 通过 Scala 插件支持(理论上)SBT/Scala 项目,该插件在官方存储库中仍然可用.根据这篇文章Scala 插件项目本身现在使用 SBT 进行构建和依赖管理".但是,我找不到任何使用 IntelliJ 创建或导入 SBT/Scala 项目的方法.也缺乏详细解释这种配置 Scala 插件的新方法的文档.

IntelliJ 14 supports (in theory) SBT / Scala projects through the Scala plugin, which is still available in the official repo. According to this post "Scala plugin project itself now uses SBT for build and dependency management". However I cannot find any way to create or import a SBT / Scala project with IntelliJ. There is also a lack of documentation explaining more about this new way of configuring the Scala Plugin.

我在 IntelliJ Ultimate 14.0 (139.224) 中激活了 Scala 插件.有什么想法吗?

I have the Scala plugin activated in the IntelliJ Ultimate 14.0 (139.224). Any ideas?

推荐答案

  1. 安装 Scala 插件.<代码>设置 ->插件 ->斯卡拉 ->安装
  2. 使用 sbt build 打开目录:File ->打开项目 ->使用 build.sbt 选择目录 ->配置设置

几分钟前这对我有用.可能需要重置缓存并重启:File ->使缓存无效/重新启动.

That worked for me just a couple of minutes ago. It may be necessary to reset cache and restart: File -> Invalidate Caches / Restart.

这篇关于IntelliJ 14 - 创建/导入 Scala/SBT 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆