Geany 1.32 on Linux Mint 19.3
just trying to execute a ruby program by pressing F5 like I do for Python and I get this error:
```
/tmp/geany_run_script_2LITE0.sh: 7: /tmp/geany_run_script_2LITE0.sh: ruby: not found
------------------
(program exited with code: 127)
Press return to continue
```
it is just a "hello world" program, when I go to the directory in gnome terminal and type "ruby hello.rb" the program executes.
it does run in VTE mode
I have tried changing the shell from the default /bin/sh to /bin/bash
my execute command is simply: ruby "%f"
not sure why this works for python programs but not ruby. Thank you
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2425
Well darn I wanted to try the latest version of Geany because of the updated plugins ...
The version that Ubuntu provides is: 1.32.2
I first ran:
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install make
The versions:
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
g++ (Ubuntu 7.3.0-16ubuntu3) 7.3.0
GNU Make 4.1, Built for x86_64-pc-linux-gnu
Then I downloaded the file geany-1.33.tar.gz, extracted it and tried to to follow the instructions:
./configure fails with the following messages:
configure: error: Package requirements (gtk+-2.0 >= 2.24 glib-2.0 >= 2.32 gio-2.0 >= 2.32 gmodule-no-export-2.0) were not met:
No package 'gtk+-2.0' found
No package 'glib-2.0' found
No package 'gio-2.0' found
No package 'gmodule-no-export-2.0' found
=======
I old, senile and incompetent so I do not know where to go from here.
[gtk2_installed.txt](https://github.com/geany/geany/files/2255388/gtk2_insta…
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1916
With only few lines of code modification, I am now using the Mardown geany plugin as a svg image viewer (adding any other file that a Webkit supports is possible too, I only added .svg and .html). This is really handy for me; I can now write my code, run them and plot the outpouts without leaving geany IDE :-). Any interest in merging these with the upsteram branch?
A side note: I have also changed the (internal) name of Tree Browser, the previous one kept appearing after Scope plugin tabs which was not ideal
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/822
-- Commit Summary --
* markdown plugin extended: now it supports viewing .svg and .html files
* Update viewer.c
* Update README
-- File Changes --
M markdown/README (3)
M markdown/src/plugin.c (18)
M markdown/src/viewer.c (9)
M treebrowser/src/treebrowser.c (2)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/822.patchhttps://github.com/geany/geany-plugins/pull/822.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/822
I have filed a feature request for scintilla for the above, it would be great to have commonmark markdown syntax supported in this plugin as well since current markdown support is limited to basic markdown.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/651
Hello, Everyone!
It would be great to have the [CommonMark](http://commonmark.org/) plugin.
The rationale:
> We propose a standard, unambiguous syntax specification for Markdown, along with a suite of comprehensive tests to validate Markdown implementations against this specification. We believe this is necessary, even essential, for the future of Markdown.
>
> That’s what we call CommonMark.
>
> — [CommonMark](http://commonmark.org/).
Best regards,
Sergey Brunov.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/589
When you do a "Find in Files" search, it will show the search command in the first line of the results.
However, this is quite badly broken. It does not include the directory specifier part of the command, and it doesn't provide escaping (e.g. quoting) of search terms.
I have fixed it in the patch below. I don't know if people are going to like my patch, because I re-used `spawn_append_argument` from the Windows code to build up the arguments, which is probably messy and not 100% perfect. However the Unix code is trusting the command line build up to something deeper in GLib (`g_spawn_async_with_pipes`) so I can't get at the final command line built up made with that code.
IMO What I have is an improvement if not perfect, but there may be a better solution so I'll leave that to wiser minds.
```diff
diff --git a/src/search.c b/src/search.c
index 934d06f5..0b85f0d8 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1694,11 +1694,17 @@ search_find_in_files(const gchar *utf8_search_text, const gchar *utf8_dir, const
NULL, &error))
{
gchar *utf8_str;
+ GString *argv_escaped_together = g_string_new("");
+ gchar **argv_tmp = argv;
+
+ while (argv_tmp && *argv_tmp)
+ spawn_append_argument(argv_escaped_together, *argv_tmp++);
ui_progress_bar_start(_("Searching..."));
msgwin_set_messages_dir(dir);
- utf8_str = g_strdup_printf(_("%s %s -- %s (in directory: %s)"),
- tool_prefs.grep_cmd, opts, utf8_search_text, utf8_dir);
+ utf8_str = g_strdup_printf(_("%s %s (in directory: %s)"),
+ command_line, argv_escaped_together->str, utf8_dir);
msgwin_msg_add_string(COLOR_BLUE, -1, NULL, utf8_str);
g_free(utf8_str);
+ g_string_free(argv_escaped_together, TRUE);
ret = TRUE;
diff --git a/src/spawn.c b/src/spawn.c
index 1d4e4292..7e390977 100644
--- a/src/spawn.c
+++ b/src/spawn.c
@@ -52,8 +52,9 @@
#include "spawn.h"
+#include <ctype.h> /* isspace() */
+
#ifdef G_OS_WIN32
-# include <ctype.h> /* isspace() */
# include <fcntl.h> /* _O_RDONLY, _O_WRONLY */
# include <io.h> /* _open_osfhandle, _close */
# include <windows.h>
@@ -436,8 +437,9 @@ leave:
return failure;
}
+#endif /* G_OS_WIN32 */
-static void spawn_append_argument(GString *command, const char *text)
+void spawn_append_argument(GString *command, const char *text)
{
const char *s;
@@ -487,7 +489,6 @@ static void spawn_append_argument(GString *command, const char *text)
g_string_append_c(command, '"');
}
}
-#endif /* G_OS_WIN32 */
/*
diff --git a/src/spawn.h b/src/spawn.h
index ccfca269..04337054 100644
--- a/src/spawn.h
+++ b/src/spawn.h
@@ -45,6 +45,8 @@ gboolean spawn_kill_process(GPid pid, GError **error);
gboolean spawn_async(const gchar *working_directory, const gchar *command_line, gchar **argv,
gchar **envp, GPid *child_pid, GError **error);
+void spawn_append_argument(GString *command, const char *text);
+
/** Flags passed to @c spawn_with_callbacks(), which see. */
typedef enum
{
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2424
Hi,
I have a problem with the markdown plugin.
The preview panel doesn't show any output.
I have configured the file type as Markdown
I installed the plugin cloning the this repo
Some info
Geany version: 1.36
Geany plugins from github master branch (commit 0bfe89d1a4da1d3781e7465e2ae2db9bcfd06e8e)
OS: Ubuntu 18.04.3 LTS
Output of Debug Messages:
```
14:51:19: Geany INFO : Geany 1.36, it_IT.UTF-8
14:51:19: Geany INFO : GTK 3.22.30, GLib 2.56.4
14:51:19: Geany INFO : System data dir: /usr/share/geany
14:51:19: Geany INFO : User config dir: /home/mirko/.config/geany
14:51:19: Geany INFO : Loaded GTK+ CSS theme '/usr/share/geany/geany.css'
14:51:19: Geany INFO : Loaded GTK+ CSS theme '/usr/share/geany/geany-3.20.css'
14:51:19: Geany INFO : System plugin path: /usr/lib/i386-linux-gnu/geany
14:51:19: Geany INFO : Added filetype Arduino (61).
14:51:19: Geany INFO : Added filetype TypeScript (62).
14:51:19: Geany INFO : Added filetype Scala (63).
14:51:19: Geany INFO : Added filetype Kotlin (64).
14:51:19: Geany INFO : Added filetype Genie (65).
14:51:19: Geany INFO : Added filetype JSON (66).
14:51:19: Geany INFO : Added filetype Swift (67).
14:51:19: Geany INFO : Added filetype Groovy (68).
14:51:19: Geany INFO : Added filetype Nim (69).
14:51:19: Geany INFO : Added filetype Cython (70).
14:51:19: Geany INFO : Added filetype Clojure (71).
14:51:19: Geany INFO : Added filetype Graphviz (72).
14:51:19: Geany INFO : Added filetype CUDA (73).
14:51:20: Geany INFO : Loaded libvte from libvte-2.91.so.0
14:51:20: Geany INFO : Loaded: /usr/lib/i386-linux-gnu/geany/pairtaghighlighter.so (Coppia tag Highlighter)
14:51:20: Geany INFO : /mnt/DATI/MIRKO/pwd : None (UTF-8)
14:51:23: Geany INFO : unknown : None (UTF-8)
16:35:56: Geany INFO : unknown : None (UTF-8)
16:47:27: Geany INFO : Plugin "/usr/lib/i386-linux-gnu/geany/pairtaghighlighter.so" already loaded.
16:47:27: Geany INFO : Added 8 plugin(s) in '/usr/lib/i386-linux-gnu/geany'.
16:47:27: Gtk CRITICAL : gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed
16:47:30: Geany INFO : Loaded: /usr/lib/i386-linux-gnu/geany/markdown.so (Markdown)
16:47:30: Geany INFO : Unloaded: /usr/lib/i386-linux-gnu/geany/markdown.so
16:47:30: Markdown CRITICAL : markdown_config_get_template_text: assertion 'conf' failed
16:47:30: GLib-GObject WARNING : invalid unclassed pointer in cast to 'GtkWidget'
16:47:30: Gtk CRITICAL : gtk_widget_get_parent: assertion 'GTK_IS_WIDGET (widget)' failed
16:47:30: GLib-GObject WARNING : invalid unclassed pointer in cast to 'WebKitWebView'
16:47:30: GLib-GObject WARNING : instance with invalid (NULL) class pointer
16:47:30: GLib-GObject CRITICAL : g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
16:47:30: GLib-GObject WARNING : invalid unclassed pointer in cast to 'WebKitWebView'
16:47:30: (null) CRITICAL : void webkit_web_view_load_html(WebKitWebView*, const gchar*, const gchar*): assertion 'WEBKIT_IS_WEB_VIEW(webView)' failed
16:47:32: Geany INFO : Loaded: /usr/lib/i386-linux-gnu/geany/markdown.so (Markdown)
16:47:38: Geany INFO : unknown : None (UTF-8)
16:48:33: Geany INFO : unknown : Markdown (UTF-8)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/945
There is more choice when using icons based on freedesktop icon name
so we can use better icons.
This is mainly because of "New file" and "New directory" icons in the popup menu in the sidebar which should use action icons instead of icons of a file and a directory (with some themes all action icons are black and white while document/directory icons have a color which looks inappropriate in this case).
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/932
-- Commit Summary --
* projectorganizer: don't use stock icons
-- File Changes --
M projectorganizer/src/prjorg-menu.c (18)
M projectorganizer/src/prjorg-sidebar.c (59)
M projectorganizer/src/prjorg-utils.c (15)
M projectorganizer/src/prjorg-utils.h (2)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/932.patchhttps://github.com/geany/geany-plugins/pull/932.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/932