chinakids / atom-simplified-chinese-menu

Atom 的简体中文汉化扩展,目前最全的汉化包。包含菜单汉化、右键菜单汉化以及设置汉化
MIT License
1.33k stars 141 forks source link

Uncaught TypeError: Cannot read property 'querySelectorAll' of null #9

Closed chenming219 closed 8 years ago

chenming219 commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.2.4 System: Debian GNU/Linux Thrown From: simplified-chinese-menu package, v3.4.2

Stack Trace

Uncaught TypeError: Cannot read property 'querySelectorAll' of null

At /home/chenming/.atom/packages/simplified-chinese-menu/tools/settings.coffee:109

TypeError: Cannot read property 'querySelectorAll' of null
    at getTextMatchElement (/home/chenming/.atom/packages/simplified-chinese-menu/tools/settings.coffee:109:15)
    at applySectionHeadings (/home/chenming/.atom/packages/simplified-chinese-menu/tools/settings.coffee:85:10)
    at HTMLAnchorElement.applyInstallPanelOnSwitch (/home/chenming/.atom/packages/simplified-chinese-menu/tools/settings.coffee:67:3)
    at Object.Settings.init (/home/chenming/.atom/packages/simplified-chinese-menu/tools/settings.coffee:171:16)
    at ChineseSetting.delaySettings (/home/chenming/.atom/packages/simplified-chinese-menu/lib/main.coffee:64:14)

Commands

     -1:35.9.0 vim-mode:insert-below-with-newline (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
 16x -1:31.8.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode.autocomplete-active)
     -1:10.5.0 core:move-down (atom-text-editor.editor.vim-mode.is-focused.insert-mode.autocomplete-active)
     -1:08.8.0 autocomplete-plus:confirm (atom-text-editor.editor.vim-mode.is-focused.insert-mode.autocomplete-active)
 20x -1:05.4.0 core:undo (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:56.9.0 core:save (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:47.8.0 welcome:show (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -0:41.3.0 application:open (atom-workspace.workspace.scrollbars-visible-always.theme-atom-light-syntax.theme-atom-light-ui)
     -0:23.9.0 application:add-project-folder (atom-pane.pane.active)

Config

{
  "core": {
    "themes": [
      "atom-light-ui",
      "atom-light-syntax"
    ]
  }
}

Installed Packages

# User
atom-autocomplete-php, v0.18.1
atom-beautify, v0.28.19
autocomplete-ctags, v0.3.3
autocomplete-python, v0.10.7
simplified-chinese-menu, v3.4.2
vim-mode, v0.63.0

# Dev
No dev packages