-
Notifications
You must be signed in to change notification settings - Fork 16
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
How can I load contrib warts into IntelliJ IDEA? #218
Comments
@xuwei-k do you have any idea how to get contrib warts work in IntelliJ IDEA? |
@xuwei-k
|
@hagay3 |
This seems to be fixed in IntelliJ IDEA latest 2023.3 EAP at least (which will be soon future 2023.3 release). I was using EAP version "Build #IU-233.9802.14, built on October 12, 2023". I got the same kind of failure with the EAP build: So basically, update to latest IDEA and update Scala plugin should make it work. |
Seems that I was partly wrong. Still getting the same issue even with the latest Intellij IDEA releases. I have following line in my
If I comment that out and run sbt update on IDEA (by clicking the sbt refresh icon) and then uncomment it and run sbt update again -> I get no errors. But after any dependency is updated and sbt update happens automatically by IDEA again, it suddenly starts producing the same error again. Seems really weird but definitely there is still some issue in the IDEA or IDEA's scala plugin... |
The workaround suggested here seems to be working for me. |
My question
I tried to use contrib warts on this repository on IntelliJ IDEA. Contrib warts were successfully loaded on SBT builds and it procuded wart violations with SBT. However, when I instructed IntelliJ IDEA to build Scala classes, the contrib warts were completely ignored by IntelliJ IDEA's compiler. Warts that are built in Wartremover core could be loaded into IntelliJ IDEA's compiler and it produced wart violation as expected. How can I load contrib warts into IntelliJ IDEA?
My code
https://github.com/umireon/umireon-wartremover-contrib-intellij-idea/tree/intellij-idea-cannot-load-wartremover-contrib-classes
We prefer the
-Xfatal-warnings
flag and this problem also prevents us to use many IntelliJ IDEA features.This problem causes the following error:
I checked the configuration of Scala compiler on Intellij IDEA and it revealed that it loaded Wartremover core but didn't load Wartremover contrib.
Thanks in advance.
Best,
The text was updated successfully, but these errors were encountered: