-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix most of the compilation warnings #241
Fix most of the compilation warnings #241
Conversation
core/driver/sources/src/main/scala/org/virtuslab/ideprobe/Shell.scala
Outdated
Show resolved
Hide resolved
core/driver/sources/src/main/scala/org/virtuslab/ideprobe/Shell.scala
Outdated
Show resolved
Hide resolved
core/driver/sources/src/main/scala/org/virtuslab/ideprobe/dependencies/Resource.scala
Show resolved
Hide resolved
core/probePlugin/src/main/scala/org/virtuslab/ideprobe/handlers/ExpandMacro.scala
Show resolved
Hide resolved
core/probePlugin/src/main/scala/org/virtuslab/ideprobe/handlers/IntelliJApi.scala
Outdated
Show resolved
Hide resolved
core/driver/test-plugin/src/main/scala/org/virtuslab/ideprobe/test/OpenWindowAction.scala
Outdated
Show resolved
Hide resolved
This reverts commit ebcaa16.
…probe into unused_warnings_fix
@@ -109,7 +109,7 @@ object Builds extends IntelliJApi { | |||
compileContext: CompileContext | |||
): Unit = { | |||
def messages(category: CompilerMessageCategory): Seq[BuildMessage] = { | |||
compileContext.getMessages(category).map { msg => | |||
compileContext.getMessages(category).toIndexedSeq.map { msg => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this toIndexedSeq conversion happens everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without it (as we have on master now) - we are having following warnings (which contain answer, why):
[warn] /Users/lkontowski/code/ide-probe/core/probePlugin/src/main/scala/org/virtuslab/ideprobe/handlers/Builds.scala:112:50: method copyArrayToImmutableIndexedSeq in class LowPriorityImplicits2 is deprecated (since 2.13.0): Implicit conversions from Array to immutable.IndexedSeq are implemented by copying; Use the more efficient non-copying ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call
[warn] compileContext.getMessages(category).map { msg =>
[warn] ^
[warn] one warning found
Closes #223