Closed kwisatzook closed 7 years ago
Hello @kwisatzook
I can't reproduce your problem. For me putting @silent
annotation on the parameter works just fine.
Please look for any problems with your project's setup. Maybe somehow the silencer plugin was not picked up by the build tool or IDE.
Here's a minimal project where I tried to reproduce it: scalajs-silencer-bug.zip. sbt compile
works just fine and yields no warnings. When the @silent
annotation is removed, the warning appears, as expected.
Ah, thanks. It wasn't set up properly. Even though the plugin was downloaded and the library was available, the compiler plugin wasn't enabled because the setting didn't propagate to the cross project. I figured out how to make that happen. Thanks.
See JsCryptoNative.getRandomValues at the bottom. @silent doesn't seem to work no matter where I put it.
Any idea as to why and any suggestions on a workaround? Much thanks.