Page 1 of 1

4.20 b 2: Saving INC file doesn't work [Solved]

Posted: Tue Jan 08, 2008 7:52 pm
by fsw
Using 4.20 beta 2 IDE:

Saving Include files doesn't work, I found out about it when the compiler always gave the same error message, even when I fixed the include file.

How to get there:
Load a file that uses an include file (this include file needs to be buggy), now compile.
The compiler gives you an error message and the ide loads the include file and moves the cursor to the broken line.
Fix the error, save the include file (do not close it) and recompile the main file.
The compiler gives you an error message and the ide loads the include file and moves the cursor to the broken line.
But (if you didn't close the include file) this time the buggy line is not buggy at all (because you already fixed it).
In reality the file is never saved, but the compiler loads the include file from HD.

Conclusion:
The filename in the tab is marked as saved (no * after the name) but if I reload it it's not changed.
If the include file is loaded manually, changed and saved it will be saved to HD.

What also happened is that the include file was loaded twice:
the file automatically loaded by the ide but edited and saved (well not "really saved" just the * after the filename is gone) and after recompiling the main file: the include file loaded from hd (with no saved changes...).

:cry:

BTW:
I searched the forum for the same (or similar) bug report, but didn't find it.
So I posted.

Posted: Sun Jan 27, 2008 7:31 pm
by freak
I cannot reproduce this. Can anyone else confirm it ?

Posted: Tue Mar 04, 2008 12:00 am
by fsw
freak wrote:I cannot reproduce this. Can anyone else confirm it ?
Supposedly not... :cry:

-----

It happened again:
project with ~100kb of code in 6 different files.

It's really sad that for now I'm the only one having this...
For now I have to fix a bug in my code outside of the PB-IDE and compile again :cry:
(or having one big code file)


Thanks for looking into it.
fsw

BTW: all files share the same first 6 characters like:

PB_SM_main.pb
PB_SM_print.pbi
PB_SM_gui.pbi
etc.

Posted: Tue Mar 04, 2008 12:50 am
by freak
Are you sure you are not using any preprocessor tool that modifies the files ?

Posted: Tue Mar 04, 2008 2:01 am
by fsw
Good idea, I will look into it and let you know.

Thank you
fsw

Posted: Tue Mar 04, 2008 12:56 pm
by ABBKlaus
Are you using Windows Vista ?
Vista's new data redirection/virtualization : http://www.microsoft.com/technet/techne ... FirstLook/

Posted: Tue Mar 04, 2008 5:44 pm
by fsw
freak wrote:Are you sure you are not using any preprocessor tool that modifies the files ?
You got it :D
Renamed the directory, made a fresh install and updated it to the newest beta. After that this strange behavior seems to be gone.

Suppose that's the price I have to pay for only using PB once in awhile and not remembering which tool/preprocessor I tried out some month ago.

Thanks freak.

Please feel free to move this topic out of the bugs area.

Thanks again
fsw

BTW: @Klaus
it's still XP but thank you for the information, might come in handy one day.