Using JetBrain's MPS to create an editor plugin - jetbrains-ide

Can I use MPS to create a "conventional" language plugin for IntelliJ?
It looks like MPS' core feature is the transcription from a DSL to Java. However I just want to define the DSL syntax and editor to ship it as a standalone language plugin via the JetBrain plugin repository.
I am uncertain whether that is the purpose of MPS or I have to use the Grammar-Kit to create the plugin as it is described here.

Yes, MPS allows you to create IDEA plugins, just like the Grammar-Kit does. Take the MPS route, if you need any of its core features - projectional editor, modular languages or multi-stage code generator.
Vaclav

Related

Linux Nemo File Manager extension development in Kotlin Native

I'm have a few ideas for extensions for Nemo and other Linux File Managers I want to develop like for example a properties extension and much more.
How are the extensions actually compiled? Are they Shared Objects or SOs?
https://github.com/linuxmint/nemo-extensions/
If they are shared objects and since they use C code, does that mean I can make an extension using Kotlin Native, since Kotlin Native can now compile to SO?
If the extensions are not compiled to SO, is there a way to make extensions using Kotlin Native? I'm guessing not.
I can't code in any other language, but am curious if it is possible to make Nemo extensions using any language that can compile to SO.
It is possible to turn Kotlin/Native code into an SO, aka dynamic library. You may have a look at the related tutorial https://kotlinlang.org/docs/tutorials/native/dynamic-libraries.html

CodeNarc Maven Plugin

We have a project that uses Groovy extensively and we use Maven to build our artifacts. (IntelliJ as our IDE)
We wanted to incorporate some automated code-style checking, and thought we might use codecarc-maven-plugin. However, since that was from Codehaus, which gone now, is the plugin actively supported somewhere else?
Any other good options to run a Groovy style checker automatically during a Maven build?
That's a good catch. I'll add a pull request to update the website link. You can find the new plugin information on GitHub: https://github.com/gleclaire/codenarc-maven-plugin

asdvantages of using Spec DSL in Minitest?

I am using rails default mimitesting framework. Today i see minitest-rails gem. minitest-rails is a replacement for the default Rails testing engine that enables Minitest features like the Spec DSL that Rails disables by default. But i don't really understand the concept of Spec DSL?
Use of the spec DSL is purely preference. The spec DSL was popularised by RSpec, so if you are familiar with RSpec and enjoy using it you can add a similar spec DSL to minitest.
There are no advantages to using or not using the spec DSL.

How can I enable Groovy plugin features in my eclipse plugin?

I am writing an eclipse plugin which needs to support features from the Groovy eclipse plugin.
The Groovy website talks about Groovy eclipse plugins, and Groovy compiler support within eclipse and maven, but I did not find anything similar to what I need to do here.
If I look at the list of available plugin dependencies, I see a number of them:
How can I enable some discovery mechanism or otherwise, in order to install the Groovy plugin after the installation of my plugin completes?
Which plugin can I add as dependency to achieve this? Or should I have to individually add all of them?
If you want to add single plug-ins you can easily do that in the Manifest-Editor of your plug-in. If you need to add a dependency to a feature, you need to create a feature for your own plug-in and add the additional feature dependency in the feature-Editor.
To find out which groovy plug-ins are required to add the "groovy compiler support", I suppose you must rather look at the groovy features in your installation. Usually complex features like a compiler or the like are grouped within a feature.
Add on:
I think the discovery mechanism is already integrated in p2.
I suppose these plug-ins are part of a feature. Find this feature and add that to your product.
For stability I would recommend to add the specific plug-ins to your product/feature. That way you can be sure, people are using the exact version you proposed in your implmentation.

hibernate like technology as a persistence layer for groovy?

I was wondering if there is like a persistence layer for groovy that is integrated on the ide to generate code automatically based on your database structure?
Just use Hibernate, as you would for a Java project.
Groovy can call java, and you can use the cross-compiler to compile both sources when you build your project.
The Hibernate tools will not spit out Java (so the code will be more verbose than the Groovy replacements), but as you won't need to write the code, this doesn't matter ;-)

Resources