QB64Team/qb64

re-run program without editing

richardFK opened this issue · 1 comments

Is it possible to re-run (F5) a program without editing when the IDE status has an error message

C++ Compilation failed (Check .\internal...)

I am doing a lot of programming using CUSTOMTYPE LIBRARY and writing .h files in another IDE. When in that IDE the compilation is reported successful, and my .h file is updated, I then change focus to QB64 IDE where I test the .h file.

In the typical situation, I always have a C++ Compilation error (because my .h file is faulty according to QB64 - despite the other IDE not reporting errors) - and to ensure that QB64 IDE is using the updated .h file, I must at present edit (even with a "dummy" edit such as insert a space and then backspace) my QB64 program and F5 to try out the updated .h file.

I would like to simply press F5 (irrespective of any (error) messages in the QB64 IDE) to force QB64 IDE to use the updated .h file (as referred to in my DECLARE CUSTOMTYPE LIBRARY "C:\QB64.....") - this would save on pretending to update my QB64 program - leaving me to concentrate on the other IDE to eventually get my .h file to initially work in that IDE and then work in the QB64 IDE.

Without editing the code, the compiler can't know that an external file has been edited.
At the point you see an "OK" in the status area (or a C++ Compilation Fail, after F5), QB64 needs to go over your code again, so it can check whether an external file is missing, or has been changed. This would just be a macro to hitting space then f5, which is just one keystroke more than the request. #wontfix