dwickern / scala-nameof

Get the name of an variable, function, class member, or type as a string--at compile-time!
MIT License
131 stars 23 forks source link

object dwickern is not a member of package com.github #20

Closed hartmut27 closed 3 years ago

hartmut27 commented 3 years ago

i can't find out why

import com.github.dwickern.macros.NameOf._

leads to

Abc.scala:17:12: object dwickern is not a member of package com.github [17:12]

In build.sbt i've added

libraryDependencies += "com.github.dwickern" %% "scala-nameof" % "3.0.0" % "provided"

Any ideas?

hartmut27 commented 3 years ago

The problem occurs only in IntelliJ with the use of BSP, "Reload BSP" (from sbt), and invalidate Caches and Restart didn't help.

On SBT console it compiles nicely

hartmut27 commented 3 years ago

holy cow, flushing the target folder solved this mysterious puzzle.

Not related to your library! So closing this.