MrcSnm/HipremeEngine

2nd run of the generated project doesn't run

p0nce opened this issue · 5 comments

p0nce commented

After a project is generated:

First run of dub -c run --compiler dmd run the game.
Repeating dub -c run --compiler dmd doesn't run the game.
I didn't expect that.

Here the 2nd run result:
image

Using dub -c run --compiler dmd -f makes it run again.

Yes, I have been having a complicated time dealing with that too. Do you know if there is a way to force dub to always execute a command even if it is up to date?

Btw, HipremeEngine has a test scene with more functions and documentation if you run dub on the engine itself. Do you think I should mirror this test scene on start_here or a blank project is better?

p0nce commented

I have been having a complicated time dealing with that too. Do you know if there is a way to force dub to always execute a command even if it is up to date?

I don't know, it is possible to provide -f to the documentation reader for now I think. Or it could be an info message at start of program log, or in the Getting-Started page even.

Do you think I should mirror this test scene on start_here or a blank project is better?

I made a separate issue, I understood that it was a blank project now but that made me wonder if the example was working. non-blank is an opportunity to show off your features. (EDIT: if the user can immediately modify/improve on the example in some way, it makes the example its own)

Okay, so, for the time being, I'll make it mirror the test scene.
The project generator will be what the start_here has today

#66 fixed that. Using postGenerateCommands instead of postBuildCommands was the solution