bugGNU Octave - Bugs: bug #57329, index error for every command,...

 
 

bug #57329: index error for every command, after textscan and variable editor inspection

Submitter:  None
Submitted:  Fri 29 Nov 2019 10:40:43 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 05 Dec 2019 07:06:48 PM UTC, comment #4: 

I get the subpane "Variable ans{1,2} not found" as well on Linux

Anonymous
Thu 05 Dec 2019 11:52:43 AM UTC, comment #3: 

OK, with that sequence I still cannot reproduce the exact same error, but rather when hitting Enter twice I get a new Variable Editor subpane and inside it says "Variable ans{1, 2} not found".

Some something is wrong here, I'll set status to "Confirmed".
OS -> Any
Release -> dev

Philip Nienhuis <philipnienhuis>
Group Member
Thu 05 Dec 2019 07:12:15 AM UTC, comment #2: 

Don't be. cat merely prints the content of a file and is unrelated to Octave.


My machines have

Octave 5.1.0 on Fedora Linux
Octave 4.4.1 on Debian GNU/Linux


I still see the errors with your commands (thanks for mentioning verbatim):


>> bug57329 = "1, 1, 1, 1, 1, 1, 1\n1, 1, 1, 1, 1, 1, 1"
bug57329 = 1, 1, 1, 1, 1, 1, 1
1, 1, 1, 1, 1, 1, 1
>> textscan(bug57329, "%s,%d,%d,%d,%d,%d,%d", 'delimiter', ',')
ans =
{
  [1,1] =
  {
    [1,1] = 1
    [2,1] = 1
  }

  [1,2] =

    1
    1

  [1,3] =

    1
    1

  [1,4] =

    1
    1

  [1,5] =

    1
    1

  [1,6] =

    1
    1

  [1,7] =

    1
    1

}

>> ans
ans =
{
  [1,1] =
  {
    [1,1] = 1
    [2,1] = 1
  }

  [1,2] =

    1
    1

  [1,3] =

    1
    1

  [1,4] =

    1
    1

  [1,5] =

    1
    1

  [1,6] =

    1
    1

  [1,7] =

    1
    1

}

>> # Then I opened ans in VE, then ans's second cell. Now, I'll press Enter twice.
>>
>> error: int32 matrix cannot be indexed with {
ans
ans =

  1
  1

>> error: int32 matrix cannot be indexed with {


Anonymous
Tue 03 Dec 2019 12:21:27 PM UTC, comment #1: 

Sorry, I can't reproduce this on Windows with dev Octave.
"cat /file ..." etc doesn't work here.

What works is:

>> bug57329 = "1, 1, 1, 1, 1, 1, 1\n1, 1, 1, 1, 1, 1, 1"
bug57329 = 1, 1, 1, 1, 1, 1, 1
1, 1, 1, 1, 1, 1, 1
>> textscan(bug57329, "%s,%d,%d,%d,%d,%d,%d", 'delimiter', ',')
ans =
{
  [1,1] =
  {
    [1,1] = 1
    [2,1] = 1
  }
  [1,2] =
    1
    1
  [1,3] =
    1
    1
  [1,4] =
    1
    1
  [1,5] =
    1
    1
  [1,6] =
    1
    1
  [1,7] =
    1
    1
}


but from then on the VE works as it says on the tin.
Can you show what "ans" looks like? (copy from terminal into a verbatim block)

Philip Nienhuis <philipnienhuis>
Group Member
Fri 29 Nov 2019 10:40:43 AM UTC, original submission:  

- cat /file
1,1,1,1,1,1,1
1,1,1,1,1,1,1
- textscan("/file", "%s,%d,%d,%d,%d,%d,%d")
- variable editor: open ans, then open ans's second cell
- go back to the command prompt, press enter twice
- now, this pops up whenever Enter is pressed at the prompt (this will happen after all commands issues at the prompt):
  error: int32 matrix cannot be indexed with {
- in octave 4.4.1, it was:
  error: sq_string cannot be indexed with {

Octave versions: 5.1.0, 4.4.1

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

 

CC list is empty

 

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
2019-12-05 philipnienhuis StatusNeed Info Confirmed
    Release5.1.0 dev
    Operating SystemGNU/Linux Any
2019-12-03 philipnienhuis StatusNone Need Info

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code