sindresorhus / atom-editorconfig

Helps developers maintain consistent coding styles between different editors
https://atom.io/packages/editorconfig
MIT License
812 stars 80 forks source link

Editor config not working with Atom 1.26.1 (Ubuntu 18.04 LTS) #226

Closed GrayedFox closed 5 years ago

GrayedFox commented 5 years ago

Ahoy, I cannot see the "editorconfig" mouse an any file and have experimented with changing the editor config settings (say, changing max char length to 120 chars) but the preferred line length never updates to 120 and the line inside Atom IDE remains at 80 chars length (unless I change it in the Atom prefs).

line_length_atom

Involved .editorconfig-files

# top-most EditorConfig file
root = true

# Unix-style newlines, newline ending every file, indent style and size
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space

# Set default charset and line length for js, rb, md, style, and vue files
[*.{js,md,styl,vue,json,rb}]
charset = utf-8
max_line_length = 80
indent_size = 2

Directory structure

Skipped this due to the sheer size of the directory tree (it's all of our docs). If needed will post.

Installed packages

Built-in Atom Packages (92)
├── atom-dark-syntax@0.29.0
├── atom-dark-ui@0.53.2
├── atom-light-syntax@0.29.0
├── atom-light-ui@0.46.2
├── base16-tomorrow-dark-theme@1.5.0
├── base16-tomorrow-light-theme@1.5.0
├── one-dark-ui@1.11.0
├── one-light-ui@1.11.0
├── one-dark-syntax@1.8.2
├── one-light-syntax@1.8.2
├── solarized-dark-syntax@1.1.4
├── solarized-light-syntax@1.1.4
├── about@1.8.0
├── archive-view@0.64.3
├── autocomplete-atom-api@0.10.7
├── autocomplete-css@0.17.5
├── autocomplete-html@0.8.4
├── autocomplete-plus@2.40.5
├── autocomplete-snippets@1.12.0
├── autoflow@0.29.3
├── autosave@0.24.6
├── background-tips@0.28.0
├── bookmarks@0.45.1
├── bracket-matcher@0.89.1
├── command-palette@0.43.5
├── dalek@0.2.2
├── deprecation-cop@0.56.9
├── dev-live-reload@0.48.1
├── encoding-selector@0.23.8
├── exception-reporting@0.43.1
├── find-and-replace@0.215.5
├── fuzzy-finder@1.8.1
├── github@0.12.0
├── git-diff@1.3.9
├── go-to-line@0.33.0
├── grammar-selector@0.50.0
├── image-view@0.62.4
├── incompatible-packages@0.27.3
├── keybinding-resolver@0.38.1
├── line-ending-selector@0.7.5
├── link@0.31.4
├── markdown-preview@0.159.20
├── metrics@1.2.6
├── notifications@0.70.5
├── open-on-github@1.3.1
├── package-generator@1.3.0
├── settings-view@0.254.2
├── snippets@1.3.3
├── spell-check@0.73.4
├── status-bar@1.8.15
├── styleguide@0.49.10
├── symbols-view@0.118.2
├── tabs@0.109.1
├── timecop@0.36.2
├── tree-view@0.221.3
├── update-package-dependencies@0.13.1
├── welcome@0.36.6
├── whitespace@0.37.5 (disabled)
├── wrap-guide@0.40.3
├── language-c@0.59.3
├── language-clojure@0.22.7
├── language-coffee-script@0.49.3
├── language-csharp@1.0.1
├── language-css@0.42.10
├── language-gfm@0.90.3
├── language-git@0.19.1
├── language-go@0.45.3
├── language-html@0.49.0
├── language-hyperlink@0.16.3
├── language-java@0.29.0
├── language-javascript@0.128.5
├── language-json@0.19.1
├── language-less@0.34.2
├── language-make@0.22.3
├── language-mustache@0.14.5
├── language-objective-c@0.15.1
├── language-perl@0.38.1
├── language-php@0.43.2
├── language-property-list@0.9.1
├── language-python@0.49.4
├── language-ruby@0.71.4
├── language-ruby-on-rails@0.25.3
├── language-sass@0.61.4
├── language-shellscript@0.26.3
├── language-source@0.9.0
├── language-sql@0.25.10
├── language-text@0.7.4
├── language-todo@0.29.4
├── language-toml@0.18.2
├── language-typescript@0.3.3
├── language-xml@0.35.2
└── language-yaml@0.32.0

Community Packages (10) /home/grayedfox/.atom/packages
├── atom-ide-ui@0.13.0
├── editorconfig@2.2.2
├── ide-html@0.4.2
├── ide-json@0.2.1
├── ide-typescript@0.7.6
├── ide-vue@0.1.9
├── language-vue@0.23.1
├── process-palette@0.17.0
├── sort-lines@0.18.0
└── teletype@0.13.3
Alhadis commented 5 years ago

but the preferred line length never updates to 120 and the line inside Atom IDE remains at 80 chars length

This should have been fixed in 021d0ea (I noticed the same phenomenon while working on a fix for #232). If you see this happening after the next package release, don't hesitate to speak up. 👍

Skipped this due to the sheer size of the directory tree (it's all of our docs). If needed will post.

Just an FYI: GitHub Markdown supports <details>…</details> tags, which can be used to enclose massive amounts of text:

# Example

<details>

**NOTE:** The blank lines before and after the `<details>` tags are required.

</details>

Output:

**NOTE:** The blank lines before and after the `
` tags are required.