rochus-keller / Oberon

Oberon parser, code model & browser, compiler and IDE with debugger, and an implementation of the Oberon+ programming language
GNU General Public License v2.0
464 stars 30 forks source link

Problems with Set Command in IDE #49

Closed wrightsl closed 9 months ago

wrightsl commented 9 months ago

If you do Set Command on one "main program" in your project, and then Set Command to a different "main program" and Run again, it re-executes the first program, even if you Save Project between the executions. You have to exit the IDE and re-start it to be able to run the second program. Even then it sometimes still executes the first program and the only cure seems to be to delete all the .dll in the build directory and fire up the IDE again. I ran into this problem in investigating the problem described in Issue #48 .

rochus-keller commented 9 months ago

"Set command" changes an option relevant to generate the Main#.exe, thus you have to recompile to see an effect. I assume that the incremental feature avoided an adaequate recompilation since no source changed; now since I made the machinery optional you should no longer have to restart the IDE or delete the assemblies to achieve the effect. The incremental machinery was actually not meant to go into the precompiled editions, but unfortunately I forgot to take care of this when I published the precompiled version with the fix to your issue yesterday. I hope that I didn't forget more relevant things.