FS#33101 - [ngspice] nutmeg's history number on prompt won't increment beyond 2

Attached to Project: Community Packages
Opened by Luis Henrique Mello (lmello) - Sunday, 16 December 2012, 01:28 GMT
Last edited by Kyle Keen (keenerd) - Tuesday, 16 April 2013, 21:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The ngspice command prompt won't increment the history beyond the first issued command.

Additional info:
ngspice-24

Steps to reproduce:
start ngspice, issue a couple of commands. The command # on the prompt won't increase beyond 2.
This task depends upon

Closed by  Kyle Keen (keenerd)
Tuesday, 16 April 2013, 21:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in ngspice-25-2
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 16 December 2012, 02:22 GMT
  • Field changed: Attached to Project (Arch Linux → Community Packages)
  • Field changed: Summary (ngspice/nutmeg's history number on prompt won't increment beyond 2 → [ngspice] nutmeg's history number on prompt won't increment beyond 2)
  • Field changed: Category (Packages: Testing → Upstream Bugs)
upstream report?
Comment by Kyle Keen (keenerd) - Sunday, 16 December 2012, 03:03 GMT
There is no report of this on their bugtracker.

I also checked their documentation, and it did not say what that number is for. Are you sure that field is meant to be a history line number?
Comment by Luis Henrique Mello (lmello) - Sunday, 16 December 2012, 11:51 GMT
Yes, I've used ngspice before. This number is like octave's or maxima's prompt.
Comment by Kyle Keen (keenerd) - Sunday, 16 December 2012, 12:09 GMT
Would you be interested in opening this issue on ngspice's bugtracker at sourceforge?
Comment by Luis Henrique Mello (lmello) - Sunday, 16 December 2012, 17:21 GMT
I compiled ngspice from source in a Slackware 14.0 box and there's no problem there, the prompt counter gets correctly incremented with each history command.
Comment by Luis Henrique Mello (lmello) - Sunday, 16 December 2012, 17:26 GMT
Here's a screenshot.
Comment by Kyle Keen (keenerd) - Sunday, 16 December 2012, 20:54 GMT
What version of gcc did you use on slackware? This might be a gcc 4.7 bug.

Also odd, the history is properly logged to ~/.ngspice_history and the 'history' command works properly. I am out of ideas for today.
Comment by Luis Henrique Mello (lmello) - Sunday, 16 December 2012, 23:32 GMT
Odd indeed.

Here's the output for gcc -v for both my Arch and Slackware boxes.
Comment by Luis Henrique Mello (lmello) - Sunday, 14 April 2013, 23:39 GMT
This continues to be an issue on the ngspice-25-1 build.
Comment by Luis Henrique Mello (lmello) - Monday, 15 April 2013, 08:27 GMT
Found the reason, I recompiled ngspice using '--with-readline=yes' instead of '--with-editline=yes'. See PKGBUILD attached, fixed the issue + some extras.
   PKGBUILD (1.2 KiB)

Loading...