Qtoctave Win32 0.9.1 bugfix


To version 0.10.1.

I found a bug in my windows version. So I patched the source, to fix it.
The problem was, that changes it's own qtoctave cwd when a file is loaded, and then share the directory is not in place anymore.

A fresh build of qtoctave-win32-0.9.1-2 qtoctave-win32-0.9.1-3

The new version 0.10.1-win32-qtoctave should fix these problems.

[Update]
Thx Dan for the report. I forgot a "\ \" + line in 118th octave_connection.cpp I uploaded version 0.9.1-3.

  1. # 1 by Dan on 06-04-2010 - 08:21:33

    Great job on the build, how ever I can having the following errors. The first one complains about the path but it does not seem to work after that.

    then it keeps complaining that

    `_ide_reload_variables_list 'Undefined near line 1 column 5

    and it can not use the variable window. This does not do that in the linux version.

    and also: I had to download mingwm10.dll and drop it in the bin folder to get it to even start up

    Any getting this to work would be greatly appreciated.

    bellow are some of the errors I am getting.

    Is it possible you missed a relative path in the build?

    warning: mark_as_command is obsolete and will be removed from a future version
    of Octave
    warning: addpath: C: / Documents and Settings/Dingles/Desktop/qtoctave-win32-0.9.
    1-2/qtoctave/bin .. \ share \ qtoctave \ scripts_octave \: No such file or directory
    >>> Error: `_ide_reload_variables_list 'undefined near line 4 column 1
    plot (rand (1,10))
    warning: ISSTR is obsolete and will be removed from a future version of Octave,
    please use instead ischar
    >>> Error: `_ide_reload_variables_list 'undefined near line 1 column 5

  2. # 2 by Dan on 06-04-2010 - 08:46:31

    OK, with a bit of poking around i found _ide_reload_variables_list.m

    and this sorted out that error

    addpath ('C: \ Documents and Settings \ Dingles \ Desktop \ qtoctave-win32-0.9.1-2 \ QTOC
    octave \ share \ qtoctave \ scripts_octave ')

    But it did not find it by default. I would like to pass this on to students. do you know how I can change this without having to do the addpath? Is there a config file somewhere? I do not mind having to do this, but I would like to pass this on to some first years and would be better if I could patch for them. So there isn'ta broken first look at one octave.

    Cheers

    Dan

  3. # 3 of mfn on 06.04.2010 - 17:48:21

    I hope 0.9.1-3 fixes the problem with _ide_reload_variables_list

  4. # 4 by Dan on 07/04/2010 - 09:22:09

    Works fantastic! Thanks heaps!

  5. # 5 of edifice on 08.04.2010 - 13:49:14

    hi, i had to copy from an older installation mingwm10.dll to run qtoctave.exe

  6. # 6 of mfn on 08.04.2010 - 14:00:23

    I mingwm10.dll added to the archive

  7. # 7 of geeks on 08.04.2010 - 23:34:02

    I'm getting lots of errors, all related to Octave scripts.

    First, in the Command Prompt window,
    [PkgBind:: load command list] '.. \ share \ qtoctave \ pkg commands.list' can not be loaded

    Then, within qtoctave itself, lots and lots of errors like these every time I enter a command:
    error: `int2str 'undefined near line 10 column 36
    error: evaluating argument list element number 1
    error: evaluating argument list element number 1

    Is it possible commands.list pkg contains the definitions of int2str Erroring & other functions? (I tried to find pkg-commands.list so I could test my theory, but it does not seem to be included in this release or the 0.6.8 release)

    Thanks for the Windows build!

  8. # 8 of mfn on 09.04.2010 - 17:24:17

    computer freak :

    I'm getting lots of errors, all related to Octave scripts.
    First, in the Command Prompt window,
    [PkgBind:: load command list] '.. \ share \ qtoctave \ pkg commands.list' can not be loaded ...

    Can you give me a shortlist fo steps to reproduce the bug?

  9. # 9 of geeks on 09.04.2010 - 17:38:48

    mfn :

    Can you give me a shortlist fo steps to reproduce the bug?

    Sure, no problem.

    * Download your Win32 0.9.1 Build (the bugfix build) and extract it to a folder
    * Download Octave (I got version 3.2.4), install it, copy the files from Octave \ bin to bin qtoctave \ (there were a couple of duplicate DLL files, I left the originals intact)
    * Run qtoctave
    * A command prompt window will show up, it contains the first error I mentioned
    * Execute any command in qtoctave (I did 4 +5)
    * A plethora of error messages show up (the ones I mentioned)

    Would a video screen be helpful?

  10. # 10 of mfn on 18/04/2010 - 13:45:45

    The only difference between mine and yours is setup, that I installed octave in a different directory and set the path to it in the options.
    Perhaps you can try this too.

  11. # 11 by Tony on 23.04.2010 - 15:00:19

    Selecting "Help of Octave" from the Help menu was not working for me. I got it to work by modifying the file in the qtinfo.m qtoctave / share / qtoctave / scripts_octave directory.
    The new version is:

    qtinfo function ()
    prefix = "cmd / cc: / octave / qtoctave / bin /";
    command = sprintf ("% s qtinfo> nul" info_file);
    printf ("Starting info:% s \ n", command);
    system ([command prefix], 1, "async");
    endfunction

    Depending on where you installed qtoctave you may need to modify the directory path to the file qtinfo.exe in the "prefix" variable.

  12. # 12 by Roberto on 30/04/2010 - 14:23:42

    Hey, great work on the compilation of qtoctave package. I wonder if you might be interested in working together to create a Nullsoft Installer file (NSIS) To provide a PeopleSoft installer / uninstaller package for Windows systems? I believe, talking to the author qtoctave and even to the packagers of Octave, We Could Provide an all-in-one product Math on the Windows platform that through ease-of-use Might Achieve widespread adoption. What do you reckon?

  13. # 13 of ciccio on 05/05/2010 - 16:21:04

    Hello,
    nice program.
    Anyway when the editor creates a new variable without echo on the terminal, this is not shown on the "Local user variables" until the variable is not recalled on the terminal or a who command is executed.

  14. # 14 by Tatsuro Matsuoka on 11/05/2010 - 13:02:38

    When using the octave-forge packages octave-3.2.4 on mingw32, please care oct2mat the issue.

    http://wiki.octave.org/wiki.pl?OctaveForWindows

    First Standalone ports
    1.1. Octave 3.2.4 for Windows MingW32
    Additional important topics found after the release:

    Regards

    Tatsuro

  15. # 15 of Pascal Grandeau on 23/05/2010 - 18:34:56

    I tried your qtoctave 0.9.1.3 with octave-forge packages octave-3.2.4 on mingw32. I have a problem with graphs: the gnuplot windows is behind qtoctave and when I move qtoctave I can not see the graph. EasyPlot I tried but it does not work. What can I do?
    Thank you.

    Pascal Grandeau

  16. # 16 of Sapien2 on 26/06/2010 - 13:53:03

    When i try to execute protting simplest script like
    x = linspace (0, 2 * pi, 100);
    y = sin (x);
    plot (x, y);
    EasyPlot window just hangs and shows no graphics.
    What am i doing wrong?

  17. # 17 by Stefan on 06/07/2010 - 12:30:13

    Hi,
    I also wanted to use EasyPlot and it did not work. Any idea what I could do? Below is what i got so far.
    Sunny regards,

    Stefan

    >>> H = [1 2 3]
    h =

    1 2 3

    >>> Plot (h, h)
    >>> Error: you must have gnuplot installed to display graphics, if you have Gnup
    piece installed in a non-standard location, see the 'gnuplot_binary' function
    >>> Gnuplot_binary ("C: \ \ gnuplot \ \ bin \ \ wgnuplot.exe")
    >>> Plot (h, h)
    >>> Error: compare_versions: version numbers must be a single row
    error: called from:
    error: C: \ Octave \ 3.2.4_gcc-4.4.0 \ share \ octave \ 3.2.4 \ m \ miscellaneous \ compare_v
    ersions.m at line 81, column 5
    error: C: \ Octave \ 3.2.4_gcc-4.4.0 \ share \ octave \ 3.2.4 \ m \ plot \ __gnuplot_has_feat
    ure__.m at line 43, column 23
    error: C: \ Octave \ 3.2.4_gcc-4.4.0 \ share \ octave \ 3.2.4 \ m \ plot \ gnuplot_drawnow.m
    at line 229, column 11
    error: C: \ Octave \ 3.2.4_gcc-4.4.0 \ share \ octave \ 3.2.4 \ m \ plot \ gnuplot_drawnow.m
    at line 97, column 16
    >>>

  18. # 18 by Oliver on 21/07/2010 - 11:48:10

    Hi
    I tried too the 2dplots did not work.

    Regards

    Oliver

  19. # 19 by Bob on 05.08.2010 - 21:14:25

    @ 12 I have a little experience putting together Nullsoft installer using HM NIS Edit to generate the initial template. I agree that simplifying the installation process would really help make the system more popular.

    I've been using Scilab with good results, the only problem is the graphs are unnecessarily ugly and aliased. Scilab's editor is very nice however. Conversely, Octave's plot is Gnuplot Which engine produces very nice output, but Octave's default console input is harder to use.

  20. # 20 by Serge on 06/08/2010 - 16:48:32

    Hi,
    2Dplots did not work:
    parameters are not passed from the form to the "Octave Terminal":
    >>> Plot ();
    Usage: plot (y)
    plot (x, y, ...)
    plot (x, y, fmt, ...) plot (x, y, property, value, ...)
    error: C: \ Octave \ 3.2.0_gcc-4.3.0 \ share \ octave \ 3.2.0 \ m \ plot \ __plt__.m at line
    116, column 5

    Regards

    Serge

  21. # 21 of Ekkehard on 18.08.2010 - 19:16:42

    Great work - Thanks!

    The png style icon that comes with it will not work as an icon. I created an icon that will work out of it. How can I upload it?

    Cheers

  22. # 22 of Idleryan on 25/10/2010 - 12:19:14

    Hi
    i use the pached qtoctave file-win32-0.9.1-3
    but however i still show the issue below

    warning: mark_as_command is obsolete and will be removed from a future version
    of Octave
    >>> Error: C: \ Documents and Settings \ hsun.ouyang \ My Documents \ qtoctave \ bin: No s
    uch file or directory

    but the error will not show up everytime

    Best Regards

  23. # 23 by Serge on 27/10/2010 - 10:48:29

    Hi,

    Is this project dead?

    Best regards

  24. # 24 of Baptiste on 29/10/2010 - 15:53:27

    Hi,

    i also have the problem using EasyPlot.

    when i write for exampe "plot (x, y)"
    i get the message:

    error: compare_versions: version numbers must be a single row

    I'm using octave 3.2.4 and 0.9.1 qtoctave
    on Windows7

    Thanks

  25. # 25 by Christopher on 31/10/2010 - 13:24:31

    Serge :
    Hi,
    Is this project dead?
    Best regards

    I've never seen this as a separate project. I just built qtoctave for Windows.

  26. # 26 by Serge on 08/11/2010 - 08:24:15

    OK, but there are issues not corrected and there is no release for some months. Thanks for all contributors, but today, without a correct plot, this product is not usable.
    Regards

  27. # 27 by Nate on 17/11/2010 - 21:53:57

    I have been using for a while and qtoctave think it is a great program - the best front-end for Octave. However there are some things that would make it much easier to use and efficient. Here are my suggestions for improvements (in order of importance):

    Copy, cut, paste between the terminal window, command line>> bar and the editor with Ctrl C, Ctrl X, Ctrl V and not only with RightClick
    Do not resize the editor (make narrower) when restarting program switching or terminal window items. (Workaround: unmaxemize terminal, then make the terminal object)
    Quicker viewing of large arrays with the spreadsheet viewer
    Shortcuts keys for comment / uncomment and indent / unindent
    Opening variable in Navigator window (in tabs) and not terminal, as an option
    In variable editor, option to select another variable (to display its values ​​without opening it from the Variables list, positioning and resizing the window, etc)
    Gnuplot not freezing (hourglass) everytime you click on the window title bar, maxemize, close box, etc (probably unrelated to qtoctave).
    Show values ​​of variables that are not arrays in Variables' list, such as cell arrays, strings, structures
    Allow Esc to clear the command line
    Ability to change all font sizes (even octave functions) in editor
    Allow viewing of variables with datatypes such as strings, structures, etc.
    When you select text in the editor and drag it, it runs that piece of code and deletes it. Fix this
    Maximize octave terminal on program startup, if it was previously maximized

    I would be very grateful to anyone who could implement any of the above!
    -Nate

    BTW, I am using Windows XP SP3

  28. # 28 by Don on 04/01/2011 - 17:02:10

    How do you install this program?

  29. # 29 of Kny on 17/01/2011 - 12:25:17

    The error, where Gnuplot hangs is related to the package of oct2mat OctaveForge. It is easily fixed, As described here under "additional notes" section:

    http://wiki.octave.org/wiki.pl?OctaveForWindows

    short version:

    Run from octave prompt either directly or from within qtoctave:
    "Pkg rebuild-noauto oct2mat"

    Restart qtoctave. After this, plotting should work as usual.

  30. # 30 by Bill Eaton on 21/01/2011 - 21:56:39

    Thank you so much for this binary build for Windows. It's quite nice.

    I have noticed that a 0.10.1 version is out now. Do you have any plans to make a Windows build?

  31. # 31 of mfn on 21/01/2011 - 22:43:45

    Bill Eaton :

    Thank you so much for this binary build for Windows. It's quite nice.

    I have noticed that a 0.10.1 version is out now. Do you have any plans to make a Windows build?

    Hi, saw the announcement too, and I have the plan to make a windows build. But currently I do not have much spare time. I hope to get it finished in the first week of February.

  32. # 32 by Vladimir on 27/01/2011 - 23:26:56

    Hello everybody!

    Would anybody know how to change the color of the commented text. Sort of grayish It is now, but I would like to make ti something else. It would improve clarity of the code. Thanks a lot in advance.

  33. # 33 of mfn on 29/01/2011 - 16:53:09

    I finished the build for 0.10.1. Link is at the top of this post

  34. # 34 by joe on 30.01.2011 - 21:44:36

    Hi,

    easy_plot seems still not to work. There
    two windows are coming up and they are empty.
    Version: 3.2.4 mingw octave qtoctave, 0.10.1

    All workarounds Described in the notes of
    http://wiki.octave.org/wiki.pl?OctaveForWindows
    do not change anything.

    Has anybody running this feature?

  35. # 35 of mfn on 30/01/2011 - 23:36:29

    I just tested the

    pkg rebuild-noauto oct2mat

    command with the new qtoctave 0.10.1 build and it's working for me with the following example:
    x = linspace (0, 2 * pi, 100);
    y = sin (x);
    plot (x, y);

  36. # 36 by joe on 31.01.2011 - 01:27:35

    I get on two different PC's with a freshly installed
    octave 3.2.4 the same:

    two windows and one empty easy_plot not reacting.
    Do I miss something. Is there some configuration missing?

    tv

  37. # 37 by joe on 31.01.2011 - 01:29:06

    Sorry I forgot the expample:

    x =- 2:2
    y = x ^ 2
    plot (x, y)

    easy enough

    tv

  38. # 38 of mfn on 31/01/2011 - 14:52:52

    Try the "pkg rebuild-noauto oct2mat"
    and then:
    x =- 2:2;
    y = x. ^ 2;
    plot (x, y);
    The semi-colons seem to be important, do not know why.

  39. # 39 by joe on 07.02.2011 - 20:20:56

    Thanks again for your fast replies.

    I tried your proposal, but does not want to work easy_plot.
    Allways two windows are coming up, one blocked, both empty.

    gnuplot is working now for me without any problem.

    If I have some time I try to debug the problem as I can compile the source.

    Thanks so far.

    tv

(will not be published)