Always move output files to `bin/`, or just generate them there
When a build succeeds, the output is moved (MoveFilesToBinFolderAsync) to the bin/ folder.
When a build fails, those same output files are left in place. This is surprising behavior and slightly annoying.
Can the files always be moved to the bin/ folder? Better yet, would it be possible to generate them there directly? For example, by making the CWD be bin/? That seems a better way to go than asynchronously moving files.
Thanks @fredsa for the suggestions!
The compilation is completed using either .bat (Windows) or .sh (Linux/Mac) scripts with the process handled within this. I am reluctant to change the scripts in any way as Mike (the 7800basic/bB maintainer) does change them from time to time as required. Thus the move file process was implemented but agree it would be nice to do it the easy way but....
As for removing the residue of a failed compilation, due to the 2 step compilation process: a preprocessor converts the basic to assembly then the DASM compiles that so it is very helpful to sometimes have some of those files left to review but I do agree for the most part I would be nice to keep it all nice and tidy - maybe that could be is an option in the settings...
I will leave the suggestion open for the time-being so I can think about it a little more.
What about launching the compile process inside the bin dir? That way the files would be generated there and there would be no need to move them.
@fredsa I had a little look at this one but had some issues with the process - so will hold on for now until the wasm process is complete for bB. I can discuss with Mike Saarna what I might be able to change in the script (if at all possible).
When a build fails, those same output files are left in place. This is surprising behavior and slightly annoying.
I've added a change for this in the next release (0.11.6) which should now cleanup the files.
Still need to see about the issue of compiling directly into a bin folder...
v0.11.4 says it fixed moving debugger files, but for me it's the opposite. now it has stopped moving my *.lst and *.sym files into my /bin folder!
it says in the output it's moving them, but it doesn't happen. the full path is: D:\atari\saga\saga.bas.lst with no spaces or special chars.
@furroy Fixed in 0.11.6 (coming shortly) 👌