In this fragment of C++ code geany found:
main function only.
```C++
#include <iostream>
int main(int argc, char **argv)
{
return 0;
}
extern "C"
{
void f() {}
}
```
Geany 1.38 (build 2021-09-01 or later)
Used GTK+ v3.24.30 and GLib v2.70.0 runtime libs
#349
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3189
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3189(a)github.com>
I tested Geany with valgrind to make sure #3185 didn't introduce any memory leaks (it seems it didn't) and noticed this leak in the docbook parser (which we maintain by ourselves so no upstream patch needed). I'll merge this in a few days unless there are objections.
There are also leaks in Fortran (fixed upstream) and VHDL (different parser upstream) parsers which will get fixed once we merge the upstream versions.
For (my) future reference, I used valgrind with these parameters:
```
G_SLICE=always-malloc G_DEBUG=gc-friendly:resident-modules ./libtool --mode=execute valgrind --tool=memcheck --leak-check=full --leak-resolution=high --log-file=vgdump --suppressions=/usr/share/glib-2.0/valgrind/glib.supp src/geany
```
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3187
-- Commit Summary --
* Fix docbook parser memory leak
-- File Changes --
M ctags/parsers/geany_docbook.c (2)
-- Patch Links --
https://github.com/geany/geany/pull/3187.patchhttps://github.com/geany/geany/pull/3187.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3187
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3187(a)github.com>
I don't know why this happens with Geany. but the input function shows up as an invalid syntax in the terminal for some reason.
![screen08](https://user-images.githubusercontent.com/104681349/166132456-75b1781c-0228-4b5d-b8dd-1da32c4d261f.jpg)
![screen09](https://user-images.githubusercontent.com/104681349/166132529-d657f655-6207-4645-b314-c94c02effc94.jpg)
I tried the same code with Visual studio code and it executed just fine.
I'll show a screenshot.
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3188
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3188(a)github.com>
When editing a multi-part project (like a Python project with several modules), I frequently forget to save a module's file before running the main program again. So I have to either ctl-shift-S, then retry, or go back to the changed tab, save, back to the main, and try again.
Would it be difficult to implement a way, such that, on execute, all changed tabs get saved? I considered:
- Adding an option in the build command lines
- Implement a %-variable (say %! or so) which does the saving, and can be included in the build command
Or maybe I'm just missing something?
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3186
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/3186(a)github.com>