I generated source code using the method described here
https://github.com/slick/slick-codegen-example/blob/master/build.sbt
This method works and now when I do compile
I can see that the auto-generated Target.scala file is being successfully compiled as Tables.class
but in my source code, If I try to import the autogenerated class file. it says cannot resolve symbol demo
This is caused by
IntelliJ
can't recognize the generated code, you can try to marktarget/scala-2.11/src_managed/slick/
this as Sources Root. like: