[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to GIO and small other fixes (PR #1340)

2024-04-28 Thread Colomban Wendling via Github-comments
> I "think" it will work. > In detail this is, when querying https://geany.org/ I get an error: `GET > request failed: WinHttp error: SECURE_CHANNEL_ERROR`. […] > > If I change the URL to query to https://httpbin.org/anything/version, the > HTTP request works fine and I get the expected

[Github-comments] Re: [geany/geany] color priority/precedence (Issue #3860)

2024-04-28 Thread Colomban Wendling via Github-comments
Try adding this in *filetypes.sh* (you can open it from *Tools → Configuration files → Filetypes configuration files → Scripting languages*): ```ini [lexer_properties] lexer.bash.styling.inside.string=1 lexer.bash.styling.inside.backticks=1 lexer.bash.styling.inside.parameter=1

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to GIO and small other fixes (PR #1340)

2024-04-28 Thread Colomban Wendling via Github-comments
@elextr you never know what the future of the web holds, but I highly doubt a security issue would ruin the current API. A new feature maybe, but well. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1340#issuecomment-2081379570 You are

[Github-comments] Re: [geany/geany] color priority/precedence (Issue #3860)

2024-04-28 Thread Colomban Wendling via Github-comments
That's not how things work here, the identifier id either recognized as such anf given a separate style (which we might or might not draw the same as a string), or it's not recognized and thus is considered a string. Which language do you have issue with? -- Reply to this email directly or

[Github-comments] Re: [geany/geany] Sync our ctags to the latest tag version (p6.1.20240421.0) (PR #3859)

2024-04-27 Thread Colomban Wendling via Github-comments
I'll look into this Soon™, but the JS changes might have an issue (might be what you see, might be something else), see [this](https://github.com/universal-ctags/ctags/commit/6d85089456ed215ce6b6a673744ae42ccc5e0e99#diff-eb186936271438240da764e7ccf36ffa04ba8f0a6e1eabd1c69400164ae9f608R1) which

[Github-comments] Re: [geany/geany-plugins] codenav/goto_file: Fix use-after-free crash (PR #1339)

2024-04-27 Thread Colomban Wendling via Github-comments
@b4n approved this pull request. LGBI, makes sense. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1339#pullrequestreview-2026699270 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-27 Thread Colomban Wendling via Github-comments
Merged #1295 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1295#event-12632694851 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to GIO and small other fixes (PR #1340)

2024-04-27 Thread Colomban Wendling via Github-comments
> Yeah, but then its back to four plugins to synchronise on > libsoup3/webkit2gtk-4.1. Yet, does it currently matter? I mean, the code is ready (but for more testing maybe) for all four now, porting isn't what is holding back anymore. Sure the question might arise again for a future libsoup4

[Github-comments] Re: [geany/geany-plugins] geniuspaste: Port to libsoup3 (and avoid GTK3 deprecations) (PR #1342)

2024-04-27 Thread Colomban Wendling via Github-comments
> It didn't appear to do either. No popup or message in status or msgwin on > success. I don't recall seeing anything but some usual gtk errors in terminal. Weird… unless you have a libsoup2 plugin loaded? IIUC nothing will stop you from doing so, but things will just perform bizarrely (or

[Github-comments] Re: [geany/geany-plugins] projectorganizer: Add popup panel for navigation (PR #1341)

2024-04-27 Thread Colomban Wendling via Github-comments
@b4n requested changes on this pull request. LGTM, see inline comments. Apart from that, I was kind of disappointed that the "goto file" only lists Geany open documents rather than the project's documents -- maybe you'd like to add that? Also, I hoped to be able to go to a specific file's

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to GIO and small other fixes (PR #1340)

2024-04-27 Thread Colomban Wendling via Github-comments
@elextr hence checking if it does :) But if it's a concern, just keep using the libsoup implementation, it *ought* to work with HTTP as that's the whole point of that library :smiley: -- Reply to this email directly or view it on GitHub:

[Github-comments] Re: [geany/geany-plugins] geniuspaste: Port to libsoup3 (and avoid GTK3 deprecations) (PR #1342)

2024-04-27 Thread Colomban Wendling via Github-comments
> Do Debian and Ubuntu even bother rebuilding packages for old releases? No, the dependency only matter for users of older releases that would like to build a newer Geany by themselves. And Debian was just an example, sometimes we check what even more slow-paced distro do, like RHEL or so.

[Github-comments] Re: [geany/geany-plugins] geniuspaste: Port to libsoup3 (and avoid GTK3 deprecations) (PR #1342)

2024-04-27 Thread Colomban Wendling via Github-comments
> After testing the plugin, I think it should be dropped. Most of the pastebins > don't work. Indeed only 3 did in my tests (Geany's, Debian's and Sprunge) > There's no confirmation of what it's sending. […] Once data is sent, there's > no way to delete it, which is a security risk if

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to GIO and small other fixes (PR #1340)

2024-04-27 Thread Colomban Wendling via Github-comments
@techee any chance you could check whether gvfs works with HTTP(S) under macos? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1340#issuecomment-2080478237 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] geniuspaste: Port to libsoup3 (and avoid GTK3 deprecations) (PR #1342)

2024-04-27 Thread Colomban Wendling via Github-comments
Thanks for review & testing! BTW, a few things things to note: * libsoup3 is fairly recent (2021-09-18), and e.g. not available in Debian before Bookworm (12, current stable) * I probably won't make it possible to support both libsoup2 and libsoup3, because the changes are too complex which

[Github-comments] [geany/geany-plugins] geniuspaste: Port to libsoup3 (and avoid GTK3 deprecations) (PR #1342)

2024-04-26 Thread Colomban Wendling via Github-comments
Many pastebins dont work, but its not new to the changes here… CC @xiota @jbicha You can view, comment on, or merge this pull request online at: https://github.com/geany/geany-plugins/pull/1342 -- Commit Summary -- * geniuspaste: Port to libsoup3 * geniuspaste: Remove use of deprecated

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to GIO and small other fixes (PR #1340)

2024-04-26 Thread Colomban Wendling via Github-comments
@xiota I don't think we need to explore a *different* additional HTTP library; either we only use what's already part of the general GTK stack, or using libsoup which is also a direct or indirect dependency of 3 other plugins is fine. -- Reply to this email directly or view it on GitHub:

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to libsoup3 and small other fixes (PR #1336)

2024-04-26 Thread Colomban Wendling via Github-comments
See #1340 if wanted. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1336#issuecomment-2079550087 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] [geany/geany-plugins] updatechecker: Port to GIO and small other fixes (PR #1340)

2024-04-26 Thread Colomban Wendling via Github-comments
Same as #1336 but using GIO instead of libsoup. If wanted? CC @elextr @xiota @frlan. You can view, comment on, or merge this pull request online at: https://github.com/geany/geany-plugins/pull/1340 -- Commit Summary -- * updatechecker: Port to libsoup3 * updatechecker: Dont leak the

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to libsoup3 and small other fixes (PR #1336)

2024-04-26 Thread Colomban Wendling via Github-comments
Note that writing an async version of the feature, while reasonably easy, is a little bit more work. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1336#issuecomment-2079476011 You are receiving this because you are subscribed to this thread.

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to libsoup3 and small other fixes (PR #1336)

2024-04-26 Thread Colomban Wendling via Github-comments
hum… @elextr @xiota so what's your conclusion? Depend on libsoup3 as this PR because it's HTTP, or depend on a GVFS backend for HTTP? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1336#issuecomment-2079474204 You are receiving this because

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-26 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -950,6 +1005,23 @@ gwh_browser_set_uri (GwhBrowser *self, g_free (real_uri); } +gboolean +gwh_browser_set_uri_from_document (GwhBrowser*self, + GeanyDocument *doc) +{ + gchar *uri; + + /* document must

[Github-comments] Re: [geany/geany] [FR] Use XDG desktop portal filechooser instead GTK on Linux/BSD (Issue #3458)

2024-04-26 Thread Colomban Wendling via Github-comments
The main issue with native dialogs/portals, is that they have reduced feature set, see e.g. [GtkFileChooserNative](https://docs.gtk.org/gtk3/class.FileChooserNative.html). And some might be a problematic trade-off for our use cases. Also note that I can't read anything in the link above about

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to libsoup3 and small other fixes (PR #1336)

2024-04-26 Thread Colomban Wendling via Github-comments
Yeah I guess using GIO directly for this kind of super simple GET would make sense Indeed. I also think that gvfs will indeed be part of all reasonable GIO installations, but I could be wrong. -- Reply to this email directly or view it on GitHub:

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-25 Thread Colomban Wendling via Github-comments
And voila, I got plagued with another round of cleanups :) -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1295#issuecomment-2078136827 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -26,9 +26,9 @@ Prominent features Requirements -This plugin requires GTK+ (>= 2.16), GLib (>= 2.16), GIO (>= 2.18), -GdkPixbuf (>= 2.0), WebKitGTK (>= 1.1.18), and obviously Geany (>= 0.20) to -work. If you intend to build it yourself,

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n pushed 5 commits. 52ab3ebefc8fdf805b081bac74efaec442c82529 webhelper: Use modern GObject private data 9f420e09447cc2f8a57e4880dfa99bebc67734e7 webhelper: Replace use of deprecated GtkVBox with GtkBox 3edea3f891cdbe241d63d2b4b37ef4c5eea035c4 webhelper: Remove use of deprecated

[Github-comments] Re: [geany/geany-plugins] Markdown: Add support for webkit2gtk-4.1 (PR #1335)

2024-04-25 Thread Colomban Wendling via Github-comments
Merged #1335 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1335#event-12612366928 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -26,9 +26,9 @@ Prominent features Requirements -This plugin requires GTK+ (>= 2.16), GLib (>= 2.16), GIO (>= 2.18), -GdkPixbuf (>= 2.0), WebKitGTK (>= 1.1.18), and obviously Geany (>= 0.20) to -work. If you intend to build it yourself,

[Github-comments] Re: [geany/geany-plugins] Markdown: Modify replace_all to avoid infinite loop (PR #1232)

2024-04-25 Thread Colomban Wendling via Github-comments
Merged #1232 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1232#event-12607573353 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] When the "Markdown" plug-in is enabled, opening a markdown file containing "@@markdown@@" always freezes. (#936)

2024-04-25 Thread Colomban Wendling via Github-comments
Closed #936 as completed via #1232. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/936#event-12607573756 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Markdown: Modify replace_all to avoid infinite loop (PR #1232)

2024-04-25 Thread Colomban Wendling via Github-comments
Oopsie, I didn't check the OP, only the commit message :confused: -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1232#issuecomment-2077050321 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -26,9 +26,9 @@ Prominent features Requirements -This plugin requires GTK+ (>= 2.16), GLib (>= 2.16), GIO (>= 2.18), -GdkPixbuf (>= 2.0), WebKitGTK (>= 1.1.18), and obviously Geany (>= 0.20) to -work. If you intend to build it yourself,

[Github-comments] Re: [geany/geany-plugins] Markdown: Modify replace_all to avoid infinite loop (PR #1232)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n approved this pull request. I extracted the old and new code an tested a bit, and that also works great. FWIW, if somebody didn't catch what the issue was (as in fact it's not mentioned anywhere but "infinite loop"): if the replacement contains the search term, it'll be replaced

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -26,9 +26,9 @@ Prominent features Requirements -This plugin requires GTK+ (>= 2.16), GLib (>= 2.16), GIO (>= 2.18), -GdkPixbuf (>= 2.0), WebKitGTK (>= 1.1.18), and obviously Geany (>= 0.20) to -work. If you intend to build it yourself,

[Github-comments] Re: [geany/geany-plugins] Markdown: Add support for webkit2gtk-4.1 (PR #1335)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n approved this pull request. LGTM and seems to work fine here. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1335#pullrequestreview-2022078950 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] updatechecker: Port to libsoup3 and small other fixes (PR #1336)

2024-04-25 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -185,15 +191,30 @@ version_compare(const gchar *current_version) } -static void update_check_result_cb(SoupSession *session, -SoupMessage *msg, gpointer user_data) +static gchar *bytes_to_string(GBytes *bytes) +{ +gsize bytes_size =

[Github-comments] Re: [geany/geany-plugins] Markdown: Add support for webkit2gtk-4.1 (PR #1335)

2024-04-24 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. Looks good, works fine, but the 2 first commits don't really work one without the other, so they should be merged: the first one actually make it use webkit2gtk only, but by removes the conditional that enables the code to use it (and it probably also

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-24 Thread Colomban Wendling via Github-comments
@elextr I just did the bare minimum, see update -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1295#issuecomment-2075710224 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-24 Thread Colomban Wendling via Github-comments
@b4n pushed 1 commit. 8ee8a92a9eb7276ae210e376e0b80d271f885162 webhelper: Update dependencies in README -- View it on GitHub: https://github.com/geany/geany-plugins/pull/1295/files/d19aee697472477c0e53c12a75303121e47f5b64..8ee8a92a9eb7276ae210e376e0b80d271f885162 You are receiving this

[Github-comments] Re: [geany/geany] When closing the current tab, move to the tab on the left, not on the right (Issue #3855)

2024-04-24 Thread Colomban Wendling via Github-comments
> Alternatively, it could simply switch to the last open tab (emulating the > behavior of Ctrl-Tab). *Preferences → Interface → Notebook tabs → Editor tabs → Switch to lasted used document after closing a tab* :wink: -- Reply to this email directly or view it on GitHub:

[Github-comments] [geany/geany-plugins] updatechecker: Port to libsoup3 and small other fixes (PR #1336)

2024-04-24 Thread Colomban Wendling via Github-comments
Port to libsoup3 (see https://github.com/geany/geany-plugins/pull/1295#issuecomment-1906999722 @jbicha) plus a couple other fixes I just couldnt leave there after seeing them :slightly_smiling_face: **:warning: DISCLAIMER:** I dont know neither libsoup2.4 nor libsoup3. This is a uneducated

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-24 Thread Colomban Wendling via Github-comments
@xiota if you'd like to try, just look at the PR's commit messages. Basically, try building against WebKit2GTK 4.1, enable the plugin and try loading pages, editing an HTML displayed there, etc. But all should be good in theory :crossed_fingers: -- Reply to this email directly or view it

[Github-comments] Re: [geany/geany-plugins] Various small WebHelper improvements (PR #1295)

2024-04-24 Thread Colomban Wendling via Github-comments
@jbicha could you make a PR with your Markdown changes, assuming they are not too Ubunut/Debian-specific? @elextr @jbicha I'll merge this (which at least *allows* building webhelper with 4.1, although not forcing it), and try to update the rest to match, as indeed it will cause issues if

[Github-comments] Re: [geany/geany] Java var keyword not highlighted (Issue #3854)

2024-04-24 Thread Colomban Wendling via Github-comments
> I don't understand your image: > > 1. it does not use `var` There is on line 3 :wink: -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3854#issuecomment-2074328625 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Java var keyword not highlighted (Issue #3854)

2024-04-24 Thread Colomban Wendling via Github-comments
@elextr not sure where you found the info, all I can find myself is that it'd be a "contextual keyword": https://docs.oracle.com/javase/specs/jls/se21/html/jls-3.html#jls-3.9 -- Reply to this email directly or view it on GitHub:

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -241,6 +241,29 @@ void tm_ctags_clear_ignore_symbols(void) } +static void replace_str(gchar **where, const gchar *what, guint what_len, + const gchar *replacement, guint replacement_len) +{ + if (where && *where) + { +

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n approved this pull request. LGTM -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3785#pullrequestreview-2018411095 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -241,6 +241,33 @@ void tm_ctags_clear_ignore_symbols(void) } +static gboolean replace_str(gchar **where, const gchar *what, gsize what_len, + const gchar *replacement, gsize replacement_len) +{ + if (where && *where) + { +

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -241,6 +241,33 @@ void tm_ctags_clear_ignore_symbols(void) } +static gboolean replace_str(gchar **where, const gchar *what, gsize what_len, + const gchar *replacement, gsize replacement_len) +{ + if (where && *where) + { +

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -241,6 +241,33 @@ void tm_ctags_clear_ignore_symbols(void) } +static gboolean replace_str(gchar **where, const gchar *what, gsize what_len, + const gchar *replacement, gsize replacement_len) +{ + if (where && *where) + { +

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -241,6 +241,33 @@ void tm_ctags_clear_ignore_symbols(void) } +static gboolean replace_str(gchar **where, const gchar *what, gsize what_len, + const gchar *replacement, gsize replacement_len) +{ + if (where && *where) + { +

[Github-comments] Re: [geany/geany] meson: Use host instead of target (PR #3853)

2024-04-23 Thread Colomban Wendling via Github-comments
Merged #3853 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3853#event-12581690186 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -241,6 +241,33 @@ void tm_ctags_clear_ignore_symbols(void) } +static gboolean replace_str(gchar **where, const gchar *what, gsize what_len, + const gchar *replacement, gsize replacement_len) +{ + if (where && *where) + { +

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-23 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -241,6 +241,33 @@ void tm_ctags_clear_ignore_symbols(void) } +static gboolean replace_str(gchar **where, const gchar *what, gsize what_len, + const gchar *replacement, gsize replacement_len) +{ + if (where && *where) + { +

[Github-comments] [geany/geany] meson: Use host instead of target (PR #3853)

2024-04-22 Thread Colomban Wendling via Github-comments
They are gonna be the same in practice, but its not how target is supposed to be used[^1][^2]. Streamline this to use host, which also makes things match our Autotools closer. [^1]: https://mesonbuild.com/Cross-compilation.html [^2]:

[Github-comments] Re: [geany/geany] meson: correctly set WIN32 in config.h (PR #3660)

2024-04-22 Thread Colomban Wendling via Github-comments
> Is there anything wrong with merging this? > > Even if it would be cooler to not have to set the flag, as it is done by > Autotools as well, it might be ok. > > And if uctags is updated next time, we could try to remove it again. I don't see any reason not to merge this indeed, if it fixes

[Github-comments] Re: [geany/geany] meson: correctly set WIN32 in config.h (PR #3660)

2024-04-22 Thread Colomban Wendling via Github-comments
@b4n approved this pull request. LGTM as far as 0-testing goes -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3660#pullrequestreview-2015727530 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] meson: correctly set WIN32 in config.h (PR #3660)

2024-04-22 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -185,6 +185,10 @@ if python_command == '' or python_command == 'auto' endif cdata.set('PYTHON_COMMAND', python_command) +if host_machine.system() == 'windows' This is [fine](https://mesonbuild.com/Cross-compilation.html), but we probably should

[Github-comments] Re: [geany/geany] Fix deprecation warning about str.format() during meson setup (PR #3759)

2024-04-22 Thread Colomban Wendling via Github-comments
@b4n approved this pull request. Looks good and works fine. Could you please just squash the commits together? (or I can do it if you prefer) -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3759#pullrequestreview-2015703603 You are receiving this

[Github-comments] Re: [geany/geany] In-file encoding detection not always working (Issue #3777)

2024-04-22 Thread Colomban Wendling via Github-comments
Closed #3777 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3777#event-12565004868 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] In-file encoding detection not always working (Issue #3777)

2024-04-22 Thread Colomban Wendling via Github-comments
Fixed in #3716 (b23201c01390e6ed6d631cf232e404691ffe91ec) -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3777#issuecomment-2070843882 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Fix in-file encoding detection (PR #3779)

2024-04-22 Thread Colomban Wendling via Github-comments
Closed #3779. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3779#event-12564994926 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Fix in-file encoding detection (PR #3779)

2024-04-22 Thread Colomban Wendling via Github-comments
This is a good fix, but was actually already part of #3716 (b23201c01390e6ed6d631cf232e404691ffe91ec), which is now merged. Good work though! -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3779#issuecomment-2070840982 You are receiving this because you

[Github-comments] Re: [geany/geany] Cannot install (Issue #3852)

2024-04-22 Thread Colomban Wendling via Github-comments
The [README](https://github.com/geany/geany?tab=readme-ov-file#using-autotools) should be a good start I believe. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3852#issuecomment-2070815483 You are receiving this because you are subscribed to this

[Github-comments] Re: [geany/geany] meson: Prevent showing console after running geany in Windows (PR #3811)

2024-04-22 Thread Colomban Wendling via Github-comments
We already have deprecation warnings in 0.56, so if we want to support earlier jus use the older option I mentioned -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3811#issuecomment-2068837991 You are receiving this because you are subscribed to this

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-21 Thread Colomban Wendling via Github-comments
didn't you have a fresh install before already? Not sure, but maybe your hardware (hard drive maybe) is faulty? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3843#issuecomment-2068206133 You are receiving this because you are subscribed to this

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-21 Thread Colomban Wendling via Github-comments
Closed #3843 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3843#event-12552031399 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany-plugins] Fix handling of locals (PR #1294)

2024-04-21 Thread Colomban Wendling via Github-comments
@frlan do you plan on making a point-release, given the above-mentioned reasons? -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/1294#issuecomment-2068187873 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] meson: Prevent showing console after running geany in Windows (PR #3811)

2024-04-21 Thread Colomban Wendling via Github-comments
@b4n requested changes on this pull request. ```console ../meson.build:887: WARNING: Project targets '>= 0.53' but uses feature introduced in '0.56.0': win_subsystem arg in executable. […] WARNING: Project specifies a minimum meson_version '>= 0.53' but uses features which were added in newer

[Github-comments] Re: [geany/geany] meson: Prevent showing console after running geany in Windows (PR #3811)

2024-04-21 Thread Colomban Wendling via Github-comments
@eht16 This doesn't seem to have any impact on Linux, so looks fine on that end. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3811#issuecomment-2068186588 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-21 Thread Colomban Wendling via Github-comments
>From looking at the backtrace and the relevant GTK source code, this seems >entirely unrelated to Geany itself (apart for Geany using GTK3, that is). It >looks like either there is a bug in your `XVisualIDFromVisual()` (which could >come from a driver bug maybe?), or a bug in GTK on how it

[Github-comments] Re: [geany/geany] Various encodings conversion fixes (PR #3716)

2024-04-21 Thread Colomban Wendling via Github-comments
@elextr Tell me if there are still strings to be updated or better error to report, I can make another follow-up :wink: -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3716#issuecomment-2068175821 You are receiving this because you are subscribed to

[Github-comments] Re: [geany/geany] Encodings UI improvements (PR #3720)

2024-04-21 Thread Colomban Wendling via Github-comments
Merged #3720 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3720#event-12551819882 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Various encodings conversion fixes (PR #3716)

2024-04-21 Thread Colomban Wendling via Github-comments
Merged #3716 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3716#event-12551817780 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Add Ocaml ctags parser (PR #3163)

2024-04-21 Thread Colomban Wendling via Github-comments
Merged #3163 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3163#event-12551564071 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Various encodings conversion fixes (PR #3716)

2024-04-21 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > geany_debug("Couldn't convert from %s to UTF-8.", > charset); + g_set_error(error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE, + _("Data contains NULs")); Yes, if

[Github-comments] Re: [geany/geany] in document.c symbols_find_typenames_as_string returns always empty string, if tag_parser=Pascal (Issue #3848)

2024-04-20 Thread Colomban Wendling via Github-comments
`symbols_find_typenames_as_string()` uses `symbols_find_typenames_as_string()`, which itself uses `tm_workspace::typename_array`. This is filled *only* with what is deemed a "typename", which currently has to match `TM_GLOBAL_TYPE_MASK` (which is any of `tm_tag_class_t`, `tm_tag_enum_t`,

[Github-comments] Re: [geany/geany] Fix invalid memory access and Unicode support in utils_get_initials() (PR #3846)

2024-04-20 Thread Colomban Wendling via Github-comments
Merged #3846 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3846#event-12548053851 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Fix read past end of string in utils_get_initials() (PR #3844)

2024-04-20 Thread Colomban Wendling via Github-comments
Closed #3844 via #3846. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3844#event-12548053879 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Fix invalid memory access and Unicode support in utils_get_initials() (PR #3846)

2024-04-20 Thread Colomban Wendling via Github-comments
@b4n pushed 1 commit. 53a42c6de7875b0f112b4ed22eb3f3e1c9cf967c Fix invalid memory access and Unicode support in utils_get_initials() -- View it on GitHub: https://github.com/geany/geany/pull/3846/files/346ef35a59857f63e249419e95c5ca66e54301f4..53a42c6de7875b0f112b4ed22eb3f3e1c9cf967c You are

[Github-comments] Re: [geany/geany] Fix invalid memory access and Unicode support in utils_get_initials() (PR #3846)

2024-04-20 Thread Colomban Wendling via Github-comments
> Well the NFKC normalization should handle a lot of cases by itself. Yeah it should. And so you think I should use NFKC rather than NFC? I'm really not sure what makes more sense here. > Yes, its hardly worth the effort to complicate a capability that appears to > be little used, just being

[Github-comments] Re: [geany/geany] Fix invalid memory access and Unicode support in utils_get_initials() (PR #3846)

2024-04-20 Thread Colomban Wendling via Github-comments
> Its not perfect (eg Indic combining chars have class 0) How should this be identified then? Just by ranges or something? > but at least it should not result in invalid strings If that's all we're after, I can keep the normalization step and remove the manual (incomplete?) combining character

[Github-comments] Re: [geany/geany] Fix invalid memory access and Unicode support in utils_get_initials() (PR #3846)

2024-04-20 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > gchar *utils_get_initials(const gchar *name) { - gint i = 1, j = 1; - gchar *initials = g_malloc0(5); + GString *initials; + gchar *composed; + gboolean at_bound = TRUE; + gboolean prev_matched = FALSE; + +

[Github-comments] Re: [geany/geany] Fix invalid memory access and Unicode support in utils_get_initials() (PR #3846)

2024-04-20 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > @@ -766,21 +766,47 @@ gchar *utils_get_date_time(const gchar *format, time_t > *time_to_use) } +/* Extracts initials from @p name, with some Unicode support */ +GEANY_EXPORT_SYMBOL No, it's only exported for tests, not `GEANY_API_SYMBOL`. -- Reply

[Github-comments] Re: [geany/geany] Indentation on pasting of a multiline text (Issue #3845)

2024-04-20 Thread Colomban Wendling via Github-comments
> the current behaviour of re-indenting the first line only is likely to be > wrong most of the time and probably should be changed for multi-line pastes. The current behavior does not indent anything, it just insert whatever there is in the clipboard wherever the caret is at. If the caret was

[Github-comments] Re: [geany/geany] Indentation on pasting of a multiline text (Issue #3845)

2024-04-19 Thread Colomban Wendling via Github-comments
> Even if this doesn't get implemented, I'd love to hear why this is not a > desired behavior :) I think it's an interesting (and probably useful) behavior, but it probably also cannot be the default. Here are a couple of reasons why from the top of my head: * What currently happens is that

[Github-comments] Re: [geany/geany] Fix read past end of string in utils_get_initials() (PR #3844)

2024-04-19 Thread Colomban Wendling via Github-comments
Good find! But I believe the fix, although not bad (despite me not liking the `strlen()` use here, but that hardly matters) is not nearly enough. This function is also *terrible* with non-ASCII handling, to the point where it does more harm than good. I propose an alternate (yet a bit

[Github-comments] [geany/geany] Fix invalid memory access and Unicode support in utils_get_initials() (PR #3846)

2024-04-19 Thread Colomban Wendling via Github-comments
Fix utils_get_initials() reading past the end of the input string if that string was empty. Also fix support for non-ASCII initials for which the UTF-8 character representation would have been truncated to the first byte only, leading to an invalid value. The implementation here also tries to

[Github-comments] Re: [geany/geany] Erlang: display module node in the symbols tree (PR #3837)

2024-04-18 Thread Colomban Wendling via Github-comments
@fbrau OK, thanks for testing. I'm merging this for now because it improves the situation a fair bit, but we can still discuss the details. For whether the module should be shown or not, it's probably a bit of taste, and a bit of meaning, for example: * can *anything* in an Erlang file

[Github-comments] Re: [geany/geany] Erlang: display module node in the symbols tree (PR #3837)

2024-04-18 Thread Colomban Wendling via Github-comments
Merged #3837 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3837#event-12530469240 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] items redundantly prefixed with the current filename in symbols panel (#2650)

2024-04-18 Thread Colomban Wendling via Github-comments
Closed #2650 as completed via #3837. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2650#event-12530469384 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Fix search entry after editing the toolbar (PR #3838)

2024-04-18 Thread Colomban Wendling via Github-comments
@eht16 I merged this anyway, but feel free to still check whether the shenanigans are still useful :wink: -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3838#issuecomment-2065494154 You are receiving this because you are subscribed to this thread.

[Github-comments] Re: [geany/geany] Fix search entry after editing the toolbar (PR #3838)

2024-04-18 Thread Colomban Wendling via Github-comments
Merged #3838 into master. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3838#event-12530458077 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Search bar does nothing after moving it (Issue #3831)

2024-04-18 Thread Colomban Wendling via Github-comments
Closed #3831 as completed via #3838. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3831#event-12530458173 You are receiving this because you are subscribed to this thread. Message ID:

[Github-comments] Re: [geany/geany] Rename both scope and var_type of anonymous types (PR #3785)

2024-04-18 Thread Colomban Wendling via Github-comments
@b4n requested changes on this pull request. Looks good, but impl can possibly be improved a tad (see nitpicks & useful comments inline). Suggested changes (don't trust it blindly, esp. the part around L406): ```diff diff --git a/src/tagmanager/tm_ctags.c b/src/tagmanager/tm_ctags.c index

[Github-comments] Re: [geany/geany] Fix search entry after editing the toolbar (PR #3838)

2024-04-14 Thread Colomban Wendling via Github-comments
> I don't remember the initial problems from 12 years ago, maybe it was GTK2 > releated or a bug in early GTK3 versions or so. Any chance you could try removing the guard and see if anything weird happens? Not that I remember any details about that though, only Git does remember anything :)

[Github-comments] Re: [geany/geany] Add options to control scrollwheel behavior (zoom and scroll lines) (PR #3835)

2024-04-14 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > sci_scroll_columns(editor->sci, amount); return TRUE; } + else if (!event->state || (editor_prefs.scrollwheel_zoom_disable && (event->state & GDK_CONTROL_MASK))) It's also to filter out uninteresting modifiers

[Github-comments] Re: [geany/geany] Add options to control scrollwheel behavior (zoom and scroll lines) (PR #3835)

2024-04-14 Thread Colomban Wendling via Github-comments
> The mouse wheel would look broken if scrolling stopped when control is > accidentally pressed. I'd argue that it's just as true with any incorrect usage that doesn't do what you wanted. For a more unreasonable example, if I hit Del when I meant to write "hello", I wouldn't blame the software

[Github-comments] Re: [geany/geany] Add options to control scrollwheel behavior (zoom and scroll lines) (PR #3835)

2024-04-14 Thread Colomban Wendling via Github-comments
@b4n commented on this pull request. > +void sci_scroll_lines(ScintillaObject *sci, gint lines) +{ + SSM(sci, SCI_LINESCROLL, 0, (uptr_t) lines); +} + + @elextr I'm not concerned by any speed issues, just that although it looks "clean", it also makes the code somewhat more complex,

  1   2   3   4   5   6   7   8   9   10   >