You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if you have a .lf file with no main reactor, you get a warning:
WARNING: The given Lingua Franca program does not define a main reactor. Therefore, no code was generated.
This gets flagged as a yellow caution symbol in the IDE. I don't think this should be a warning. It should be reported as "Information", but our ErrorReporter interface does not have support for this. It should be straightforward to extend it, so I'm marking this as a good first issue.
The text was updated successfully, but these errors were encountered:
I am wondering what the error reporter should do with the info message, though. Print it to the command line? I think there is no obvious way of showing info messages in an IDE. However, if info messages are always printed to the command line, we could just print them directly, right?
lhstrh
changed the title
Warning when there is no main reactor should be Information not Warning
Turn warning for absence of main reactor into an informational message
May 31, 2022
Currently, if you have a .lf file with no main reactor, you get a warning:
This gets flagged as a yellow caution symbol in the IDE. I don't think this should be a warning. It should be reported as "Information", but our
ErrorReporter
interface does not have support for this. It should be straightforward to extend it, so I'm marking this as a good first issue.The text was updated successfully, but these errors were encountered: