Sample Files Not Running

I have tried to run the sample Shapes and Chemistry files in MPS 2021.2.3 and the early access program MPS multiple times.

I have uninstalled and reinstalled the program and tried to run the sample files, but this error occurs.

 

How can I resolve this issue?

1
13 comments
Official comment

The screenshots indicate that you are trying to run tests in the language. There are no tests to run, so you are getting a correct error message.

You can, however, run programs that are created with the language. These programs are typically placed into the "sandbox" solution. You right-click on any of the programs (we call them root nodes in MPS), like e.g. "MyDrawing" and select "Run" from the context menu.

BTW, The Chemistry sample does not generate runnable code for the chemical equations so the sample programs cannot be run.

Vaclav

 

I am working on the chemistry sample.

I am unable to rebuild the program (bottom right hand corner).

 

1

From the screenshots it seems the compilation went just fine. The error must be related to something else. Can you reproduce the error to pop-up again? What exactly triggers the error?

0

The equation balancer only displays reverse equation.

The equation is unbalanced with 7Co2 but it doesn't offer a change.

0

The rebuilding of the project triggers the error.

0

Do I need to install an update to make it work?

0

There is no automatic resolution for balancing out unbalanced equation implemented in the language, I'm afraid. Technically, this is not a problem, but the logic for correct balancing them is not known to me.

0

As for the error, what changes have you made to the project?

0

I am hoping to find a way to see a message showing the correct balance such as this.

0

I have added Toxic Element highlighting.

0

As for the balance message, it pops-up, when you hover your mouse over the error (red line).

As for implementing the "toxic" property, how far did you get - Structure of Element, Editor for Element or the styling of the Compound editor? Could you share the picture of the Compound editor changes that you made?

0

The goal is not to balance the chemical equation is my understanding only explain whether the equation is balanced.

0

Please sign in to leave a comment.