IntelliJ IDEA w / Scala插件没有找到scala.concurrent [英] IntelliJ IDEA w/ Scala Plugin not finding scala.concurrent

查看:270
本文介绍了IntelliJ IDEA w / Scala插件没有找到scala.concurrent的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力让全新安装的IntelliJ与Scala一起正常工作。

I am having the hardest time getting a fresh install of IntelliJ to work properly with Scala.

我在Mac上安装了IntelliJ IDEA 13.1.4和Scala插件。在任何项目中,IDE都会抱怨它找不到scala.concurrent(或scala-library中的任何其他包),即使该库列在外部库下。我错过了什么?

I've installed IntelliJ IDEA 13.1.4 and the Scala plugin on a Mac. In any project, the IDE complains it cannot find scala.concurrent (or any other package in scala-library) even though the library is listed under "External Libraries". What am I missing?

我已经完成了重现的基本步骤:

I've got the basic steps to reproduce down to:


  1. 安装IntelliJ IDEA 13.1.4

  2. 通过IntelliJ插件对话框安装Scala插件

  3. 创建一个新的Scala项目(SBT或非SBT,没关系)

  4. 定义一个新类并尝试导入scala.concurrent ._

  1. Install IntelliJ IDEA 13.1.4
  2. Install Scala plugin via IntelliJ plugins dialog
  3. Create a new Scala project (either SBT or non-SBT, doesn't matter)
  4. Define a new class and try to import scala.concurrent._

这种情况发生在新项目或现有项目中 - 即使是通过 sbt gen-idea 进行配置。

This happens with new or existing projects - even when provisioned via sbt gen-idea.

我已安装Scala和SBT通过brew甚至尝试设置$ SCALA_HOME指向scala的brew安装( / usr / local / share / scala )。

I've installed Scala and SBT via brew and even tried setting $SCALA_HOME to point to the brew install of scala (/usr/local/share/scala).

IntelliJ列出了外部库中的库,但仍然无法解析符号。

IntelliJ is listing the library in External Libraries but still can't resolve the symbol.

我一直在和它斗争几个小时。我在这里缺少什么?

I have been fighting with this for hours. What am I missing here?

推荐答案

我遇到了同样的问题。我用Invalidate Caches修复它

I had the same issue. I fixed it with Invalidate Caches

文件|使缓存无效/重新启动。在Mac上手动删除此文件夹:

File | Invalidate Caches / restart. Manual way on Mac with removing this folder:

〜/ Library / Caches / IntelliJIDEAXX

~/Library/Caches/IntelliJIDEAXX

这篇关于IntelliJ IDEA w / Scala插件没有找到scala.concurrent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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