bugGNU Octave - Bugs: bug #50663, Text Editor Tab not...

 
 

bug #50663: Text Editor Tab not showing/opening within Octave GUI

Submitter:  Rabindra Jena <jenarabi>
Submitted:  Tue 28 Mar 2017 11:21:53 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Duplicate Assigned to:  None
Originator Name:  Rabindra Jena Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 Mar 2017 01:48:07 PM UTC, comment #3: 

Dear Team,

Thanks for your reply and it helps me to recompile the octave from source code.

QScintilla library was already installed.

Work Arround as follows:
a) Installed fltk & fltk-devel

b) Recompiled the octave source code
Error resolved by changing the cc files after commented undefined symbol/function as setMarginType not supported for class octave_qscintilla
libgui/src/m-editor/file-editor-tab.cc:156
libgui/src/m-editor/file-editor-tab.cc:183

Now Text Editor is working  for me within the Octave UI.

octave-4.2.1/libgui/src/m-editor # diff file-editor-tab.cc file-editor-tab.org-cc
156c156
<   // _edit_area->setMarginType (1, QsciScintilla::SymbolMargin);
---

>   _edit_area->setMarginType (1, QsciScintilla::SymbolMargin);

183c183
< //  _edit_area->setMarginType (2, QsciScintilla::TextMargin);
---

>   _edit_area->setMarginType (2, QsciScintilla::TextMargin);

2238c2238
< //      _edit_area->setMarginType (3, QsciScintilla::SymbolMargin);
---

>       _edit_area->setMarginType (3, QsciScintilla::SymbolMargin);


Rabindra Jena <jenarabi>
Tue 28 Mar 2017 07:01:53 PM UTC, comment #2: 

Marking as a duplicate of bug #47360, this tends to come up frequently with self-compiled Octave installs. Please be sure to check the configuration summary for what features have been disabled when building Octave yourself. The GUI has a preferences option to use an external editor, you should be able to switch that feature on and use emacs.

There is an open bug #39179, an enhancement to either print a warning or automatically fall back to the external editor if Octave was built without Qscintilla support.

Mike Miller <mtmiller>
Group Member
Tue 28 Mar 2017 04:36:06 PM UTC, comment #1: 

Hi,

It looks like the GUI editor has been disabled, probably because the necessary QScintilla library was not found at build time.
Did you check the config.log file?

Pantxo Diribarne <pantxo>
Group Member
Tue 28 Mar 2017 11:21:53 AM UTC, original submission:  

I have installed Octave-4.2.1 on my SLES-11.3 Server.

Kindly suggest for the Issue on default text editor (Emacs) when I am trying to edit any .m file within the Octave GUI,

the command e.g (>>edit test.m) no action or output showing not able to see the Text Editor Tab or in external GUI.

Octave GUI: Window--> Show Editor  (((Not Working))

While I am able to edit the files with emacs UI using the Octave option $octave --no-gui

then

octave:1> edit new.m
octave:2> (The Emacs text editor with UI is openning the existing file)

Rabindra Jena <jenarabi>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #40178:  Editor-not-working-with-gui-option-Octave.png added by jenarabi (134KiB - image/png - Attached Screen Shotspls check)
file #40179:  Editor-working-no-gui-option-Octave.png added by jenarabi (46KiB - image/png - Attached Screen Shotspls check)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by jenarabi (Submitted the item)
  • -email is unavailable- added by jenarabi (Need Help on Text Editor)
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-28 mtmiller StatusWorks For Me Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #47360
    2017-03-28 pantxo StatusNone Works For Me
    2017-03-28 jenarabi Attached File- Added Editor-not-working-with-gui-option-Octave.png, #40178
        Attached File- Added Editor-working-no-gui-option-Octave.png, #40179
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code