Unable to change scilab prompt in GUI editor

Bug #1825609 reported by SYN-2009
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scilab (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Scilab does not work properly.

When you try to type in the program editor
a=input ('a=');
writes that there is a mistake
on line 1 of the executable string value
on line 50 of the input function ( /usr/share/scilab/modules/io/macros/input.sci line 63 )
on line 1 of the executable file /home/usr-2/Mat/uravn.sce

mprintf: Invalid input parameter type # 1: string expected.

Additionally, the program freezes and sometimes closes

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: scilab 6.0.1-7ubuntu1~18.04
ProcVersionSignature: Ubuntu 4.15.0-47.50-generic 4.15.18
Uname: Linux 4.15.0-47-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 20 13:18:57 2019
InstallationDate: Installed on 2018-05-06 (349 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=ru_RU.UTF-8
 SHELL=/bin/bash
SourcePackage: scilab
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
SYN-2009 (ra9uek) wrote :
Revision history for this message
SYN-2009 (ra9uek) wrote :

I was informed that the problem is only with scilab 6.0.1. You need to upgrade to version 6.0.2. Please put in repository version 6.0.2

Revision history for this message
Matthias Klose (doko) wrote :

please check that this is fixed in the 19.04 disco release.

Changed in scilab (Ubuntu):
status: New → Incomplete
tags: added: id-5cbf8cd59e0abe4d0844735a
Revision history for this message
SYN-2009 (ra9uek) wrote :

Unfortunately, I can't be sure, because I use Ubuntu 18.04 and I don't want to change the system, especially not the LTS version.

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Problem still happens in scilab 6.0.2 on Eoan.

Changed in scilab (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

The code for input(message) (see /usr/share/scilab/modules/io/macros/input.sci) calls prompt(message) and then mscanf(format_string). The prompt() function is meant to modify the prompt for the next user interaction, but for some reason calling this function does nothing at all.

As calls to prompt(new_prompt) do nothing the default prompt ('-->') is shown instead, but any content typed by the user is used for the previous input(message) call. This is a bit misleading for the user, as it seems/feels like nothing happened after the input(message) call, but scilab is in fact expecting the response for the input(message).

I found http://bugzilla.scilab.org/show_bug.cgi?id=14998 reported stating that input(message) should instead be calling mprintf() instead of prompt().

Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

This patch https://salsa.debian.org/science-team/scilab/commit/af933fa83ed0cc731b54a8369888b7b165775798
fixes the issue
should be trivial to cherry-pick this change

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Please notice that this only affects the GUI Editor (aka scilab), the scilab command line tool (ie. scilab-cli) works as expected.

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote : Re: [Bug 1825609] Re: Scilab does not work properly. version 6.0.1 Ubuntu 18.04

On Wed, Jun 12, 2019 at 5:40 PM Sylvestre Ledru
<email address hidden> wrote:
>
> This patch https://salsa.debian.org/science-team/scilab/commit/af933fa83ed0cc731b54a8369888b7b165775798
> fixes the issue
> should be trivial to cherry-pick this change

That fix is being tracked in bug 1825037 and it does not fix the
prompt issue in the GUI. With that fix applied I can still see the GUI
prompt issue in both scilab 6.0.1 and 6.0.2.

summary: - Scilab does not work properly. version 6.0.1 Ubuntu 18.04
+ Unable to change scilab prompt in GUI editor
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.