How to bypass the "no classifier" error on String, Object, etc... for Kotlin library imported to MPS?

I am writing a language using MPS. And this language will call a `.jar` library written in Kotlin.

When I am building this language, all the methods in generator, that calls the function in the library, with parameters or return value showing the type with string, will generate the error "incompatible method signature" and "type string is not a subtype of ?no classifier?".

These error can be ignored, then the language will build successfully. Or I can right click the corresponding type, then hover on "Go to...", which makes MPS "suddenly" knows what it is, and the error will be gone. However I have to do this for all library call on every thing MPS restarts.

However, is there any method to solve this problem entirely?


Please sign in to leave a comment.