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

 
 

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

Submitted by:  Hartmut <hardy>
Submitted on:  Mon 10 Nov 2014 07:39:39 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.2Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 <ttl>
Project 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 <ttl>
Project 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?)

(file #32403, file #32404, file #32405, file #32406)

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 <ttl>
Project 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"):

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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ttl (Posted a comment)
  • -unavailable- added by hardy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 23 Nov 2014 01:30:58 PM UTCttlStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 11 Nov 2014 06:07:17 AM UTCttlCategoryDocumentation=>GUI
    Mon 10 Nov 2014 10:22:21 PM UTChardyAttached 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.1-cleanup1