geany / geany-plugins

The combined Geany Plugins collection
http://plugins.geany.org/
590 stars 264 forks source link

Line Operations plugin outputs "Value: 0" to terminal when Geany launches #1322

Closed Gitoffthelawn closed 5 months ago

Gitoffthelawn commented 5 months ago

When running Geany (v1.38) from the terminal with the Line Operations (AKA lineoperations) plugin enabled, Geany issues the string Value: 0 to the terminal. This almost looks like a return value, but it appears as soon as Geany is launched (not when it terminates).

I searched the Geany and the Geany Plugins documentation and did not find an explanation for the meaning of this value or an official way to instruct Geany or the Plugin to suppress it. I did find that redirecting Geany's standard output to /dev/null did hide the seemingly undocumented message: geany > /dev/null

At least for now, is there any harm in redirecting Geany's standard output to /dev/null (i.e. geany > /dev/null)?

Is this message intentional or a bug? If it's intentional, what is the meaning? Can it be added to the documentation (or did my search simply not find it)? Is there an option to suppress it? Can one be added?

See also: https://github.com/geany/geany/issues/3822

elextr commented 5 months ago

Looks like a debug print was left in here

Gitoffthelawn commented 5 months ago

Looks like a debug print was left in here

Thanks. I agree. I commented out that line and submitted a pull request: https://github.com/geany/geany-plugins/pull/1323

Gitoffthelawn commented 5 months ago

Just for record keeping, as per discussion with @eht16, we decided to completely remove the line of code instead of commenting it out.