-
Notifications
You must be signed in to change notification settings - Fork 624
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
@Language annotation causes compilation error for Kotlin/JS when using other libraries with same workaround #2377
Comments
Ouch. @shanshin If we remove |
if we replace the annotation for JS/Native with another one, the syntax highlighting disappears in it |
And for the common source? |
Unfortunately, it does not work for common source even in current version, apparently IntelliJ only looks at the expect annotation, because it does not know for what target the code will be used. |
Then it kinda doesn't make sense (unless we make |
OK It seems to me the best solution in the future will be to add a special annotation to the library, and this annotation should already be supported by IntelliJ. |
Yeah, it is called 'making org.jetbrains.annotations' MPP library) |
The declaration of annotation `org.intellij.lang.annotations.Language` in the JS and native source has been removed, because if this annotation is declared in other dependency, then this leads to compilation errors. Fixes #2377
Describe the bug
Trying to compile a project for Kotlin/JS when using another library which also performs the multiplatform
@Language
workaround results in:Also reported at https://youtrack.jetbrains.com/issue/KT-59620
To Reproduce
See Youtrack ticked
Expected behavior
IntelliJ should ship proper multiplatform
@Language
. Until then it's probably a good idea to remove these workarounds,Environment
The text was updated successfully, but these errors were encountered: