bugPSPP - Bugs: bug #63910, Text-based interface: command...

 
 

bug #63910: Text-based interface: command output delayed until next command is supplied

Submitter:  None
Submitted:  Sat 11 Mar 2023 02:21:38 PM UTC
   
 
Category:  Output Driver Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 18 Mar 2023 07:01:05 PM UTC, comment #1: 

Thanks a lot for the bug report and especially for the bisection! I pushed a fix.

(If you log in for future bug reports, I'll credit you in the commit logs.)

Ben Pfaff <blp>
Group administrator
Sat 11 Mar 2023 02:21:38 PM UTC, original submission:  

Description


Command output in text-based user interface only shows up after next command is read.  This has no undesired consequences in data manipulation, i.e. effects are immediately available for subsequent commands.

Problem affects (among others) builds made from

  • commit 312c1f22e9740afa6b6d2eff88fb49826917f35f (currently newest)
  • tag v1.6.2 (latest stable)


This behaviour was introduced by (from git bisect on [v1.4.1;v1.5.4]):

commit 507ebaea36737618ef8265a60cd3e9005d9f3457


Steps to reproduce


1. Get the source code from:


2. Switch to proper commits in both repositories, e.g.:

  • pspp: v1.6.2
  • gnulib: 2d830e4a792fcd9f614ed08a7f18584b8b21d23b


3. Install all other required dependencies, go to pspp directory and run


   # make -f Smake
   # ./configure --without-gui
   # make


4. Run


   # LD_LIBRARY_PATH="/<PATH>/<TO>/pspp/src/.libs:$LD_LIBRARY_PATH" /<PATH>/<TO>/pspp/src/ui/terminal/.libs/pspp


   and then from within pspp (copied from actual session; note that there are no SYSMISes in original dataset):


   PSPP> echo 'foo'.
   PSPP> get file='/<PATH>/<TO>/pspp/examples/repairs.sav'.
   foo
   PSPP> recode factory (0 = SYSMIS).
   PSPP> descriptives /variables=factory.
   PSPP> finish.

                    Descriptive Statistics
   ╭──────────────────────┬──┬────┬───────┬───────┬───────╮
   │                      │ N│Mean│Std Dev│Minimum│Maximum│
   ├──────────────────────┼──┼────┼───────┼───────┼───────┤
   │Manufacturing facility│14│1.00│    .00│      1│      1│
   │Valid N (listwise)    │30│    │       │       │       │
   │Missing N (listwise)  │16│    │       │       │       │
   ╰──────────────────────┴──┴────┴───────┴───────┴───────╯

   (pspp terminates with exit status = 0).

Additional notes


Running make check on version from commit 507ebaea36737618ef8265a60cd3e9005d9f3457 yields 1260 successful tests and 1 (GET DATA /TYPE=PSQL) skipped.

Anonymous

 

(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 blp (Posted a comment)
  •  

    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 logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-18 blp StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code