Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default template for "New LF Project" is federated program #1172

Closed
edwardalee opened this issue May 15, 2022 · 2 comments · Fixed by #1180
Closed

Default template for "New LF Project" is federated program #1172

edwardalee opened this issue May 15, 2022 · 2 comments · Fixed by #1180
Assignees
Labels
bug Something isn't working epoch Epoch IDE

Comments

@edwardalee
Copy link
Collaborator

In Epoch, when I do File->New->Lingua Franca Project, it populates the project with a FederatedHelloWorld.lf program. This is an unfortunate choice for two reasons:

  1. Most people should not start with federated programs.
  2. Because of bug CMake fails with mixed projects #1171, if the user creates a Cpp program in the same directory, it will fail to compile.
@edwardalee edwardalee added the bug Something isn't working label May 15, 2022
@lhstrh
Copy link
Member

lhstrh commented May 17, 2022

That is not the intent. After naming the project, a number of templates are offered to the user:
image
These options are listed in alphabetical order and the federated template just happens to come first. We can either disable the "Finish" button until a selection is made, or we can reorder the templates and put the "Hello World" template first. I'm thinking it might be better to have an "Empty" template that looks something like this:

target C

// Declare reactor classes

main reactor {
    // Instantiate reactors

    // Connect ports

} 

WDYT?

@lhstrh lhstrh added the epoch Epoch IDE label May 17, 2022
@edwardalee
Copy link
Collaborator Author

A yes, the problem is that "Finish" is enabled, hence I click on it and get the Federated example. The default template should definitely not be the Federated one. Perhaps the order should be simply in order of increasing sophistication. The empty template you propose seems like a reasonable first choice.

@lhstrh lhstrh changed the title New LF Project is populated with the wrong example file Default template for "New LF Project" is federated program May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working epoch Epoch IDE
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants