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

Working on new editor enhancements?
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

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

Post 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.
Last edited by fsw on Tue Mar 04, 2008 12:03 am, edited 2 times in total.
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

I cannot reproduce this. Can anyone else confirm it ?
quidquid Latine dictum sit altum videtur
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post 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.
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Are you sure you are not using any preprocessor tool that modifies the files ?
quidquid Latine dictum sit altum videtur
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Good idea, I will look into it and let you know.

Thank you
fsw
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

Are you using Windows Vista ?
Vista's new data redirection/virtualization : http://www.microsoft.com/technet/techne ... FirstLook/
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

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