{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/11840","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/11840/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/11840/comments","events_url":"https://api.github.com/repos/atom/atom/issues/11840/events","html_url":"https://github.com/atom/atom/issues/11840","id":156800948,"number":11840,"title":"Individual grammar editor tab lengths revert to incorrect settings on global tab length change.","user":{"login":"gandm","id":2313237,"avatar_url":"https://avatars.githubusercontent.com/u/2313237?v=3","gravatar_id":"","url":"https://api.github.com/users/gandm","html_url":"https://github.com/gandm","followers_url":"https://api.github.com/users/gandm/followers","following_url":"https://api.github.com/users/gandm/following{/other_user}","gists_url":"https://api.github.com/users/gandm/gists{/gist_id}","starred_url":"https://api.github.com/users/gandm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandm/subscriptions","organizations_url":"https://api.github.com/users/gandm/orgs","repos_url":"https://api.github.com/users/gandm/repos","events_url":"https://api.github.com/users/gandm/events{/privacy}","received_events_url":"https://api.github.com/users/gandm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-25T16:59:24Z","updated_at":"2016-06-18T15:37:19Z","closed_at":null,"body":"### Prerequisites\r\n\r\n* [x] Can you reproduce the problem in [safe mode](http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-if-the-problem-shows-up-in-safe-mode)? Can't run in safe mode atom --safe doesn't seem to do it\r\n* [x] Are you running the [latest version of Atom](http://flight-manual.atom.io/hacking-atom/sections/debugging/#update-to-the-latest-version)?\r\n* [x] Did you check the [debugging guide](http://flight-manual.atom.io/hacking-atom/sections/debugging/)?\r\n* [x] Did you check the [FAQs on Discuss](https://discuss.atom.io/c/faq)?\r\n* [x] Are you reporting to the [correct repository](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#atom-and-packages)?\r\n* [x] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Aatom+-repo%3Aatom%2Felectron) to see if your bug or enhancement is already reported?\r\n\r\nFor more information on how to write a good [bug report](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-bug-report) or [enhancement request](https://github.com/atom/atom/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-enhancement-suggestion), see the `CONTRIBUTING` guide.\r\n\r\n### Description\r\n\r\nAny grammar e.g. language-javascript will have it's local tab lengths settings changed dynamically to non defined values.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Change language-javascript's grammar tab length to 6\r\n2. config.cson will show \r\n\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548477/7952c064-22a0-11e6-8f12-f2fe52c5a533.png)\r\n3. Change the global tab length to 4\r\n4. config.cson will show\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548558/ece79220-22a0-11e6-8df6-af4ac2e7c07e.png)\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548477/7952c064-22a0-11e6-8f12-f2fe52c5a533.png)\r\n5. Change the global tab length back to default: 2\r\n6 config.cson now shows\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548647/40bbaa62-22a1-11e6-9570-a5450e906ec6.png)\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548477/7952c064-22a0-11e6-8f12-f2fe52c5a533.png)\r\n7 Now change language-javascript's grammar tab length to default: 2\r\n8 config.cson now shows\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548647/40bbaa62-22a1-11e6-9570-a5450e906ec6.png)\r\n9 Now change the Global tab length to 4\r\n10 config.cson now shows\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548738/a7820296-22a1-11e6-8457-9b2897b1ffcf.png)\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548745/b02d3ea6-22a1-11e6-9b49-50344009563f.png)\r\n11 The grammar's trab length has been set back to it's last known non-default value!\r\nEDIT: sorry I left out a step. If the default global value is not set back to default:2 then the language-JavaScript value remains at 4.\r\n\r\n**Expected behavior:** \r\nThe grammar should revert back to it's last value - in the above case default: 2\r\n\r\n**Actual behavior:*\r\nThe grammar had it's tab length changed back to it's last known non-default value.\r\n\r\n### Versions\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548911/1d297ba0-22a2-11e6-9f2e-9806e73b1bd1.png)\r\n![image](https://cloud.githubusercontent.com/assets/2313237/15548926/2f6c40b8-22a2-11e6-893f-0641c219c22a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/226948768","html_url":"https://github.com/atom/atom/issues/11840#issuecomment-226948768","issue_url":"https://api.github.com/repos/atom/atom/issues/11840","id":226948768,"user":{"login":"pepjo","id":1307305,"avatar_url":"https://avatars.githubusercontent.com/u/1307305?v=3","gravatar_id":"","url":"https://api.github.com/users/pepjo","html_url":"https://github.com/pepjo","followers_url":"https://api.github.com/users/pepjo/followers","following_url":"https://api.github.com/users/pepjo/following{/other_user}","gists_url":"https://api.github.com/users/pepjo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepjo/subscriptions","organizations_url":"https://api.github.com/users/pepjo/orgs","repos_url":"https://api.github.com/users/pepjo/repos","events_url":"https://api.github.com/users/pepjo/events{/privacy}","received_events_url":"https://api.github.com/users/pepjo/received_events","type":"User","site_admin":false},"created_at":"2016-06-18T15:37:19Z","updated_at":"2016-06-18T15:37:19Z","body":"Yep! It's also impossible to set a \"soft wraping\" on a specific language and not set it on the general settings or otherwise. When you change it either on an specific language or on the global settings it changes everywhere, really anoying."}}
{"actor":{"display_login":"pepjo"}}