简体   繁体   中英

Library import issue in Intelij Idea and Play Framework

I have project that used Play Framework 2.3.4 and Slick 2.1.0. Intelij Idea version is 13.1.4, with installed Scala and Play 2.0 plugins.

When I trying to import database driver

import play.api.db.slick.Config.driver.simple._

Idea writes me that this import is incorrect, and they cant resolve it. But if I run application, they will compiled and executed correctly.

Did someone knows how to fix Idea imports? Because without it, features like auto substitution will not working.

I found the solution of this problem:

  1. Compile play project through terminal
  2. In Intelij Idea use "Cache Invalidating" (File->Invalidate caches/Restart->Invalidate and restart)
  3. Wait until Idea restarts and indexing project
  4. Profit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM