Hi all,
I'm try to create a new Geany plugin with this documentation (http://www.geany.org/manual/reference/) and the examples in this repo (https://github.com/geany/geany-plugins)
This is the plugin i'm developing: https://github.com/OpenCode/geany-python-good-code
I'm using g_spawn_command_line_async to launch a tool with the current file as parameter. I want know if is possibile to read the command output and show it in the messages.
Thank you.
On 13-11-16 11:08 AM, Francesco OpenCode Apruzzese wrote:
Hi all,
I'm try to create a new Geany plugin with this documentation (http://www.geany.org/manual/reference/) and the examples in this repo (https://github.com/geany/geany-plugins)
This is the plugin i'm developing: https://github.com/OpenCode/geany-python-good-code
I'm using g_spawn_command_line_async to launch a tool with the current file as parameter. I want know if is possibile to read the command output and show it in the messages.
The functions related to this are here:
http://www.geany.org/manual/reference/msgwindow_8h.html
Also, if you like to write it in Python, GeanyPy[1] allows to make Geany plugins using Python.
Cheers, Matthew Brush
On 16/11/13 20:55, Matthew Brush wrote:
On 13-11-16 11:08 AM, Francesco OpenCode Apruzzese wrote:
Hi all,
I'm try to create a new Geany plugin with this documentation (http://www.geany.org/manual/reference/) and the examples in this repo (https://github.com/geany/geany-plugins)
This is the plugin i'm developing: https://github.com/OpenCode/geany-python-good-code
I'm using g_spawn_command_line_async to launch a tool with the current file as parameter. I want know if is possibile to read the command output and show it in the messages.
The functions related to this are here:
http://www.geany.org/manual/reference/msgwindow_8h.html
Also, if you like to write it in Python, GeanyPy[1] allows to make Geany plugins using Python.
One more note not strictly answering your question:
are you aware of https://wiki.geany.org/howtos/check_python_code ? This is basically what you are trying to do (I guess) but with out-of-the-box feature of Geany.
Though if your plugin can do it better in any way, why not. And we could shrink the wiki page to just say: 'use the cool python-good-code' plugin :).
Regards, Enrico
P.S.: Oh, and the plugin name is rather optimistic I guess, 'good code' is not guaranteed by pep8, pyflakes, pylint and friends. It just helps to find bad code :).
Nella citazione in data sab 16 nov 2013 22:56:12 CET, Enrico Tröger ha scritto:
On 16/11/13 20:55, Matthew Brush wrote:
On 13-11-16 11:08 AM, Francesco OpenCode Apruzzese wrote:
Hi all,
I'm try to create a new Geany plugin with this documentation (http://www.geany.org/manual/reference/) and the examples in this repo (https://github.com/geany/geany-plugins)
This is the plugin i'm developing: https://github.com/OpenCode/geany-python-good-code
I'm using g_spawn_command_line_async to launch a tool with the current file as parameter. I want know if is possibile to read the command output and show it in the messages.
The functions related to this are here:
http://www.geany.org/manual/reference/msgwindow_8h.html
Also, if you like to write it in Python, GeanyPy[1] allows to make Geany plugins using Python.
Hi Matthew.
Thanky for the link. Do you know how to intercept command result, too?
One more note not strictly answering your question:
are you aware of https://wiki.geany.org/howtos/check_python_code ? This is basically what you are trying to do (I guess) but with out-of-the-box feature of Geany.
Though if your plugin can do it better in any way, why not. And we could shrink the wiki page to just say: 'use the cool python-good-code' plugin :).
Regards, Enrico
P.S.: Oh, and the plugin name is rather optimistic I guess, 'good code' is not guaranteed by pep8, pyflakes, pylint and friends. It just helps to find bad code :).
Hi Enrico.
This is only a plugin I create to learn how to develop plugin for geany. It's the basic idea I had to develop something. I mean to know how to develop a plugin because I want create a superplugin (Oh yeah!!) for the OpenERP developer community.
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Hi all....I solved my problem with this function: g_spawn_command_line_sync
Thank you all for the help.
Il 16/11/2013 20:08, Francesco OpenCode Apruzzese ha scritto:
Hi all,
I'm try to create a new Geany plugin with this documentation (http://www.geany.org/manual/reference/) and the examples in this repo (https://github.com/geany/geany-plugins)
This is the plugin i'm developing: https://github.com/OpenCode/geany-python-good-code
I'm using g_spawn_command_line_async to launch a tool with the current file as parameter. I want know if is possibile to read the command output and show it in the messages.
Thank you. _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel