{"action":"closed","issue":{"url":"https://api.github.com/repos/deadfoxygrandpa/Elm.tmLanguage/issues/20","labels_url":"https://api.github.com/repos/deadfoxygrandpa/Elm.tmLanguage/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/deadfoxygrandpa/Elm.tmLanguage/issues/20/comments","events_url":"https://api.github.com/repos/deadfoxygrandpa/Elm.tmLanguage/issues/20/events","html_url":"https://github.com/deadfoxygrandpa/Elm.tmLanguage/issues/20","id":87816809,"number":20,"title":"Crash on selection","user":{"login":"corcillo","id":4566203,"avatar_url":"https://avatars.githubusercontent.com/u/4566203?v=3","gravatar_id":"","url":"https://api.github.com/users/corcillo","html_url":"https://github.com/corcillo","followers_url":"https://api.github.com/users/corcillo/followers","following_url":"https://api.github.com/users/corcillo/following{/other_user}","gists_url":"https://api.github.com/users/corcillo/gists{/gist_id}","starred_url":"https://api.github.com/users/corcillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corcillo/subscriptions","organizations_url":"https://api.github.com/users/corcillo/orgs","repos_url":"https://api.github.com/users/corcillo/repos","events_url":"https://api.github.com/users/corcillo/events{/privacy}","received_events_url":"https://api.github.com/users/corcillo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-12T18:44:16Z","updated_at":"2015-08-06T04:15:01Z","closed_at":"2015-08-06T04:15:01Z","body":"I just installed the elm language support package via sublime 2 package control.  Sublime kept crashing when I would highlight the elm code in sublime, and I traced it back to the language support plugin code, specifically in Elm Language Support.py's  get_type(view) function.  \r\n\r\nI was getting this stack trace on the error:\r\n\r\nTraceback (most recent call last):\r\n  File \"./sublime_plugin.py\", line 200, in on_selection_modified\r\n  File \"./sublime_plugin.py\", line 154, in run_timed_function\r\n  File \"./sublime_plugin.py\", line 199, in <lambda>\r\n  File \"./Elm Language Support.py\", line 346, in on_selection_modified\r\n  File \"./Elm Language Support.py\", line 312, in get_type\r\n  File \"./Elm Language Support.py\", line 253, in modules_in_scope\r\n  File \"./Elm Language Support.py\", line 260, in current_module_name\r\nIndexError: list index out of range\r\n\r\nHere is a screenshot of some code that when highlighted caused the crash: \r\n\r\n![screen shot 2015-06-12 at 11 42 04 am](https://cloud.githubusercontent.com/assets/4566203/8137410/17ef00a4-10f8-11e5-9257-5eb64cf23ed7.png)\r\n\r\nAny thoughts?  I temporarily stopped the crashes by commenting out the get_type function, which I'm assuming will cause problems in the future."}}