bugGNU Octave - Bugs: bug #57837, parse error when running transpose...

 
 

bug #57837: parse error when running transpose (') with F9

Submitter:  Muhali <muhali>
Submitted:  Mon 17 Feb 2020 09:47:29 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.0.90 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 18 Feb 2020 10:48:53 PM UTC, comment #16: 

@Torsten:
Yes, bug #57634.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 18 Feb 2020 10:47:03 PM UTC, comment #15: 

@Markus: Tested patch on stable and it works for me!

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Tue 18 Feb 2020 08:51:40 PM UTC, comment #14: 

Sorry, I missed this report until now. Thanks for the patch, Markus. I am just building the stable branch and will test it.

@Philipp: By "broken", do you refer to bug #57634 or are there other remaining issues?

Torsten Lilge <ttl>
Group Member
Tue 18 Feb 2020 08:00:45 PM UTC, comment #13: 

I pushed a modified version of the patch to stable here:
http://hg.savannah.gnu.org/hgweb/octave/rev/b0f949055097

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Tue 18 Feb 2020 04:12:41 AM UTC, comment #12: 

I just tested the patch and it doesn't seem to resolve the issue.

Rik <rik5>
Group administrator
Mon 17 Feb 2020 10:09:35 PM UTC, comment #11: 

@Muhali:
Thanks for trying, you're on Linux I surmise?

@Markus:
No, unfortunately the patch doesn't fix this bug's issue on Windows.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 17 Feb 2020 07:01:36 PM UTC, comment #10: 

@Philip: no, I can't reproduce what you describe in bug #57634.

@Markus: also no, the patch doesn't help.

Muhali <muhali>
Mon 17 Feb 2020 04:40:37 PM UTC, comment #9: 

Can't test myself at the moment. But does the attached patch help?

(file #48435)

Markus Mützel <mmuetzel>
Group administrator
Mon 17 Feb 2020 04:30:58 PM UTC, comment #8: 

I can confirm this as well on Windows.

@muhali:
Can you confirm if bug #57634 looks a bit like this one?

F9 seems to have been broken for quite a while, for me it's unusable at the moment. For the time being I help myself with copy/paste from the editor into the terminal.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 17 Feb 2020 02:58:43 PM UTC, comment #7: 

Yep, now I can confirm too.

Kai Torben Ohlhus <siko1056>
Group Member
Mon 17 Feb 2020 01:23:35 PM UTC, comment #6: 

Thanks for clearing this up.
Retitling accordingly.

Markus Mützel <mmuetzel>
Group administrator
Mon 17 Feb 2020 01:21:32 PM UTC, comment #5: 

yes. (To be exact: Right-click to "Run selection")

Muhali <muhali>
Mon 17 Feb 2020 01:08:37 PM UTC, comment #4: 

Did you use "F9" in the editor to run the code?

Markus Mützel <mmuetzel>
Group administrator
Mon 17 Feb 2020 01:04:25 PM UTC, comment #3: 

... and no error with the current stable build.

Muhali <muhali>
Mon 17 Feb 2020 01:00:59 PM UTC, comment #2: 

with a brand new dev build

>> _octave_config_info_ ("hg_id")

ans = 11072ea6a16c

and like you

>> double ("'")

ans = 39

I still get the same error. Looking at the error message ... I just noticed that savannah didn't parse it – the error message

octave_aXrcGK (1, 'z = x' x;', 'z = x' x;');

it seems that the "'" is used for both strings and the transpose.

Muhali <muhali>
Mon 17 Feb 2020 12:13:37 PM UTC, comment #1: 

Thank you for your bug report.  Unfortunately, I cannot confirm this observation.  Did you accidentally type some other character than ASCII "'"?


>> double ("'")
ans = 39


This sometimes happens with my Japanese Keyboard too.

If not what is your current dev hg id?


>> __octave_config_info__ ("hg_id")
ans = 11072ea6a16c


Did you face any errors or warnings in your build logs?

Kai Torben Ohlhus <siko1056>
Group Member
Mon 17 Feb 2020 09:47:29 AM UTC, original submission:  

In the current dev version, executing


x = 0:2;
z = x' * x;


I get

>> error: parse error


  syntax error

>>> octave_TVFJZF (2, 'z = x' x;', 'z = x' x;');

Muhali <muhali>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by muhali (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 18 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-18 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
        Releasedev 6.0.90
    2020-02-18 mmuetzel StatusConfirmed Ready For Test
    2020-02-18 rik5 CategoryGUI Interpreter
    2020-02-17 mtmiller CategoryInterpreter GUI
    2020-02-17 mmuetzel Attached File- Added bug57837_escape_single_quote_F9.patch, #48435
        Summaryparsing error when running transpose &quot;'&quot; with F9 parse error when running transpose (') with F9
    2020-02-17 mmuetzel Severity2 - Minor 3 - Normal
        Priority3 - Low 5 - Normal
        StatusWorks For Me Confirmed
        Operating SystemGNU/Linux Any
        Summaryparsing &quot;'&quot; throws error parsing error when running transpose "'" with F9
    2020-02-17 siko1056 CategoryNone Interpreter
        Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupNone Unexpected Error or Warning
        StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code