bugGNU Octave - Bugs: bug #43572, GUI Editor shows csv files in red...

 
 

bug #43572: GUI Editor shows csv files in red color (Windows only)

Submitter:  Hartmut <hardy>
Submitted:  Mon 10 Nov 2014 07:39:39 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 23 Nov 2014 01:30:58 PM UTC, comment #5: 

Fixed with changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/c364b9a44580
(gui-release branch)

Torsten Lilge <ttl>
Group Member
Tue 11 Nov 2014 07:07:52 PM UTC, comment #4: 

You were right. I have a lot of lines like "Bash\style1\color=16776960" in  my qt-settings file under Linux. I have not put them there intentionally, but I did have quite a lot of release candidates and self compiled release versions of Octave 3.8.x installed on my Linux machine already. So maybe one of those previos Octave versions left those lines there...

Once I delete this qt-settings file under Linux, I get the SAME red colored (and ugly) appearance of numbers in csv files as I get them with the current Windows version. So for fresh installs, there seems to be no difference between the editor coloring in Windows and Linux. So far so good.

But I would still like to suggest, to change the coloring scheme for plain data files (like csv files). (My personal preference would be to have no syntax highlighting at all for those text datda files.) This would make the GUI editor much more useful for workflows where people use Octave to do data analysis.

Hartmut <hardy>
Tue 11 Nov 2014 06:07:17 AM UTC, comment #3: 

That's strange. It seems that your Linux configuration shows the default colors from the qscilexerbash.cpp. Obviously, the number colors were changed in the default qt-settings file. Do you have any entries for the bash lexer in your Linux qt-settings file?

Torsten Lilge <ttl>
Group Member
Mon 10 Nov 2014 10:22:21 PM UTC, comment #2: 

I can not quite confirm, that the style settings are the same on both platforms, Linux and Windows.

I have attached some files to show this:

  • In "Linux.png" and "Win7.png" you can see the outcome of the quoted demo csv file in the GUI Editor. You can see that they look quite DIFFERENT under Linux and Windows.


  • The other two screenshots show you the (top part of the) bash style setting used for the above two screenshots. I think those are the default settings for the respective platforms. (At least I cannot remember to have changes them ever, so far.) You can see here that even those bash style settings are NOT quite the same.


Nevertheless, I find the idea of making the octave style the default style on all platforms a good idea for an improvement in this matter. (Or could we just do no syntax highlighting at all, if the file type is not recognised?)


Hartmut <hardy>
Mon 10 Nov 2014 07:55:07 PM UTC, comment #1: 

Thanks for the report. The behavior is the same on all platforms. If a file does not match one of the supported lexers the bash lexer is used as default lexer. You can change the style in the "Bash"-tab of the editor's style preferences.
Maybe we should use octave lexer as default.

Torsten Lilge <ttl>
Group Member
Mon 10 Nov 2014 07:39:39 PM UTC, original submission:  

When I work with data in comma separated files (csv files) it is very convenient to open and view those files directly in the Editor of the Octave GUI.

This works fine in the Linux Version of Octave 3.8.2.

But in the Windows version of Octave 3.8.2 (mxe version 3.8.2-3 from mxeoctave.osuv.de) the numbers of csv files are colored in bright red. This makes the file very hard to read.

Here is a dummy file, that behaves as described in the GUI Editor of the Windows version (just give it a name like "data.csv"):


1, 2, 3
4, 5, 6


Could maybe someone change the default coloring scheme of the GUI Editor in the Windows version to be the same as currently in the Linux version?

Hartmut <hardy>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32405:  Bash-settings Linux.png added by hardy (92KiB - image/png)
file #32406:  Bash-Settings Win7.png added by hardy (56KiB - image/png)
file #32403:  Linux.png added by hardy (21KiB - image/png)
file #32404:  Win7.png added by hardy (18KiB - image/png)

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-23 ttl StatusNone Fixed
        Open/ClosedOpen Closed
    2014-11-11 ttl CategoryDocumentation GUI
    2014-11-10 hardy Attached File- Added Linux.png, #32403
        Attached File- Added Win7.png, #32404
        Attached File- Added Bash-settings Linux.png, #32405
        Attached File- Added Bash-Settings Win7.png, #32406

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code