Alexey Novik

12/07/2020, 1:52 PM
Hi, everyone! I’ve made a dsl and I want my users (non-devs) to edit it as separate file. The problem is that I don’t know how to get rid of import statements in the beginning of the file. I suppose I have to make an intellij plugin, which is ok, maybe someone can point to any examples of that?


12/19/2020, 10:47 PM
I’ll assume your dsl is implemented using kotlin #scripting and add that you can specify default imports for your scripts and use symbols from those imports in the script files automatically If you are not using scripting, then you should be using scripting for this sort of use case. I might be wrong here about what youre trying to achieve so maybe share some extra information

Alexey Novik

01/03/2021, 4:05 PM
I want my users create and edit a dsl file in their IDEA without writing any import statements. For now we decided to make an IDEA plugin, associate the dsl file type with the plugin and add needed default imports in that plugins, so that IDEA can check dsl correctness. It works, though forces our users to use IDEA and our plugin, it’s ok, but maybe there’s a simpler way