Page 1 of 1

[Done] Compiler selection not remembered after update

Posted: Fri Oct 06, 2023 8:27 pm
by nsstudios
It seems as though the compiler selected for a pb file isn't remembered across updates.
I'm not sure if this only applies to betas, but for example:
Set compiler to x64 C backend
file.pb wrote: ; Compiler = PureBasic 6.03 beta 9 LTS - C Backend (Windows - x64)
After update to beta 10, the compiler resets to beta 10 x64 asm in compiler options instead of it selecting beta 10 x64 C backend.
It would be nice if there was a way for the IDE to select the compiler based on something that wouldn't change across updates. Extra points if it would know to recognize the same compiler across different OS's. Unless I'm mistaken, currently if you select x64 C backend on Windows, and try to load the pb file on another OS, it will not find it, even if you have the same version of PB installed.
Edit: It would also be nice if a compiler could be given a custom name, which could also serve as a unique identifier between different PB versions. E.g., if I set my 64c compiler to x64c, it won't change across updates. Also, if I add the same compiler version and same backend just different paths (for testing, for example), allowing to give them custom names would be less confusing than seeing two of the same entries.

Re: Compiler selection not remembered after update

Posted: Wed Nov 01, 2023 2:48 pm
by Quin
+1 to this. I use the C backend by default on Windows, and have to remember to change it every time I update.

Re: Compiler selection not remembered after update

Posted: Sat Feb 22, 2025 9:17 pm
by Fred
Seems to work as expected, can anybody confirm ?

Re: Compiler selection not remembered after update

Posted: Sat Feb 22, 2025 10:58 pm
by Quin
Hi Fred,
When updating from 6.12 to 6.20, I didn't encounter this problem anymore on Windows 10 21H2 :)
@nsstudios?

Re: Compiler selection not remembered after update

Posted: Mon Feb 24, 2025 6:56 am
by nsstudios
I can confirm!
Also when opening projects that had 6.12 as compiler, 6.20 gets properly selected.
I haven't tried if you still get an error when trying to open a project on another OS that had its compiler setting set in a different OS. e.g., Windows to MacOS.