Skip to content

specificlanguages/kotlin-stubs-sample

Repository files navigation

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).

Instructions:

Open the project in MPS:

  1. Run ./gradlew setup to compile the Kotlin library and copy it over to the MPS project.
  2. Open mps-project in MPS 2024.3.
  3. Navigate to the kotlin.library solution.
    • Observe that it contains stubs.
  4. Open properties of the solution.
    • Observe that the model root is present and correct (points to an existing directory).

Build and install the plugin:

  1. Run ./gradlew plugin.
  2. In MPS invoke 'Install plugin from disk...' action, choose mps-project/build/distributions/plugin.zip.
  3. Restart MPS, open any project, e.g. _theSimplestLanguage sample.
  4. Navigate to the kotlin.library solution.
    • Observe that it is empty, i.e. does not contain any stubs.
  5. Open properties of the solution.
    • Observe that the Kotlin model root is broken (points to a non-existent directory).

About

Illustrates a bug with packaging of Kotlin stubs in MPS

Resources

Stars

Watchers

Forks

Packages

No packages published