lingua-franca icon indicating copy to clipboard operation
lingua-franca copied to clipboard

Make the "Run" button in Epoch functional

Open cmnrd opened this issue 2 years ago • 2 comments

Currently, hitting the "Run" button in Epoch only produces the message "The selection cannot be launched, and there are no recent launches." It would be great if we could instead actually run the produced binary from Epoch.

cmnrd avatar Apr 07 '22 08:04 cmnrd

I agree with @cmnrd. @a-sr, would this be difficult to do? From what I recall, creating a run configuration is a manual effort. Could it be done programmatically?

lhstrh avatar Jul 01 '22 22:07 lhstrh

Yes, it should be possible, somehow, but I have no experience with that. I found two tutorials (https://www.vogella.com/tutorials/EclipseLauncherFramework/article.html and http://codeandme.blogspot.com/2013/11/debugger-2-launch-framework-not-only.html) and it looks like a lot of work, especially getting all the Eclipse specific registration right and supporting the launch configuration UI. Furthermore, if we want to do it right, we have to consider our different target languages. For example, in Python we do not produce an executable; federated programs neither. We would also have to ensure that the started binary is up to date, which probably requires weaving in the compilation, resulting in an alternative to the current compile button.

a-sr avatar Jul 05 '22 16:07 a-sr