bugGNU Octave - Bugs: bug #40350, pager does not work on MacOSX (gui...

 
 

bug #40350: pager does not work on MacOSX (gui only)

Submitter:  Ben Abbott <bpabbott>
Submitted:  Tue 22 Oct 2013 05:44:25 PM UTC
   
 
Category:  GUI Severity:  4 - Important
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  jwe
Originator Name:  bpabbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 02 Nov 2013 01:49:51 AM UTC, comment #13: 

I don't know what changed, but now the pager works correctly with both "help plot" and "history".

I'm closing the bug report.

Ben Abbott <bpabbott>
Group Member
Tue 29 Oct 2013 05:54:49 PM UTC, comment #12: 

Ben, is the pager now working with jwe's break-up of octave into octave-gui, octave-cli, and octave (wrapper)?  I'd love to close this bug.

Rik <rik5>
Group administrator
Mon 28 Oct 2013 10:12:29 PM UTC, comment #11: 

Thanks Carlo.  Unfortunately, using your modified options makes no difference for me.

Ben Abbott <bpabbott>
Group Member
Mon 28 Oct 2013 06:18:46 PM UTC, comment #10: 

Ben,

I'm now using slightly different configure options:


../octave/configure                                        \
    CC=/opt/local/bin/gcc-mp-4.7                           \
    CFLAGS="-pipe -O2 -m64"                                \
    CPPFLAGS="-D_THREAD_SAFE -I/opt/local/include"         \
    LDFLAGS="-L/opt/local/lib -m64 "                       \
    CXX=/opt/local/bin/g++-mp-4.7                          \
    CXXFLAGS="-pipe -O2 -m64"                              \
    F77=/opt/local/bin/gfortran-mp-4.7                     \
    FFLAGS="-pipe -O2 -m64"                                \
    LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.3          \
    --with-lapack="-llapack -latlas -lgfortran"            \
    --with-blas="-lcblas -lf77blas -latlas -lgfortran"     \
    --prefix=/opt/octave/3.7                               \
    --enable-gui                                           \
    --enable-jit                                           \
    --disable-java                                         \
    --with-framework-carbon                                \
    --with-arpack                                          \
    --enable-docs                                          \
    --with-opengl                                          \
    --without-x


essentially I upgraded to llvm-3.3 and I added --without-x
to reduce dependencies for the app bundle, I am using the qt terminal by default as qt is already included in the bundle.


Carlo de Falco <cdf>
Group Member
Mon 28 Oct 2013 05:54:15 PM UTC, comment #9: 


$ hg id
8b353af4a1ca tip @


with the pacth sent by torsten in this thread:

http://octave.1599824.n4.nabble.com/Binary-packages-for-3-8-tp4658066p4658603.html

c.

Carlo de Falco <cdf>
Group Member
Mon 28 Oct 2013 05:38:53 PM UTC, comment #8: 

Using Carlo's configure options under MacOSX with macports, I still encounter the crash.  If I recall correctly, Carlo is running MacOS 10.8 while I'm running 10.7


Ben Abbott <bpabbott>
Group Member
Mon 28 Oct 2013 05:17:49 PM UTC, comment #7: 


$ hg id
8b353af4a1ca tip @


I'll do a maintainer-clean and then build using the configure options that Carlo has been using (included below).


./configure                                                \
    CC=/opt/local/bin/gcc-mp-4.7                           \
    CFLAGS="-pipe -O2 -m64"                                \
    CPPFLAGS="-D_THREAD_SAFE -I/opt/local/include"         \
    LDFLAGS="-L/opt/local/lib -m64 "                       \
    CXX=/opt/local/bin/g++-mp-4.7                          \
    CXXFLAGS="-pipe -O2 -m64"                              \
    F77=/opt/local/bin/gfortran-mp-4.7                     \
    FFLAGS="-pipe -O2 -m64"                                \
    LLVM_CONFIG=/opt/local/bin/llvm-config-mp-3.1          \
    --with-lapack="-llapack -latlas -lgfortran"            \
    --with-blas="-lcblas -lf77blas -latlas -lgfortran"     \
    --prefix=/opt/octave/3.7                               \
    --enable-gui                                           \
    --enable-jit                                           \
    --disable-java                                         \
    --with-framework-carbon                                \
    --with-arpack


I'll report back when done.

Ben Abbott <bpabbott>
Group Member
Mon 28 Oct 2013 04:25:11 PM UTC, comment #6: 

It's very strange that the pager would work in some cases and not other.

hg id please?

John W. Eaton <jwe>
Group administrator
Mon 28 Oct 2013 04:08:16 PM UTC, comment #5: 

I see a slightly different behaviour:
the pager works correctly for "help plot"
or "randn (1000, 1)".

If I type "history" typing q just produces a "q"
at the bottom of the command window.

history browsing in the gui has never worked for me,
with or without this patch.

c.

Carlo de Falco <cdf>
Group Member
Mon 28 Oct 2013 01:15:08 PM UTC, comment #4: 

I reported on the mail-list that the pager was working for me now.  Today I did some more testing.

The pager works for "help plot".

Unfortunately, when I type "history" something very wrong happens.  The (f)orward and (b)ack work as expected.  Typing (q)uit causes all Octave's Qt windows disappear.  Octave does not exit, and the activity (task) manager indicates the CPU octave is running on is pegged at 100%.

Also the arrow keys do not allow me to browse the history.

Ben Abbott <bpabbott>
Group Member
Sun 27 Oct 2013 11:21:16 PM UTC, comment #3: 

I checked in a changeset that I hope will fix this issue:

http://hg.savannah.gnu.org/hgweb/octave/rev/b5d58667d32d

If you build in a separate directory tree, you may need to edit the src/.deps/main.Po file so that it refers to the new main.cc file that is supposed to be generated in the build tree instead of the main.cc file that used to be in the source tree.

I'll follow up with more info on the mailing list.

John W. Eaton <jwe>
Group administrator
Thu 24 Oct 2013 07:35:58 AM UTC, comment #2: 

I deleted the attached file because it was incomplete.  I posted a better version on the mailing list thread.

John W. Eaton <jwe>
Group administrator
Thu 24 Oct 2013 05:55:32 AM UTC, comment #1: 

I've added some more comments in the mailing list thread.

(file #29455)

John W. Eaton <jwe>
Group administrator
Tue 22 Oct 2013 05:44:25 PM UTC, original submission:  

The pager does not work from the command window of the GUI.  An email thread is below.

https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2013-October/036737.html

The short story is that keystrokes in the command window of the gui have no effect since the keyboard remains connected to the terminal window used to originally launch Octave.

Ben Abbott <bpabbott>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by cdf (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-02 bpabbott StatusNone Fixed
        Open/ClosedOpen Closed
    2013-10-24 jwe Attached File#29455 Removed
    2013-10-24 jwe Attached File- Added driver.c, #29455
        Assigned toNone jwe
    2013-10-22 bpabbott Summarypaper does not work on MacOSX (gui only) pager does not work on MacOSX (gui only)

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code