{"action":"closed","issue":{"url":"https://api.github.com/repos/ionide/ionide-fsi/issues/15","repository_url":"https://api.github.com/repos/ionide/ionide-fsi","labels_url":"https://api.github.com/repos/ionide/ionide-fsi/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/ionide/ionide-fsi/issues/15/comments","events_url":"https://api.github.com/repos/ionide/ionide-fsi/issues/15/events","html_url":"https://github.com/ionide/ionide-fsi/issues/15","id":130184537,"number":15,"title":"Uncaught TypeError: Cannot read property 'getSelectedText' of undefined","user":{"login":"mexx","id":378088,"avatar_url":"https://avatars.githubusercontent.com/u/378088?v=3","gravatar_id":"","url":"https://api.github.com/users/mexx","html_url":"https://github.com/mexx","followers_url":"https://api.github.com/users/mexx/followers","following_url":"https://api.github.com/users/mexx/following{/other_user}","gists_url":"https://api.github.com/users/mexx/gists{/gist_id}","starred_url":"https://api.github.com/users/mexx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mexx/subscriptions","organizations_url":"https://api.github.com/users/mexx/orgs","repos_url":"https://api.github.com/users/mexx/repos","events_url":"https://api.github.com/users/mexx/events{/privacy}","received_events_url":"https://api.github.com/users/mexx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ionide/ionide-fsi/labels/no-reproduction","name":"no-reproduction","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-31T21:13:37Z","updated_at":"2016-02-08T03:14:03Z","closed_at":"2016-02-08T03:14:03Z","body":"### Steps to reproduce\r\n\r\n1. Make sure no FSI buffer is open\r\n2. open some FSharp code\r\n3. select some lines\r\n4. press Alt+Enter\r\n\r\n**Atom Version**: 1.4.1\r\n**System**: Microsoft Windows 10 Home\r\n**Thrown From**: [ionide-fsi](https://github.com/Ionide/ionide-fsi) package, v1.0.10\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'getSelectedText' of undefined\r\n\r\n```\r\nAt C:\\Users\\Max\\.atom\\packages\\ionide-fsi\\lib\\fsi.js:264\r\n\r\nTypeError: Cannot read property 'getSelectedText' of undefined\r\n    at FsiService__sendSelection$ (C:\\Users\\Max\\.atom\\packages\\ionide-fsi\\lib\\fsi.js:264:35)\r\n    at atom-text-editor.<anonymous> (C:\\Users\\Max\\.atom\\packages\\ionide-fsi\\lib\\fsi.js:134:14)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\\Users\\Max\\AppData\\Local\\atom\\app-1.4.1\\resources\\app.asar\\src\\command-registry.js:260:29)\r\n    at C:\\Users\\Max\\AppData\\Local\\atom\\app-1.4.1\\resources\\app.asar\\src\\command-registry.js:3:61\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\\Users\\Max\\AppData\\Local\\atom\\app-1.4.1\\resources\\app.asar\\node_modules\\atom-keymap\\lib\\keymap-manager.js:536:16)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\\Users\\Max\\AppData\\Local\\atom\\app-1.4.1\\resources\\app.asar\\node_modules\\atom-keymap\\lib\\keymap-manager.js:359:22)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (C:\\Users\\Max\\AppData\\Local\\atom\\app-1.4.1\\resources\\app.asar\\src\\window-event-handler.js:97:36)\r\n    at HTMLDocument.<anonymous> (C:\\Users\\Max\\AppData\\Local\\atom\\app-1.4.1\\resources\\app.asar\\src\\window-event-handler.js:3:61)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:18.4.0 core:select-all (atom-text-editor.editor.is-focused)\r\n     -0:16.4.0 FSI:Send-Selection (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"metrics\",\r\n      \"exception-reporting\",\r\n      \"feedback\",\r\n      \"language-java\",\r\n      \"language-objective-c\",\r\n      \"package-generator\",\r\n      \"release-notes\",\r\n      \"styleguide\",\r\n      \"update-package-dependencies\",\r\n      \"welcome\"\r\n    ],\r\n    \"openEmptyEditorOnStart\": false,\r\n    \"projectHome\": \"D:\\\\Dev\\\\OpenSource\",\r\n    \"themes\": [\r\n      \"atom-dark-ui\",\r\n      \"solarized-dark-syntax\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-typescript, v8.2.0\r\natom-yeoman, v0.3.15\r\nionide-fake, v1.2.2\r\nionide-fsharp, v1.6.1\r\nionide-fsi, v1.0.10\r\nionide-installer, v1.3.0\r\nionide-paket, v2.2.5\r\nionide-webview, v1.0.3\r\nionide-yeoman, v1.0.2\r\nlinter, v1.11.3\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"}}