Topic: toolbox

I am having trouble understanding/using external tools.  For example, using the toolbox, I created a new "tool" with the characteristics

Name: directory list
Command line: ls

I am selecting this as a "Project Tool", and selecting "Open Console"

I then save this tool.

If I now select this tool from the Toolbox dropdown, I would expect the console to open and the ls command to be executed.  Instead, nothing happens.

What am I not understanding correctly about this process?

Thanks

Re: toolbox

Based on your description, I assume you're using Linux, which is highly problematic for spawning an external console.  When you select "Open Console" on Linux, Simply Fortran uses the command "x-terminal-emulator -e <cmd>" to launch your command line. The problem in this case is that the "ls" command executes nearly instantaneously, and, when complete, the console immediately closes.  On my test system, an Ubuntu 16.04 machine that's not particularly fast, I sometimes see a window flash when I run this example.

The toolbox will work great if you have a long-running process or you don't select "Open Console."  For example, in your case the command could be (without "Open Console" checked):

xterm -e "ls;bash"

which will open a reliable, old xterm window, display the directory listing, and end with a command prompt.

The problem is Linux's fractured state.  The only reliable commands are "xterm" or "x-terminal-emulator." Launching a native, more configurable terminal like kterminal or gnome-terminal is unreliable since Simply Fortran does not (and will not) be able to determine your current desktop.

These problems simply don't exist on Windows or macOS where a terminal can be opened in a more configurable manner.

I think I will look at possibly switching to using xterm on Linux since the "x-terminal-emulator" command is so rigid and inflexible.  It just doesn't provide the same configurability as our other two platforms.

Jeff Armstrong
Approximatrix, LLC

Re: toolbox

Version 2.39, coming out next week, should fix most of the Toolbox problems on Linux.  It should now behave the same as the Windows equivalent.

Jeff Armstrong
Approximatrix, LLC

Re: toolbox

Thanks Jeff.  I will wait and see how the new version turns out.  The command I was actually trying to use was a script that included a modified gfortran compilation linking some other libraries.  I never saw any sign that anything happened when I "ran" the command from the toolbox as there was no messages and the executable was not created. I assumed I was not using the toolbox correctly.

5 (edited by baf1 2017-08-29 21:15:14)

Re: toolbox

Still not working for me.  I tried the experiment that I described in the original post.  Nothing happens at all.  Using version 2.39, Build 2491 (GTK+) on 64-bit Leap 42.2

Re: toolbox

It appears that OpenSUSE doesn't implement the x-terminal-emulator command.  I had thought that this command was more general, but apparently it is only common in Debian- and Ubuntu-based distributions.  I'll see about a new build that alternatively calls xterm for SUSE- and Fedora-based systems.

Jeff Armstrong
Approximatrix, LLC

Re: toolbox

A new build (2492) is available for all Linux distributions that should fix the issue.

Jeff Armstrong
Approximatrix, LLC