New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Alternitives to general terminal output? (Python, Interpreter, Scite, Linux) #1731
Comments
Referring to other tools without describing/showing what they do is expecting other people to install a tool they don't use, just to respond to your request. It would make a response more likely if you provided that information. |
I don't know how Scite output looks, but Geany lets you run your scripts in an external terminal or into the built-in terminal (in the bottom area). There's also a plugin for Geany called GeanyPy that gives an in-process Python interpreter so you can poke around at Geany's guts from a built-in console. |
@elextr : Here you go. @codebrainz : I'll take a look at GeanyPy. But I'm doubtful I can pull off writing a Geany plug-in. Screenshot/Output pane features: |
Geany distinguishes between running tools (eg compilers) from running user programs. Tool output is scanned for messages referring to the source code and those lines are highlighted and made clickable in the compiler tab and the user has no ability to interact with the tool (since that is how most tools work, and so nobody has added such a capability). But output from the user programs is displayed in a terminal because that is where they will normally expect to be run (at least if they are command line tools) and that makes user interaction possible. As @codebrainz said programs can be run in the embedded terminal or external terminals, but its still a terminal, obeying the TERMCAP specs and matching where such a program would normally be run and meaning that if the program outputs colour information that will be shown. So your Python output looks like it will when Python is run on the command line.
No, Scite seems to be applying its own colouration to it, ie it isn't behaving as a terminal. That would need somebody to write a plugin that behaved in that way as its unlikely to be added to core.
The capability is not in Geany itself, and the GUI toolkit we use (GTK) has deprecated the facility for doing that, so although somebody could make a plugin to do it, it will go away at some point in the future. |
If you code, you make mistakes. Its really to bad that SciTE (the Scintilla showcase editor, with Geany seemingly being based on Scintilla) has such a nice terminal/output/code_result_feedback feature ... compared to Geany. Sure you can't make everyone happy, but ... now a days I think a little more user friendliness in the part that handles the coding feedback ... goose a long way. (turns out to be a showstopper in my case, ... of course.) As I have used SciTE for, probably, more than a decade. I'm probably a little bit biased here ... (But at least I know I might be, unlike some current world ... leaders(???) ... and there followers/supporters of course.) |
Geany doesn't prevent you from
The same way how SciTE got this feature, Geany could get it. There are no features in Geany which someone spent time coding but didn't want/need. All functionality comes from people seeing a need or wanting a feature and then contributing it. |
I did not say you could not print() output with Geany.
Based on elextr last comment, I seriously doubt that.
That's some weird argumentation if you ask me ... sound to me your trying to say: |
I said you could make a plugin to do it, but you likely could not "use Scite itself". Several plugins add a new tab to the message window. But the plugin would have to run the command and intercept the output itself and apply colouring, and as plugins can be C++ you might even be able to use some of Scite's code for the colouring.
What he is saying is that Geany is an entirely volunteer project, nothing exists in Geany unless somebody wanted/needed it and contributed it. There are no paid staff to implement requests. If it doesn't exist nobody who was capable of contributing it wanted/needed it (or at least wanted/needed it enough to spend their own time on contributing it). |
No, what @codebrainz is saying is that if it's not there it's 99% of the time because nobody wrote the code, usually because they didn't want the feature bad enough to step up and do it. |
Focusing on my core Geany problem. (ie: understanding for sure if its actual possible what I have in mind)
So the "it will go away" part was completely, and only, related to doing some linkup (output or otherwise) with SciTe from Geany ...
Makes sense.
Doubtful ... considering my almost total lack of C related experience, and Niel's expert code level. Besides, my first priority is knowing if a 'proof of concept' is actual feasible (no point in trying if you think its not even feasible). Next would be to get some 'proof of concept' working ... |
On 26 April 2018 at 03:56, MvGulik ***@***.***> wrote:
Focusing on my core Geany problem. (*ie: understanding for sure if its
actual possible what I have in mind*)
( @elextr <https://github.com/elextr> )... so although somebody could
make a plugin to do it, it will go away at some point in the future.
So the "*it will go away*" part was completely, and only, related to
doing some linkup (*output or otherwise*) with SciTe from Geany ...
Correct.
But the plugin would have to run the command and intercept the output
itself and apply colouring, ...
Makes sense.
Could a potential plugin like that also be able to facilitate active links
in its output/tab/message window (*based on python's error messages*)
that, when clicking on such a link, puts the cursor+focus back at a
specific line in a specific file ?
Havn't analysed in detail, but should be possible.
... and as plugins can be C++ you might even be able to use some of
Scite's code for the colouring.
Doubtful ... considering my almost total lack of C related experience, and
Niel's expert code level. Besides, my first priority is knowing if a 'proof
of concept' is actual feasible (*no point in trying if you think its not
even feasible*). Next would be to get some 'proof of concept' working ...
Correct.
… —
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1731 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAxgTZvHOpAONNM3qP4-mHpyzG-31_Puks5tsLjVgaJpZM4RPeJO>
.
|
Specifically, it was related to embedding SciTE's GtkWindow inside a GtkWidget in Geany (ie. XEmbed). Even though it's deprecated in GTK+ it's still technically possible with Xlib, but it seems like a terrible idea anyway :)
It should be pretty straightforward to whip together a protoype plugin in Python. You could probably use |
Aha. That part, as general Linux noob, bypassed me completely.
This looks more like something I could potentially do. Or at least spend some time in trying to work out. |
To bad, but that's not going to happen any time soon ... It took me some time to look again into how to get GeanyPy installed ... but could not make any sense of it. I'm not into building code with lots of dependencies ... final trigger was some "probably not going to work with py3" note (py3 only coder). In my case that means a 100% probability I'm going to run into a slew of mystifying (to me) errors an problems, without the means/knowledge to solve them. |
(and it works with Python 3) |
@elextr that has even more build dependencies and less distro binary packaging. |
Peasy: Thanks @elextr, but I take @codebrainz words on this as 'not really something for me to try'. Besides I rather would use GeanyPy in this case, as its kinda coming from the same team/team-member as Geany. I might give it an other try in due time ... but for now Eric/Eric6 is back into focus (after managing to update it. ... ... ... seems a general Mint's packets habit, kinda outdated app versions. :-/ ) |
I didn't mean to dissuade anyone from using Peasy, it will almost surely replace GeanyPy sooner or later, and is also developed by a member of the Geany team. But if compiling GeanyPy from source is too much hassle, Peasy, if anything, will be slightly more involved to compile, and AFAIK isn't packaged for most distros where you can use that to drag in the build dependencies. |
Something I probably should try with Geany in the future ... now that I'm starting to use them with some other editor/ide. |
I'm a general long term Scite user (no expert though).
OS: Linux! (Mint) ... (with very limited Linux skills)
Geany looks nice, attractive and useful, but the way the Python(interpreter) output is displayed (terminal) is stopping me from actually using it. I guess I'm just to used to the Scite's output (display and feature wise).
(both automatically, copy and pasting is of course out)
(With a bit of tinkering I already made Geany to show Python code like its displayed in Scite, to make it more like I'm used to (to lessen the color culture shock so to speak (joke))
The text was updated successfully, but these errors were encountered: