{"action":"created","issue":{"url":"https://api.github.com/repos/chinakids/atom-simplified-chinese-menu/issues/6","labels_url":"https://api.github.com/repos/chinakids/atom-simplified-chinese-menu/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/chinakids/atom-simplified-chinese-menu/issues/6/comments","events_url":"https://api.github.com/repos/chinakids/atom-simplified-chinese-menu/issues/6/events","html_url":"https://github.com/chinakids/atom-simplified-chinese-menu/issues/6","id":107662225,"number":6,"title":"Uncaught TypeError: Cannot read property 'uri' of undefined","user":{"login":"shunia","id":779430,"avatar_url":"https://avatars.githubusercontent.com/u/779430?v=3","gravatar_id":"","url":"https://api.github.com/users/shunia","html_url":"https://github.com/shunia","followers_url":"https://api.github.com/users/shunia/followers","following_url":"https://api.github.com/users/shunia/following{/other_user}","gists_url":"https://api.github.com/users/shunia/gists{/gist_id}","starred_url":"https://api.github.com/users/shunia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shunia/subscriptions","organizations_url":"https://api.github.com/users/shunia/orgs","repos_url":"https://api.github.com/users/shunia/repos","events_url":"https://api.github.com/users/shunia/events{/privacy}","received_events_url":"https://api.github.com/users/shunia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-22T07:49:33Z","updated_at":"2015-09-22T11:04:16Z","closed_at":"2015-09-22T07:57:40Z","body":"To reproduce: Right-click tab, then select \"close all tabs\".\r\n\r\nStack trace:\r\n```\r\n/C:/Users/qingfenghuang/.atom/packages/simplified-chinese-menu/lib/main.coffee:32\r\nHide Stack Trace\r\nTypeError: Cannot read property 'uri' of undefined\r\n  at C:\\Users\\qingfenghuang\\.atom\\packages\\simplified-chinese-menu\\lib\\main.coffee:31:16\r\n  at Emitter.module.exports.Emitter.emit (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\event-kit\\lib\\emitter.js:82:11)\r\n  at C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\pane-container.js:320:34\r\n  at Emitter.module.exports.Emitter.emit (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\event-kit\\lib\\emitter.js:82:11)\r\n  at Pane.module.exports.Pane.setActiveItem (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\pane.js:250:22)\r\n  at Pane.module.exports.Pane.removeItem (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\pane.js:392:16)\r\n  at Pane.module.exports.Pane.destroyItem (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\pane.js:466:16)\r\n  at TabBarView.module.exports.TabBarView.closeTab (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\tabs\\lib\\tab-bar-view.js:419:26)\r\n  at TabBarView.module.exports.TabBarView.closeAllTabs (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\tabs\\lib\\tab-bar-view.js:499:28)\r\n  at Object.addElementCommands.tabs:close-all-tabs (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\tabs\\lib\\tab-bar-view.js:115:26)\r\n  at space-pen-ul.commandsWithPropagationStopped.(anonymous function) (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\tabs\\lib\\tab-bar-view.js:86:36)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\command-registry.js:245:29)\r\n  at CommandRegistry.handleCommandEvent (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\command-registry.js:3:61)\r\n  at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\command-registry.js:145:19)\r\n  at [object Object].jQuery.fn.trigger (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\space-pen-extensions.js:64:23)\r\n  at EventEmitter.<anonymous> (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\window-event-handler.js:75:67)\r\n  at emitTwo (events.js:87:13)\r\n  at EventEmitter.emit (events.js:172:7)\r\n  at EventEmitter.ipc.sendSync (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\atom.asar\\renderer\\api\\lib\\ipc.js:21:31)\r\n  at BrowserWindow.RemoteMemberFunction [as emit] (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\atom.asar\\renderer\\api\\lib\\remote.js:140:29)\r\n  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\context-menu-manager.js:170:31)\r\n  at HTMLDocument.<anonymous> (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\window-event-handler.js:157:33)\r\n  at HTMLDocument.handler (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\src\\space-pen-extensions.js:112:34)\r\n  at HTMLDocument.jQuery.event.dispatch (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\space-pen\\vendor\\jquery.js:4681:9)\r\n  at HTMLDocument.elemData.handle (C:\\Users\\qingfenghuang\\AppData\\Local\\atom\\app-1.0.15\\resources\\app.asar\\node_modules\\space-pen\\vendor\\jquery.js:4359:46)\r\n```"},"comment":{"url":"https://api.github.com/repos/chinakids/atom-simplified-chinese-menu/issues/comments/142249964","html_url":"https://github.com/chinakids/atom-simplified-chinese-menu/issues/6#issuecomment-142249964","issue_url":"https://api.github.com/repos/chinakids/atom-simplified-chinese-menu/issues/6","id":142249964,"user":{"login":"shunia","id":779430,"avatar_url":"https://avatars.githubusercontent.com/u/779430?v=3","gravatar_id":"","url":"https://api.github.com/users/shunia","html_url":"https://github.com/shunia","followers_url":"https://api.github.com/users/shunia/followers","following_url":"https://api.github.com/users/shunia/following{/other_user}","gists_url":"https://api.github.com/users/shunia/gists{/gist_id}","starred_url":"https://api.github.com/users/shunia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shunia/subscriptions","organizations_url":"https://api.github.com/users/shunia/orgs","repos_url":"https://api.github.com/users/shunia/repos","events_url":"https://api.github.com/users/shunia/events{/privacy}","received_events_url":"https://api.github.com/users/shunia/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T11:04:16Z","updated_at":"2015-09-22T11:04:16Z","body":"根据Atom里的开发者工具找到的样式定义选择器.修改`~/.atom/styles.less`:\r\n\r\n```\r\n...\r\n// to fix chinese charactor style in settings-view\r\n.settings-view {\r\n\r\n  .setting-description,\r\n  .text,\r\n  .config-menu {\r\n    font-size: 12px;\r\n  }\r\n\r\n  .setting-description,\r\n  .setting-title,\r\n  .text,\r\n  .section,\r\n  .config-menu,\r\n  .btn {\r\n    font-family: 'Microsoft Yahei';\r\n  }\r\n}\r\n```\r\n\r\n之前:\r\n![image](https://cloud.githubusercontent.com/assets/779430/10016876/9e34e4a8-615c-11e5-9b3a-e93388ccb2dc.png)\r\n\r\n修改之后:\r\n![image](https://cloud.githubusercontent.com/assets/779430/10016852/7585f4de-615c-11e5-8910-93a6256d8858.png)\r\n"}}