Closed jschadewald closed 8 months ago
Thank you very much for the detailed report - it is much appreciated :-)
Historically it has been difficult to get at an ideal and lasting IDE setup. Odds are we need another round of activity to shine it up a bit. Anybody interested in Gradle and IDE integration should feel free to dive into this one!
what is done in the github workflow file builds it without running:
gradle --console=plain clean extractConfig extractNatives distForLauncher testDist
now, after checking out, importing gradle lets it run. if not please reopen.
General Info
Not sure whether this is an actual issue or intended behavior. I was following the Contributor Quick Start wiki, and I lost a few hours to troubleshooting why the game would only launch from source inconsistently in IntelliJ. In my reading of the wiki, it appears as though the run configuration is intended to be equivalent to building the 'game' target. However, it also seems reasonable that building the game (i.e. running
gradlew game
) is a natural prerequisite to executing any run configuration. In addition, a person may want to run the game many separate times on the same build without making code changes.If running
gradlew.bat game
is an intentional prerequisite for the IntelliJ run configurations to work, then the wiki could be improved to make required sequential order clearer (numbers or letters versus bullet points). Alternatively, if the Run configuration is intended to be able to execute the game from sources independent of runninggradlew.bat game
, then the configuration should be updated.Asides: Relatedly, if the "game" target both builds and runs the game, then is there a target that builds the game without also running it? Where are all of these build targets documented?
What you were trying to do
After running
groovyw module init iota
and opening the Terasology folder in IntelliJ, I expected the run configuration to run the game from sources.What actually happened
The build failed.
How to reproduce
Log details
NA
Screenshots
Prompt from step 5:
Run configuration from Step 6:
Workaround
Repeat steps 1-4 from above, then: 4.5 Either: a. Run gradlew.bat game from the console; OR b. Click "Load Gradle Project" on the IntelliJ prompt, and run the "game" build target from IntelliJ's gradle tasks widget. 5. The game runs. Exit it. 6. You can now run the TerasologyPC run configuration.
Additional Infos / Context
Feel free to add any other context about the problem here.