Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install instructions are not universal #54

Open
FFdhorkin opened this issue Jun 4, 2020 · 2 comments
Open

Install instructions are not universal #54

FFdhorkin opened this issue Jun 4, 2020 · 2 comments

Comments

@FFdhorkin
Copy link

The docs say to add this to build.sbt:

libraryDependencies ++= Seq(
  compilerPlugin("com.github.ghik" % "silencer-plugin" % silencerVersion cross CrossVersion.full),
  "com.github.ghik" % "silencer-lib" % silencerVersion % Provided cross CrossVersion.full
)

This didn't work for me. I kept getting this:

[error] silencer-plugin was enabled but @silent annotation was not found on classpath - have you added silencer-lib as a library dependency?

It turns out my issue was the % Provided in there. Remove that, and everything works. I don't know exactly what part of my build configuration is the issue, but that solved it.

I'm suspect my issue was related to this image: SBT configuration graph

In fact, replacing % Provided with % Compile seems to work. I imagine that's potentially better than removing the specifier entirely?

@ghik
Copy link
Owner

ghik commented Jul 1, 2020

I think % Compile is the same thing as no specifier at all. Provided was used because silencer is a compile-time only dependency. It's weird that it wasn't on compile classpath - Provided dependencies should definitely be there.

@solarmosaic-kflorence
Copy link

solarmosaic-kflorence commented Jan 13, 2021

I have also noticed this issue, especially when running tests. The most recent time I have seen this, I have closed the project, removed the IntelliJ project files (.idea and .bsp) and re-imported the project, and then it worked. So at least sometimes this is due to an IntelliJ caching issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants