The compiler asks twice to overwrite

Forum for discussion about the Windows IDE of Hollywood
Post Reply
amyren
Posts: 82
Joined: Thu May 02, 2019 11:53 am

The compiler asks twice to overwrite

Post by amyren » Fri Jun 21, 2019 8:35 pm

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.

User avatar
airsoftsoftwair
Posts: 3192
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: The compiler asks twice to overwrite

Post by airsoftsoftwair » Sat Jun 22, 2019 11:18 pm

Which platform is this?

amyren
Posts: 82
Joined: Thu May 02, 2019 11:53 am

Re: The compiler asks twice to overwrite

Post by amyren » Sun Jun 23, 2019 10:57 pm

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.

User avatar
lazi
Posts: 363
Joined: Thu Feb 24, 2011 11:08 pm

Re: The compiler asks twice to overwrite

Post by lazi » Mon Jun 24, 2019 12:23 am

I think he asks about what is the system where the compiler runs on, not the target platform.

User avatar
Clyde
Posts: 198
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

Re: The compiler asks twice to overwrite

Post by Clyde » Mon Jun 24, 2019 11:10 am

I assume "Windows" as amyren has posted that in "Windows IDE" ...
Currently using: Hollywood 8 with Windows IDE

User avatar
airsoftsoftwair
Posts: 3192
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: The compiler asks twice to overwrite

Post by airsoftsoftwair » Mon Jun 24, 2019 4:58 pm

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.

amyren
Posts: 82
Joined: Thu May 02, 2019 11:53 am

Re: The compiler asks twice to overwrite

Post by amyren » Mon Jun 24, 2019 10:16 pm

Yes, that worked. Now it only asks once.

User avatar
airsoftsoftwair
Posts: 3192
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: The compiler asks twice to overwrite

Post by airsoftsoftwair » Sat Jul 06, 2019 6:00 pm

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 :)

Post Reply