geany 1.30.1 Windows 10
Is there a way, or could you add an option, so that on compilation (or build) the messages window will open to display compiler Warnings just the same as it displays compiler Errors? I have all widgets hidden when working in geany (except for the document list on left -- which I wish I could turn the directory lines off in).
On compile, if an error is generated, the messages window automatically appears and the compiler line is displayed -- perfect behavior. However, when only a warning is generated during compile, the messages window is not displayed, and the status line shown compile was successful. (the warning line is nicely underlined, but I would like the full messages window displayed with the compiler status showing the warnings (some can be quite serious, e.g. incompatible pointer type, etc.., but status line still shows successful compile)
I have tried the Preferences -> General -> Miscellaneous -> [x] Switch to status message list at new message, but that does not cause the messages window to be displayed. A new option under this one with "[ ] Show message window for both errors and warnings." would be great.
You have done a great job with geany. I have a similar but much smaller editor project that I have not yet finished or ported to windows. (github.com/drankinatty/gtkwrite) I'll try and find the time to see if I can help with a patch. Thanks for your great work on geany. Let me know if I can provide any further information.
Showing the compiler window and the value in the status bar does not depend on the output of the command, it depends on the return value from the command. So if your compiler is returning a success value, the window will not show and the status will say successful, since thats what the command returned.
Some compilers have an option to treat warnings as errors, in which case it will return failure and the window and status will reflect that. That may be an acceptable workaround.
The parsing of the command output does not distinguish warnings and errors, but an option to show the window on any parseable output should be accepted, just needs somebody to do it.
As a slightly hackish workaround, one could write a script wrapper around the build command and give non-zero exit code if the compiler writes to stderr.
I got you. So the autodisplay is triggered by a non-zero compiler return. That does pose a challenge. I have tested the effect of any compiler options on the return status. I'll pick though the gcc options and see if there is a way to treat-warnings-as-errors (but I don't want it to halt compilation on warning). Will report back with anything that works.
I no longer get warnings and error messages showing in my Geany4Windows when compiling C and build and execute? I am using "Calron" latest version. & do not know what has happened to cause the warning & error messages to disappear. Incorrect code dets an underline in red, but that is all I get! Any ideas how I can get compiler warnings & errors to show again? Thanks....
@rpd sounds like a separate issue from this one.
OK. Thanks for your reply. I hope I can find the reason for this and a fix for this, as it is quite frustrating not to have warnings & errors messages shown in Geany anymore.
@rpd what do you mean you "no longer get error and warning messages", do you mean the compiler tab is empty? or just that it does not appear automatically?
The latter is the subject of this issue, the former (or any other symptoms) should be raised in a separate issue.
When I compile, build and execute C programs in Geany right now, if there are errors or warnings, I only get a red underline in the code and in the windows terminal I get an error code. I have used Geany for several years and I used to get a window/tab open that showed the error and warning messages related to the underlined in red code. From those error and warning messages I could fix the code errors/syntax to allow correct compilation,build and execution. These warnings and error messages no longer appear in a window/tab and I do not know why the Geany program has this different behaviour?!
Did you try opening the tab manually? `View->Show message window` and select `Compiler` tab.
From "View---Show message window" is all I get/have! I do not have an option for "Compiler tab".
"Compiler" is a tab on the message window, not on the menu.
Where do I find this tab/ message window? The warnings & error messages box always used to appear below the code window but I seem to only have a sidebar and main code window and cannot see a compiler message tab/window!
It should appear when you put the tick in `View->Show message window`, if not, are you sure you havn't set its height to zero?
I have selected/ticked View-->Show message window and do not see any compiler tab/message window. I have not set height to zero otherwise. Is there a default setting option I can use to reset Geany? Maybe that might help me restore this?
OK...Many thanks for your help. I have fixed this now! I uninstalled Geany and reinstalled and the compiler window has appeared (along the bottom as before). Back in business :-)
Ok thats one solution, though just deleting the config file would have been simpler :)
Aaaaah! Now I have learnt something else new (to delete config file). I lost some of my custom default template files also (weirdly one of my html5 custom template files remained). Never mind though I can soon make new ones. Best wishes
Oh no...Now I can only have one file at a time displayed? Geany now is not allowing multiple files/tabs?
@rpd raise another issue stop hijacking this one
Apologies.
github-comments@lists.geany.org