{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/atom-editorconfig/issues/101","repository_url":"https://api.github.com/repos/sindresorhus/atom-editorconfig","labels_url":"https://api.github.com/repos/sindresorhus/atom-editorconfig/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/atom-editorconfig/issues/101/comments","events_url":"https://api.github.com/repos/sindresorhus/atom-editorconfig/issues/101/events","html_url":"https://github.com/sindresorhus/atom-editorconfig/issues/101","id":183339491,"number":101,"title":"Indent size not preserved","user":{"login":"zgoda","id":141999,"avatar_url":"https://avatars.githubusercontent.com/u/141999?v=3","gravatar_id":"","url":"https://api.github.com/users/zgoda","html_url":"https://github.com/zgoda","followers_url":"https://api.github.com/users/zgoda/followers","following_url":"https://api.github.com/users/zgoda/following{/other_user}","gists_url":"https://api.github.com/users/zgoda/gists{/gist_id}","starred_url":"https://api.github.com/users/zgoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgoda/subscriptions","organizations_url":"https://api.github.com/users/zgoda/orgs","repos_url":"https://api.github.com/users/zgoda/repos","events_url":"https://api.github.com/users/zgoda/events{/privacy}","received_events_url":"https://api.github.com/users/zgoda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sindresorhus/atom-editorconfig/labels/on%20hold","name":"on hold","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-17T06:59:00Z","updated_at":"2016-10-17T08:28:15Z","closed_at":null,"body":"I have this .editorconfig file in top-level directory:\r\n\r\n```\r\nroot = true\r\n\r\n[*]\r\ncharset = utf-8\r\nend_of_line = lf\r\ninsert_final_newline = true\r\nindent_style = space\r\nindent_size = 4\r\n\r\n[*.{json,yml,html,js}]\r\nindent_size = 2\r\n\r\n[{Makefile,*.java,*.sh}]\r\nindent_style = tab\r\n\r\n[*.{c,cpp,h,hpp}]\r\nindent_style = tab\r\nindent_size = 2\r\n```\r\n\r\nNow all files in subdirecotries that fall into last rule have `indent_size` of 4 instead of 2, yet `indent_style` is properly set to tab. There are no `.editorconfig` files in these subdirectories and Preferences->Editor->Tab Type is set to \"auto\".\r\n\r\nInstalled packages:\r\n\r\n```\r\n$ apm list\r\nBuilt-in Atom packages (90)\r\n├── about@1.1.0\r\n├── archive-view@0.60.0\r\n├── atom-dark-syntax@0.27.0\r\n├── atom-dark-ui@0.51.0\r\n├── atom-light-syntax@0.28.0\r\n├── atom-light-ui@0.43.0\r\n├── autocomplete-atom-api@0.9.2\r\n├── autocomplete-css@0.10.1\r\n├── autocomplete-html@0.7.2\r\n├── autocomplete-plus@2.19.0\r\n├── autocomplete-snippets@1.7.1\r\n├── autoflow@0.25.0\r\n├── autosave@0.22.0\r\n├── background-tips@0.26.0\r\n├── base16-tomorrow-dark-theme@0.27.0\r\n├── base16-tomorrow-light-theme@0.9.0\r\n├── bookmarks@0.36.0\r\n├── bracket-matcher@0.76.0\r\n├── command-palette@0.36.0\r\n├── deprecation-cop@0.54.0\r\n├── dev-live-reload@0.46.0\r\n├── encoding-selector@0.21.0\r\n├── exception-reporting@0.36.0\r\n├── find-and-replace@0.180.0\r\n├── fuzzy-finder@0.88.0\r\n├── git-diff@0.55.0\r\n├── go-to-line@0.30.0\r\n├── grammar-selector@0.47.0\r\n├── image-view@0.54.0\r\n├── incompatible-packages@0.24.1\r\n├── keybinding-resolver@0.33.0\r\n├── language-c@0.47.1\r\n├── language-clojure@0.16.0\r\n├── language-coffee-script@0.41.0\r\n├── language-csharp@0.7.0\r\n├── language-css@0.33.0\r\n├── language-gfm@0.81.0\r\n├── language-git@0.10.0\r\n├── language-go@0.37.0\r\n├── language-html@0.41.2\r\n├── language-hyperlink@0.14.0\r\n├── language-java@0.16.0\r\n├── language-javascript@0.92.0\r\n├── language-json@0.16.0\r\n├── language-less@0.28.2\r\n├── language-make@0.17.0\r\n├── language-mustache@0.12.0\r\n├── language-objective-c@0.15.0\r\n├── language-perl@0.28.0\r\n├── language-php@0.29.0\r\n├── language-property-list@0.8.0\r\n├── language-python@0.39.0\r\n├── language-ruby@0.57.0\r\n├── language-ruby-on-rails@0.22.0\r\n├── language-sass@0.40.1\r\n├── language-shellscript@0.15.0\r\n├── language-source@0.9.0\r\n├── language-sql@0.17.0\r\n├── language-text@0.7.0\r\n├── language-todo@0.27.0\r\n├── language-toml@0.16.0\r\n├── language-xml@0.32.0\r\n├── language-yaml@0.24.0\r\n├── line-ending-selector@0.0.5\r\n├── link@0.30.0\r\n├── markdown-preview@0.150.0\r\n├── metrics@0.51.0\r\n├── notifications@0.59.0\r\n├── one-dark-syntax@1.1.0\r\n├── one-dark-ui@1.0.3\r\n├── one-light-syntax@1.1.0\r\n├── one-light-ui@1.0.3\r\n├── open-on-github@0.38.0\r\n├── package-generator@0.40.0\r\n├── release-notes@0.53.0\r\n├── settings-view@0.216.0\r\n├── snippets@0.95.0\r\n├── solarized-dark-syntax@0.38.1\r\n├── solarized-light-syntax@0.22.1\r\n├── spell-check@0.59.0\r\n├── status-bar@0.79.0\r\n├── styleguide@0.44.0\r\n├── symbols-view@0.104.0\r\n├── tabs@0.84.0\r\n├── timecop@0.31.0\r\n├── tree-view@0.186.0\r\n├── update-package-dependencies@0.10.0\r\n├── welcome@0.30.0\r\n├── whitespace@0.31.0\r\n└── wrap-guide@0.36.0\r\n\r\n/home/jazg/.atom/packages (18)\r\n├── autocomplete-clang@0.10.0\r\n├── base16-syntax@1.7.0\r\n├── build@0.65.0\r\n├── busy@0.7.0\r\n├── editorconfig@1.4.1\r\n├── kary-foundation-dark@4.0.0\r\n├── language-ini@1.16.0\r\n├── language-restructuredtext@1.0.1\r\n├── linter@1.11.18\r\n├── linter-flake8@2.0.0\r\n├── linter-gcc@0.6.15\r\n├── linter-python-flake8@1.0.7\r\n├── minimap@4.25.0\r\n├── monokai@0.18.0\r\n├── platformio-ide@1.6.0\r\n├── platformio-ide-terminal@2.2.0\r\n├── railscast-theme@0.3.0\r\n└── tool-bar@1.0.1\r\n```"},"comment":{"url":"https://api.github.com/repos/sindresorhus/atom-editorconfig/issues/comments/254144625","html_url":"https://github.com/sindresorhus/atom-editorconfig/issues/101#issuecomment-254144625","issue_url":"https://api.github.com/repos/sindresorhus/atom-editorconfig/issues/101","id":254144625,"user":{"login":"zgoda","id":141999,"avatar_url":"https://avatars.githubusercontent.com/u/141999?v=3","gravatar_id":"","url":"https://api.github.com/users/zgoda","html_url":"https://github.com/zgoda","followers_url":"https://api.github.com/users/zgoda/followers","following_url":"https://api.github.com/users/zgoda/following{/other_user}","gists_url":"https://api.github.com/users/zgoda/gists{/gist_id}","starred_url":"https://api.github.com/users/zgoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgoda/subscriptions","organizations_url":"https://api.github.com/users/zgoda/orgs","repos_url":"https://api.github.com/users/zgoda/repos","events_url":"https://api.github.com/users/zgoda/events{/privacy}","received_events_url":"https://api.github.com/users/zgoda/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T08:28:15Z","updated_at":"2016-10-17T08:28:15Z","body":"I ran Atom in safe mode for a moment to see if I perhaps messed whitespace in my files. After that right intendation was back with the same `.editorconfig` I had. I guess this issue was somehow related to Atom update (perhaps something was reset in configuration?) and the setting for open file was preserved. Now that I reopened all files right settings parsed from `.editorconfig` have been set.\r\n\r\nI guess it is safe to close this issue, thank you for your support."}}
{"actor":{"display_login":"zgoda"}}