Scala import not working - object is not a member of package, sbt preppends current package namespace in imports

后端 未结 12 2005
死守一世寂寞
死守一世寂寞 2020-12-14 14:28

I have an issue when trying to import in scala. The object Database exists under com.me.project.database but when I try to import it:



        
12条回答
  •  隐瞒了意图╮
    2020-12-14 15:07

    imports can be relative. Is that the only import you have? be careful with other imports like

    import com.me

    ultimately, this should fix it, then you can try to find more about it:

    import _root_.com.me.project.database.Database

提交回复
热议问题