Menu

#577 Set EditorConfig contrib-plugin to use global EOL character setting

Next_Nightly
fixed
Patch
2018-10-03
2017-12-01
No

Hi there good people,

there is following issue (and a fix, see above) with the current implementaion of the EditorConfig contrib-plugin.
(for reference please also follow this thread: Detect file EOL)

In short: I need uniform whitespace settings project-wide and consistent EOL per file.

Steps to reproduce:
1. Set EOL mode to "AUTO" at /Settings/Editor/General Settings/Editor Settings/
2. Enable EditorConfig plugin at /Project/Properties/EditorConfig options/ to set project-wide whitespace options.
Issue: I can't specify auto eol detection here and global auto eol detection is overridden. That means whenever there's a file in my project with different EOL characters than specified (happens quite often in bigger cross-platform projects) CB messes this file up with mixed EOL.

A consequence of that is this bug: Detect file EOL

Expected output:
Option to auto-detect file EOL even when project-wide whitespace options are set by the EditorConfig plugin.

Possible solution:
Add a item to the EditorConfig EOL combobox to use global settings.
More info+tiny patch see post: Detect file EOL

Discussion

  • Zach zachery

    Zach zachery - 2017-12-01

    How to edit this crappy link parsing??

     
    • ollydbg

      ollydbg - 2017-12-02

      You have to use the markdown syntax, for example: Detect file EOL

       
      • Zach zachery

        Zach zachery - 2017-12-02

         

        Last edit: Zach zachery 2017-12-02
      • Zach zachery

        Zach zachery - 2017-12-02

        Thanks Olly, the problem is I can't seem to be able to edit the OP.
        Maybe my script blocker, maybe some other thing, anyways...

         
  • Teodor Petrov

    Teodor Petrov - 2017-12-02
    • labels: eol, bug, EditorConfig --> eol, EditorConfig
     
  • ollydbg

    ollydbg - 2017-12-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     Hi there good people,
    
     there is following issue (and a fix, see above) with the current implementaion of the EditorConfig contrib-plugin.
    -(for reference please also follow this thread: http://forums.codeblocks.org/index.php/topic,22282.0.html)
    +(for reference please also follow this thread: [Detect file EOL](http://forums.codeblocks.org/index.php/topic,22282.0.html))
    
     In short: I need uniform whitespace settings project-wide and consistent EOL per file.
    
    @@ -10,11 +10,11 @@
     2. Enable EditorConfig plugin at /Project/Properties/EditorConfig options/ to set project-wide whitespace options.
     Issue: I can't specify auto eol detection here and global auto eol detection is overridden. That means whenever there's a file in my project with different EOL characters than specified (happens quite often in bigger cross-platform projects) CB messes this file up with mixed EOL.
    
    -A consequence of that is this bug: http://forums.codeblocks.org/index.php/topic,22282.msg151700.html#msg151700
    +A consequence of that is this bug: [Detect file EOL](http://forums.codeblocks.org/index.php/topic,22282.msg151700.html#msg151700)
    
     Expected output:
     Option to auto-detect file EOL even when project-wide whitespace options are set by the EditorConfig plugin.
    
     Possible solution:
     Add a item to the EditorConfig EOL combobox to use global settings.
    -More info+tiny patch see post: http://forums.codeblocks.org/index.php/topic,22282.new.html#new
    +More info+tiny patch see post: [Detect file EOL](http://forums.codeblocks.org/index.php/topic,22282.new.html#new)
    
     
  • Morten MacFly

    Morten MacFly - 2018-10-03
    • status: open --> fixed
    • assigned_to: Morten MacFly
    • Milestone: Undefined --> Next_Nightly
     
  • Morten MacFly

    Morten MacFly - 2018-10-03

    Fixed in SVN, but a little more properly.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.