https://kotlinlang.org logo
Title
a

Ahmed Mourad

03/06/2020, 8:01 PM
Not Arrow related but can anyone help with this?
r

raulraja

03/06/2020, 9:36 PM
@Imran/Malic may know how to create one on the IDE
:arrow: 1
Otherwise there is also #intellij-plugins
They may be able to help too
a

Ahmed Mourad

03/06/2020, 9:55 PM
That would be awesome. Thank you 😃
i

Imran/Malic

03/06/2020, 9:55 PM
Hi @Ahmed Mourad your not in the right scope in the
plugin.xml
file.
<extensions defaultExtensionNs="com.intellij">
        <lang.inspectionSuppressor language="kotlin" implementationClass="<FQName>"/>
    </extensions>
These are the minimum requirements to add an InspectionSuppressor. Once the April release is out there is also the option to use Meta https://meta.arrow-kt.io/docs/apidocs/idea-plugin/arrow.meta.ide.dsl.editor.inspection/-inspection-syntax/inspection-suppressor.html.
:arrow: 1
🔝 1
Sorry I can’t help more based on the screenshot you shared. Try cleaning the project and killing java processes. If that doesn’t work send in your
build.gradle
or a small reproduceable project. So I can take a look.
a

Ahmed Mourad

03/06/2020, 10:13 PM
Hey @Imran/Malic, Thanks a lot for you help :) I tried that but it still can't recognize
kotlin
😓 This's the
plugins.xml
file: https://github.com/AhmedMourad0/Mirror/blob/master/idea-plugin/src/main/resources/META-INF/plugin.xml This's its module's `build.gradle`: https://github.com/AhmedMourad0/Mirror/blob/master/idea-plugin/build.gradle This's the project's `build.gradle`: https://github.com/AhmedMourad0/Mirror/blob/master/build.gradle Will start moving them to a small project right away 🙂
Once the April release is out there is also the option to use Meta
I'm actually planning on migrating the whole project to Arrow-meta in a future release :)
😍 1
i

Imran/Malic

03/06/2020, 10:20 PM
Awesome, once we’re there file any issues you have migrating.
😍 1
Let me get back to you later. I’ll check out your project.
😍 1
a

Ahmed Mourad

03/06/2020, 10:26 PM
Sure thing 🙂 I already tried it out in a small subproject, it's truly incredible what you guys have done.
Awesome, thanks 😄
i

Imran/Malic

03/06/2020, 10:49 PM
The unresolved reference for Kotlin lang is normal, If you open this file in intelliJ it will resolve with the same error https://github.com/JetBrains/kotlin/blob/9eb8700d3acf523db8b97f7b8da3b33dee9814d0/idea/resources/META-INF/plugin-common.xml#L1707-L1706. I was able to create an extension with a dummy example in your project. Also confirmed that
DataPrivateConstructorInspectionSuppressor
is registered 👍🏽
❤️ 1
🤯 1
a

Ahmed Mourad

03/06/2020, 10:53 PM
Oh 🤯 i actually spent much more time staring at this than i want to admit, and then it turns our to be a bug with IntelliJ 🤣🤣🤣 Thanks a lot for your help ❤️
i

Imran/Malic

03/06/2020, 11:04 PM
Your welcome. Thanks for the comment 🙂, but without the team work and our community we would not be able to do this. Besides #intellij-plugins there is an IntelliJ Platform slack, where there are discussions and news across programming languages.
:arrow: 1
❤️ 1
🤯 1
a

Ahmed Mourad

03/06/2020, 11:36 PM
I had no
idea
that this existed 🤯😂 I'm sure it's going to be very helpful. Thanks again 😅
👍🏽 1