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

Fix most of the compilation warnings #241

Merged
merged 9 commits into from
Aug 10, 2022

Conversation

LukaszKontowski
Copy link
Contributor

@LukaszKontowski LukaszKontowski commented Aug 8, 2022

Closes #223

build.sbt Outdated Show resolved Hide resolved
@LukaszKontowski LukaszKontowski marked this pull request as ready for review August 9, 2022 13:30
@LukaszKontowski LukaszKontowski changed the title WIP: Fix most of the compilation warnings Fix most of the compilation warnings Aug 9, 2022
@LukaszKontowski
Copy link
Contributor Author

Issues created as a result of working on this PR:
#242
#243
#244

@@ -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 =>
Copy link
Contributor

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?

Copy link
Contributor Author

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

@lukaszwawrzyk lukaszwawrzyk merged commit 6728c3f into VirtusLab:master Aug 10, 2022
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

Successfully merging this pull request may close these issues.

Fix warnings about unused vars/params
3 participants