This repository illustrates a bug in MPS where Kotlin stubs are not packaged correctly out of the box and are not visible when module containing them is deployed as part of a plugin (as opposed to being used directly in the IDE from sources).
Open the project in MPS:
- Run
./gradlew setup
to compile the Kotlin library and copy it over to the MPS project. - Open
mps-project
in MPS 2024.3. - Navigate to the
kotlin.library
solution.- Observe that it contains stubs.
- Open properties of the solution.
- Observe that the model root is present and correct (points to an existing directory).
Build and install the plugin:
- Run
./gradlew plugin
. - In MPS invoke 'Install plugin from disk...' action, choose
mps-project/build/distributions/plugin.zip
. - Restart MPS, open any project, e.g. _theSimplestLanguage sample.
- Navigate to the
kotlin.library
solution.- Observe that it is empty, i.e. does not contain any stubs.
- Open properties of the solution.
- Observe that the Kotlin model root is broken (points to a non-existent directory).