hussachai / play-scalajs-showcase

Play+Scala.js Showcase
Do What The F*ck You Want To Public License
125 stars 41 forks source link

crossProject can't recognize "import shared.xxx" under Other 2 projects #4

Open extirpate opened 9 years ago

extirpate commented 9 years ago

i was using intellij 14, git cloned , imported this project. and find something innormal that ".scala" files which having import shared.xxx under example-server and example-client . For example: play-scalajs-showcase/example-server/app/controller/interopController.scala import share.foo. the "import share.foo." is grey(can't be located), and of corse"[KV]" "[Foo]" are all red.

i guess there's something related to crossProject, but i can't figure it out

extirpate commented 9 years ago

ln -s pathto/example-shared/src/main/scala/shared pathto/example-client/src/main/scala cp -r pathto/example-shared/src/main/scala/shared pathto/example-server/app

can solve this problem, now another problem occurs, soft link works on example-client, only copy dir can work on example-server, so weired

hussachai commented 9 years ago

I just upgraded sbt-play-scalajs plugin. Not sure whether it helps. Anyway, it works fine with Intellij 14.1.5 in my machine.