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
3
votes
1 answer

How can I use mbeddr's grammar cells in Jetbrains MPS?

I would like to use mbeddr's grammar cells in MPS as shown here and in the linked video. Therefore, I followed the instructions, downloaded the latest stable platform-distribution_2017_2_0.zip and copied all the plugins into my MPS 2018.1. Although…
Blob
  • 75
  • 5
3
votes
2 answers

Using maven as dependency management manager for MPS baseLanguage model?

Is it possible, instead of importing all runtime jars into MPS, to just consume external dependency management tool like maven and let it resolve and upload all needed libraries into MPS automagically?
Askar Kalykov
  • 2,553
  • 1
  • 22
  • 43
3
votes
1 answer

Graphstream rendering disappears sporadically when displayed in docked panel of IntelliJ

I'm integrating graphstream (www.graphstream-project.org) into JetBrains MPS (i.e. IntelliJ). The Graphs are displayed in a "tool window" of IntelliJ (the panels on the side, see screenshot). If the panel is in "floating" mode (not docked) this…
Till F.
  • 189
  • 1
  • 9
3
votes
1 answer

MPS - Standalone repl application?

Continuing my exploration of possibilities MPS can offer, I wonder, is it possible to extract MPS repl component/module into some standalone application which would use some external model files?
Askar Kalykov
  • 2,553
  • 1
  • 22
  • 43
3
votes
1 answer

Any examples of turing-complete GPL's in MPS

Could you please provide me with examples of open-sourced Turing complete general-purpose language(s) developed under MPS platform? (For further Studying).
ppopoff
  • 658
  • 7
  • 17
3
votes
1 answer

Why jetbrain's MPS does not follow package structure for java classes

I am just curious to know why jetbrain's MPS does not follow package structure for java classes. Even the editor available for java programs does not have a tag called package. Is there any specific reason?
Sanjit Kumar Mishra
  • 1,153
  • 13
  • 32
3
votes
2 answers

using language created in jetBrains MPS tool outside MPS tool / intellij idea

I have created my own small DSL using jetBrains MPS tool. I am able to use this language inside MPS tool or with help of plugins in Intellij Idea too. I want to use this language outside MPS and Intellij. Idea lets say in any simple java project. Is…
Arshad Ali
  • 93
  • 1
  • 6
3
votes
1 answer

Generate Different Text Languages from one DSL with MPS

I'm looking for a way to generate code in several different languages, good start will be ObjC, Java for Android, Unity and JavaScript (Cordova), for repeated code. Currently I'm writing the code manually over and over in each language. I'm looking…
Ido Ran
  • 10,584
  • 17
  • 80
  • 143
3
votes
1 answer

Cannot find JDK Dependency - JetBrains MPS

I'm watching the first tutorial on MPS over at https://youtu.be/Uq4o4TCLhCQ?t=5m5s and he's talking about adding a dependency (JDK), but when I follow the steps do add it, JDK doesn't show up on my list like it does with his list. I've tried adding…
SE13013
  • 343
  • 3
  • 14
2
votes
0 answers

feedback loop: Expected a 'cpu' device type for generator but found 'mps'

I am trying to finetune a HuggingFace model on MacOS M2. However, the torch operator 'aten::random_' does not exist yet for MPS. Therefore, I ran the program with PYTORCH_ENABLE_MPS_FALLBACK=1 Then I got the following message "Expected a 'cpu'…
2
votes
0 answers

How to resolve "MPS Framework doesn't support float64" on M1 Mac

I am trying to train a YOLO model on a custom dataset using YOLOv8 Ultralytics, using M1 MacBook Pro MPS acceleration which is supported by PyTorch but I am getting the following error while executing the train command. Command: !yolo task=detect…
2
votes
4 answers

Is it possible to export a DSL compiler created by JetBrains MPS and use it independently (e.g. invoke it from another Java program)

I'd like to build a DSL and use it as follows: The DSL compiles to Java. Export the DSL compiler and package it (i.e. as a JAR), so I can invoke the DSL compiler from a Java application to compile "code written in my DSL" into "Java source code"…
mohaseeb
  • 389
  • 4
  • 8
2
votes
1 answer

How to set conditional color in MPS context editor?

As a newbee of MPS I try to set different colors for finished items within a small todo list. I have a boolean properties attribute "finished" and want to return the color values - but I cannot use a named color or the java Color class. Surely I…
Christian
  • 576
  • 1
  • 4
  • 16
2
votes
2 answers

Access node's properties/children from inline template

I have a template switch where, based on the node's concept, I want to create runtime objects using that node's properties and/or children. The right-hand side of each case is an inline template. How do I access node's properties/children from that…
Tomas Mikula
  • 6,537
  • 25
  • 39
2
votes
1 answer

Voice Menu Example - JetBrains MPS - How to build, compile and run the example project

I'm trying to learn the DSL workbench JetBrains MPS. One of their examples is the Phone Voice Menu as found here and the source code here. Upon opening the project in MPS. I have this warning/error highlight regarding dependency. How do I execute…
Rene Duchamp
  • 2,429
  • 2
  • 21
  • 29