Is there any need for another compiler warnings window?

Everything else that doesn't fall into one of the other PB categories.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Is there any need for another compiler warnings window?

Post by Kale »

Is there any need for another compiler warnings window?

I just wondered if the compiler warnings could output to the debug output window instead. Maybe make this a preference?
--Kale

Image
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Many people (including Fred) have the error log hidden all the time, so they would never notice any warnings.
The warnings window remembers its position. So just move it somewhere to the edge of the screen and it will stay out of the way.

There is no setting to get rid of the window, because you are not supposed to just ignore these warnings. You should fix the warned-about functions and the warnings will go away ;)
quidquid Latine dictum sit altum videtur
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

> Many people (including Fred) have the error log hidden all the time...
maybe he should unhide it. :twisted: sorry, i couldnt resist. :lol: :lol:

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

nco2k wrote:> Many people (including Fred) have the error log hidden all the time...
maybe he should unhide it. :twisted: sorry, i couldnt resist. :lol: :lol:

c ya,
nco2k
What do you think i am telling him all the time? :wink:
quidquid Latine dictum sit altum videtur
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

freak wrote:There is no setting to get rid of the window, because you are not supposed to just ignore these warnings. You should fix the warned-about functions and the warnings will go away ;)
Lol, but when we start to use the new commands and don't compile old sources often. Will there be an option then? :)

Or, have the error log open itself if there is an error and stay hidden if there is no error? It just seems a bit redundant to have lots of different unconnected windows open when one would do.
--Kale

Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Please get rid of this. Errors are more important than warnings, so it does not make sense to have a more annoying windows for warnings than for errors.

Also, I just don't like it. And I have the error log open.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

IMHO one window would do for all output, i.e. Errors, Warnings and Debug output! By default show it when something is written to it.
--Kale

Image
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Also, I just don't like it

:lol: Now that's a compelling reason to change it!
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

I like that idea Kale,
but while at it. why not combine the behavior of the two.
A single error/log/warning window, with docked and undocked option.
With auto show/hide until first error etc.

*looks at freak* try it for Beta2 if there's enough time?
JCV
Enthusiast
Enthusiast
Posts: 579
Joined: Fri Jun 30, 2006 4:30 pm
Location: Middle East

Post by JCV »

For me one window will do and have a settings which you can check if you want to see warnings, etc.

something like
C:\sample\sample.pb(40) : error #: Error msg.
C:\sample\sample.pb(73) : warning #: Warning msg.
sample.exe - 1 error(s), 1 warning(s)

[Registered PB User since 2006]
[PureBasic 5.7][SpiderBasic 2.2] [Win 10 64bit]
[Intel i7 990x 4.20 Ghz] [18GB DDR3]
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

I'd rather have it added to the Debug window, strange as it may sound.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

So these are the options now?
- send warnings to error log
- send warnings to debug window
- send warnings to separate window
- send warnings to outer space
- send warnings to Bill Gates
- all of the above
:P

I still see the current one as a good solution.
Remember, the purpose of the warnings is to be visible. If you do not notice them, they do not serve any purpose.

The log contains compiler errors as well as all debugger log messages. I think the compiler warnings would simply go unnoticed there, as there is no additional feedback like on a compiler error (Requester and compilation abort)

> Errors are more important than warnings, so it does not make sense to have a more annoying windows for warnings than for errors.

A compiler error opens a requester. You have to confirm it before doing anything else. The compiler warning window does not stop compilation or execution of the program. You can just ignore it if you want to. Plus: if you move it out of the way, it will stay out of the way the next time unlike a requester. Thats much less annoying in my book.
quidquid Latine dictum sit altum videtur
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

The Debug window is for the app's runtime messages, not for the compiler.
Having compiler error messages or warnings in it defeats its entire concept.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

i just think it will be cleaner to have a generic 'Output' window for all messges. :) And errors and warnings can not be turned off.
--Kale

Image
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

The last thing I want to do when looking at my app's debug commands is sort
through any compiler messages mixed in my app's data. Surely you'd agree?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply