Compiler doesn't change in IDE

Working on new editor enhancements?
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Compiler doesn't change in IDE

Post by jacdelad »

Hi,
I have a problem when processing a file which is not part of a project. I have PB 6.11 installed (x86 and x64) and added all the compilers into my x64-IDE. Now, when I run a program like

Code: Select all

Debug Bool(#PB_Compiler_Processor=#PB_Processor_x64)
Debug Bool(#PB_Compiler_Processor=#PB_Processor_x86)
and change the compiler afterwards, the compiler does not change. I'm stuck with the x86 compiler right now, no matter which x64 compiler I choose in the settings.

Does anyone else have this problem?

Edit: I found something: If I open the file in a different text editor, I see the compiler is fixed in the extra data at the end of the file. How do I prevent this?
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PeDe
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Nov 26, 2017 3:13 pm

Re: Compiler doesn't change in IDE

Post by PeDe »

jacdelad wrote: Tue Aug 20, 2024 4:39 am Edit: I found something: If I open the file in a different text editor, I see the compiler is fixed in the extra data at the end of the file. How do I prevent this?
In the 'Preferences' under 'Editor', there is the combination list 'Save Settings for'. I use 'A common file project.cfg for every directory'.

Peter
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Compiler doesn't change in IDE

Post by jacdelad »

Oh, I'll try that! Thanks for the hint.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Compiler doesn't change in IDE

Post by HeX0R »

It shouldn't matter where the IDE stores the settings, mine is also doing that at the end of the source codes.
I guess you changed the compiler at the wrong place?
If you change it in preferences/Compiler/defaults => it will not influence the one bond to your source code.
If you change it in Compiler/Compiler Options (Use compiler) => it will be bond to your source code, stored either at the end of it, or in an extra file.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Compiler doesn't change in IDE

Post by jacdelad »

Oh ok. I'll try that later. Thanks! It seems a bit confusing to me. I thought there were two settings, one within a pbp-file and one for the rest.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Compiler doesn't change in IDE

Post by jacdelad »

Ok, so I tried it and finally found "Compiler" -> "Compiler options" in the menu. I didn't know that, but now it somehow does not really make sense (or does it?). Why to have 2 places to set a compiler? Plus, how do I know whether my file has the compiler information stored in it or not??

Also, could a mod please move thie topic to the IDE subforum? It surely fits better there.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
HeX0R
Addict
Addict
Posts: 1204
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Compiler doesn't change in IDE

Post by HeX0R »

To me it makes perfect sense.
Preferences/Compiler/defaults => is your DEFAULT compiler (when starting a new code file)
You only have to set that once, usually.

And when you start compiling, you can swap compilers by Compiler/Compiler Options Menu.

It was always like this, later projects were added to the IDE and made things more comfortable.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Compiler doesn't change in IDE

Post by jacdelad »

When you say it that way, I understand. Seems like it just has to arrive in my head.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Post Reply