atari-dev-studio icon indicating copy to clipboard operation
atari-dev-studio copied to clipboard

Always move output files to `bin/`, or just generate them there

Open fredsa opened this issue 7 months ago • 6 comments

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.

fredsa avatar Jun 22 '25 23:06 fredsa

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.

chunkypixel avatar Jul 02 '25 08:07 chunkypixel

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 avatar Jul 02 '25 21:07 fredsa

@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).

chunkypixel avatar Sep 23 '25 02:09 chunkypixel

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...

chunkypixel avatar Oct 25 '25 05:10 chunkypixel

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.

Image

furroy avatar Oct 25 '25 13:10 furroy

@furroy Fixed in 0.11.6 (coming shortly) 👌

chunkypixel avatar Oct 28 '25 04:10 chunkypixel