play-scalajs-showcase icon indicating copy to clipboard operation
play-scalajs-showcase copied to clipboard

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

Open extirpate opened this issue 9 years ago • 2 comments

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 avatar Nov 07 '15 16:11 extirpate

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

extirpate avatar Nov 07 '15 18:11 extirpate

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

hussachai avatar Nov 15 '15 07:11 hussachai