Skip to content

Conversation

@SE-FDr
Copy link
Contributor

@SE-FDr SE-FDr commented Nov 28, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Nov 28, 2025

⚠️ Changes might break the MontiVerse

Project Status
artifacts ⚠️
details
Project Status
montiarc
umlp
sd
montifun
fd
automaton
sc
guidsl
artifacts ⚠️
ocl
od
ucd
langexperiments
json
xml
cd2gui
mlc
cd4analysis
monticore_basic
class2mc

The MontiVerse is a collection of (internal and public) language projects.

@SE-FDr SE-FDr marked this pull request as ready for review November 28, 2025 19:10
@SE-FDr SE-FDr force-pushed the catchExceptionsInMain branch from 3cc9b98 to 1fd8b85 Compare December 1, 2025 08:38
@SE-FDr SE-FDr force-pushed the catchExceptionsInMain branch from 1fd8b85 to 7dd4644 Compare December 1, 2025 10:42
+ " during the execution of the ${grammarname}Tool."
+ System.lineSeparator() + "This error is unexpected"
+ " and does not indicate an issue with any provided models.",
exception
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das Ganze führt jetzt zu dem Unterschied, dass Errors in der Ausführung mit Exit Code 0 (aka "alles gut") beendet werden.
Wenn wir den Change schon machen -> Rückgabewert zu int Ändern und fail=1/okay=0 zurückgeben?

Copy link
Contributor Author

@SE-FDr SE-FDr Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wie möchtest du den Rückgabewert von main ändern?
Ich würde System.exit eher vermeiden wollen, es sei denn, wir entfernen (lese: passen an) jeden Test, der zurzeit direkt die main Methode testet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in MC Weekly:
Add System.exit, change all the tests that call main to call run instead.

@luepges our gradle plugins should be fine?

@SE-FDr SE-FDr marked this pull request as draft December 2, 2025 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants