Questions tagged [mps]

JetBrains MPS is a language workbench to create Domain Specific Languages (DSL).

With MPS you can design your own extensible DSLs and start using them right away to build end-user applications. The unique ability of the projectional editing technology is that it allows you to overcome the limits of language parsers, for building richer DSL editors with tables and diagrams. Still puzzled? Watch our video.

Useful Links:

108 questions
1
vote
2 answers

mps grammar cells giving message "Error Missing Dependency on jetbrains.mps.lang.core"

I am following along Kolja Dummann's Heavy Meta (4) livestream on Youtube. I am trying to use the grammar cells to wrap a binary expression. the projection looks like this editor for concept BinaryExpression …
Paul Spencer
  • 860
  • 5
  • 14
1
vote
2 answers

What can I do with DSL languages generated inside JetBrains MPS?

I've just started a couple of hours ago reading about DSL modeling. But right now, I'm tied to using the JetBrains MPS IDE or it's plugin for JetBrains Intellij Idea and I'd like to know how can I export those DSL models to something available to…
loko
  • 111
  • 7
1
vote
1 answer

Executing a non ui blocking task in MPS and changing the model after task completion

In Jetbrains MPS I want to execute a web request when the user hits a shortcut or an action from the context menu. After successfully executing this request I want to show the user the response by manipulating the MPS model. When I execute the web…
Peter
  • 4,752
  • 2
  • 20
  • 32
1
vote
1 answer

Is there a way to use mps-extensions via Gradle?

I see https://github.com/JetBrains/MPS-extensions publishes releases via GitHub, however it does not look convenient for integration of the artifacts to a MPS-based project. What if my project is built via MPS and it depends on MPS-extensions? It…
Vladimir Sitnikov
  • 1,467
  • 12
  • 31
1
vote
1 answer

How to throw an error (at generation-time) in the default branch of a template switch?

I want to make sure that my template switch is only called with nodes it can handle. If it is used with an unrecognized concept, I would like code generation to fail with an error. Is there a way to throw generation-time errors from…
Tomas Mikula
  • 6,537
  • 25
  • 39
1
vote
1 answer

I update type of a variable (e.g. Foo a; -> Bar b) how MPS updates x.field references to the new type?

TL;DR: I know MPS 2017.2 does not update field references. The question is how to get it right, so DSL users would not have to retype all the program in case of a single "variable type change" Here's an example for MPS's base language: public class…
Vladimir Sitnikov
  • 1,467
  • 12
  • 31
1
vote
1 answer

MPS-based IDE: what are the best practices for embedding JRE/JDK?

MPS enables me to build standalone IDEs (see https://confluence.jetbrains.com/display/MPSD34/Building+standalone+IDEs+for+your+languages), however Windows builds would definitely need a JDK/JRE. The users get confused with installing Java, etc. Are…
Vladimir Sitnikov
  • 1,467
  • 12
  • 31
1
vote
1 answer

java.lang.UnsatisfiedLinkError: Native Library /usr/local/MATLAB/R2017a/bin/glnxa64/libnativemvm.so already loaded in another classloader

I am trying to call MATLAB functions from Jetbrains MPS. However, I am getting this error: Native Library /usr/local/MATLAB/R2017a/bin/glnxa64/libnativemvm.so already loaded in another classloader java.lang.UnsatisfiedLinkError: Native Library…
1
vote
2 answers

Languages under plugin are not getting deployed to MPS

I have built and added some new plugins to MPS and when I am trying to use them I am getting the following error "The language is not deployed 'com.abc.plugin.implementation'" Anybody faced the similar problem and have a solution can help me? MPS…
Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32
1
vote
1 answer

Import external jar in generator module of Jetbrains MPS

I want to develop a dsl for excel operations with Jetbrains MPS. I want to import Apache POI in the generator module. I downloaded jar file of POI and tried to import it by Adding Model Root in generator like below, but it doesn't help. import jar…
沈益菌
  • 169
  • 1
  • 3
  • 10
1
vote
1 answer

Meta language for rest client

We have a back end that exposes 50-60 Rest APIs. These will largely be consumed by standalone applications like a Python script or a Java program. One issue we have is the APIs are at a very granular level, they do not match the business use case.…
James
  • 109
  • 1
  • 4
1
vote
1 answer

MPS Typesystem Querying Databases/Issuing API calls

I'm using MPS to implement a really interesting DSL. What I'm curious to know, and haven't found anything on their site about, is whether I can, within the typesystem, issue an API call or query a database on the fly. So we would see that an…
lilott8
  • 1,116
  • 2
  • 17
  • 41
1
vote
0 answers

How to link generated c code to mps editor in Jetbrain's MPS

I am not sure if this functionality is available or not but can anyone please answer whether can I link generated c code to MPS editor code in Jetbrain's MPS.
Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32
1
vote
1 answer

Automation Testing for MPS applications

Does anyone using automation testing tool for Jetbrain's MPS based application. If yes can you please share the tools with me. Or else if you can help me to choose one would be great I have tested with the tools like Sikuli, AutiIT & Automa. But not…
Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32
1
vote
1 answer

MPS: 'Make model' command does not generate text

In MPS, I have a very simple model with a System root node. I added a System_TextGen to create a python file. When I ask for a preview of the generated text, I get to see my appended-to buffer. text gen component for concept System { file name :…
xtofl
  • 40,723
  • 12
  • 105
  • 192