Sample Files Not Running Follow
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?
Please sign in to leave a 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.
I am working on the chemistry sample.
I am unable to rebuild the program (bottom right hand corner).
How can I make this https://stepik.org/lesson/351299/step/2?unit=335177 work?
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?
The equation balancer only displays reverse equation.
The equation is unbalanced with 7Co2 but it doesn't offer a change.
The rebuilding of the project triggers the error.
Do I need to install an update to make it work?
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.
As for the error, what changes have you made to the project?
I am hoping to find a way to see a message showing the correct balance such as this.
I have added Toxic Element highlighting.
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?
The goal is not to balance the chemical equation is my understanding only explain whether the equation is balanced.