bugGNU Octave - Bugs: bug #53365, Up-Arrow command line completion...

 
 

bug #53365: Up-Arrow command line completion does not work in octave-4.5.0+

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Fri 16 Mar 2018 09:12:37 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Works For Me Assigned to:  None
Originator Name:  philipnienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 19 Mar 2018 06:38:54 PM UTC, comment #9: 

That doesn't work.

But after I install Octave ("sudo make install") it works again, w/o your suggestion in comment #8.
And after installing Octave, it now also works when using ./run-octave &

So it is probably as you explained in comment #6.

Thanks for your attention & help, Mike

Philip Nienhuis <philipnienhuis>
Group Member
Mon 19 Mar 2018 01:59:37 AM UTC, comment #8: 

I will leave it to you if you want to reopen this.

Please try the following after starting Octave to see if this brings back the behavior that you like:


readline_read_init_file (sprintf ("%s%s%s",
                                  __octave_config_info__ ("startupfiledir"),
                                  filesep, "inputrc"));


This is copied verbatim from scripts/startup/version-rcfile.

Mike Miller <mtmiller>
Group Member
Sun 18 Mar 2018 08:51:11 PM UTC, comment #7: 

/etc/inputrc

It changed -AFAICS- around the start, or shortly before the start, of OctConf and it was already in 4.3.0+

I usually run Octave on Linux using ./run-octave &  (and now with --force-gui).
The latest "real" 4.3.0+ installation (make install) on my box is from March 2 and it still works OK there.

I wouldn't know how to track down which dependencies were updated when. Mageia has rpm, when I have more time I can try to read up on that.
It's no big deal, it's only me who seems to be affected and I use Octave on Linux mainly for testing (my colleagues are all on Windows so I use Octave by far the most on that platform).

Philip Nienhuis <philipnienhuis>
Group Member
Sun 18 Mar 2018 07:25:54 PM UTC, comment #6: 

Do you have a ~/.inputrc file or an /etc/inputrc file?

When did you notice this last working? Has it only broken since the first time you did a make install of 4.5.0+?

This may be the behavior that was changed some time ago in the 4.3 development branch, but since Octave doesn't overwrite its configuration files on make install, you probably didn't see it until the version number changed, so the make install paths changed.

Mike Miller <mtmiller>
Group Member
Sun 18 Mar 2018 04:51:32 PM UTC, comment #5: 

It still doesn't work on my Linux build box while it works on Windows.
Maybe a dependency on the Linux side is in error (several of those were upgraded very recently)

Philip Nienhuis <philipnienhuis>
Group Member
Sat 17 Mar 2018 09:20:11 PM UTC, comment #4: 

Somehow it does work again.
I have no idea what was happening but I'm happy.

Closing report.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 17 Mar 2018 08:04:04 AM UTC, comment #3: 

I should be more clear, sorry: it isn tab but command line completion using Up Arrow.

When typing the first characters of a command that was entered previously, then entering Up Arrow, a previous command matching those characters would come up (the last command that fits those characters). Using Up Arrow one can step through the list of matching commands. That doesn't work anymore.
Instead one gets the previous command whether it matches or not, and Up Arrow just steps through the history.

When typing a few characters and pressing Tab one gets the usual Q: show all <big number> possibilities? y/n

<Adapting title>

Philip Nienhuis <philipnienhuis>
Group Member
Fri 16 Mar 2018 10:52:34 PM UTC, comment #2: 

GUI mode.
Cannot try CLI now (cross-building in linux), I'll report tomorrow.

Philip Nienhuis <philipnienhuis>
Group Member
Fri 16 Mar 2018 09:25:17 PM UTC, comment #1: 

It works for me on both default and stable branches. Is this in console or GUI mode?

Mike Miller <mtmiller>
Group Member
Fri 16 Mar 2018 09:12:37 PM UTC, original submission:  

Subject says all.
I think this stopped working before the switch to 4.5.0+
In a build from before OctConf 2018 it still worked, in a build on Thursday (still 4.3.0+) is doesn't work anymore.

Philip Nienhuis <philipnienhuis>
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 mtmiller (Posted a comment)
  • -email is unavailable- added by philipnienhuis (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-17 philipnienhuis Open/ClosedOpen Closed
        Operating SystemGNU/Linux Any
    2018-03-17 philipnienhuis SummaryTab completion does not work in octave-4.5.0+ Up-Arrow command line completion does not work in octave-4.5.0+
    2018-03-16 mtmiller StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code