Page 1 of 2

The compiler asks twice to overwrite

Posted: Fri Jun 21, 2019 8:35 pm
by amyren
There is a minor annoyance when compiling and you want to replace a previous executable.
It will prompt you that the file already exist, and ask if you want to overwrite this.
If yes it will continue, asking about compression. Then as the last step before saving the executable, it will again prompt you about overwriting the file.

Re: The compiler asks twice to overwrite

Posted: Sat Jun 22, 2019 11:18 pm
by airsoftsoftwair
Which platform is this?

Re: The compiler asks twice to overwrite

Posted: Sun Jun 23, 2019 10:57 pm
by amyren
I think its a general issue, it happens both when compiling for 68k or for Windows x64. The same thing happens when creating applets as well.

Re: The compiler asks twice to overwrite

Posted: Mon Jun 24, 2019 12:23 am
by lazi
I think he asks about what is the system where the compiler runs on, not the target platform.

Re: The compiler asks twice to overwrite

Posted: Mon Jun 24, 2019 11:10 am
by Clyde
I assume "Windows" as amyren has posted that in "Windows IDE" ...

Re: The compiler asks twice to overwrite

Posted: Mon Jun 24, 2019 4:58 pm
by airsoftsoftwair
Ok, this is a minor nuisance which can easily be worked around by changing the following line

Code: Select all

%HWPATH %SCRIPT -compile %OUTEXE -exetype %EXEPLATFORM -debugdevice ::hwnd%IDEWINDOW
to this line:

Code: Select all

%HWPATH %SCRIPT -compile %OUTEXE -exetype %EXEPLATFORM -debugdevice ::hwnd%IDEWINDOW -overwrite
...in Settings-Hollywood-Options for compiling scripts.

Re: The compiler asks twice to overwrite

Posted: Mon Jun 24, 2019 10:16 pm
by amyren
Yes, that worked. Now it only asks once.

Re: The compiler asks twice to overwrite

Posted: Sat Jul 06, 2019 6:00 pm
by airsoftsoftwair
Ok, I won't fix this, though. The reason is that when compiling Windows executables or Hollywood applets, Hollywood will automatically add ".exe" or ".hwa" to the specified file if this extension wasn't specified. So if you choose a file named "foo" Hollywood will compile as "foo.exe" instead if you compile for Windows but the file requester might not complain because you just chose "foo" and then files could get overwritten without asking. So better ask twice than overwrite stuff unwantedly :)

Re: The compiler asks twice to overwrite

Posted: Mon Feb 22, 2021 10:38 pm
by mrupp
I think the first overwrite-request comes from the file requester, the second comes from the hollywood compiler.
So if you choose a file named "foo" Hollywood will compile as "foo.exe" instead if you compile for Windows but the file requester might not complain because you just chose "foo" and then files could get overwritten without asking. So better ask twice than overwrite stuff unwantedly :)
I agree, the second one from the compiler should stay, but maybe the first one from the file requester could be turned off and that would fix it?

Re: The compiler asks twice to overwrite

Posted: Tue Feb 23, 2021 6:56 am
by plouf
No since compiler time maybe ita late

Imho if you "agree" in ide ide should compile with a possible overwrite attribute
I.e
Hollywood -overwrite main.hws main.exe