sindrets / atom-title-bar-replacer

Adds an alternative, theme-aware title bar and application menu that is more inline with Atom's UI design.
Other
85 stars 5 forks source link

Uncaught TypeError: Cannot read property 'insertBefore' of undefined #24

Closed 10s037 closed 3 years ago

10s037 commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.23.3 x64 Electron: 1.6.15 OS: Microsoft Windows 10 Home Thrown From: title-bar-replacer package 1.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'insertBefore' of undefined

At C:\Users\10s037\.atom\packages\title-bar-replacer\lib\menu-updater.js:226

TypeError: Cannot read property 'insertBefore' of undefined
    at MenuUpdater.buildAdditions (/packages/title-bar-replacer/lib/menu-updater.js:226:17)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:163:22)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)

Commands

Non-Core Packages

atom-ide-ui 0.7.1 
atom-material-ui 2.1.1 
city-lights-syntax 1.1.6 
file-icons 2.1.15 
ide-java 0.7.0 
ide-python 0.5.0 
isotope-ui 2.8.5 
linter 2.2.0 
script 3.17.3 
teletype 0.5.0 
title-bar-replacer 1.8.1 
tool-bar 1.1.4 
sindrets commented 6 years ago

@10s037 I'm going to need more information about how this error was produced if I'm going to fix this. For anyone dealing with this issue; the problem is often solved by running "Force Rebuild Title Bar" from the command palette.

10s037 commented 6 years ago

I actually fixed it.

leejaen commented 6 years ago

@10s037 I have the same issue, how could I do?

sindrets commented 6 years ago

@leejaen Like I have previously stated, running "Force Rebuild Title Bar" from the command palette, usually resolves the problem. But if anyone can find a reliable way to reproduce this error, it would greatly help me debug this.

leejaen commented 6 years ago

Yes, thank you! It's worked! Sorry I missed your previously commented.

DotWho commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.27.1 x64 Electron: 1.7.15 OS: Unknown Windows version Thrown From: title-bar-replacer package 1.8.1

Stack Trace

Uncaught TypeError: Cannot read property 'insertBefore' of undefined

At C:\Users\DotWh\.atom\packages\title-bar-replacer\lib\title-bar-replacer-view.js:359

TypeError: Cannot read property 'insertBefore' of undefined
    at TitleBarReplacerView.deserializeLabel (/packages/title-bar-replacer/lib/title-bar-replacer-view.js:359:19)
    at MenuUpdater.buildAdditions (/packages/title-bar-replacer/lib/menu-updater.js:210:39)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:163:22)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.run (/packages/title-bar-replacer/lib/menu-updater.js:33:14)
    at TitleBarReplacerView.updateMenu (/packages/title-bar-replacer/lib/title-bar-replacer-view.js:372:26)
    at /packages/title-bar-replacer/lib/title-bar-replacer.js:73:45

Commands

Non-Core Packages

activate-power-mode 2.7.0 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
atom-minify 0.8.0 
atom-ternjs 0.18.3 
autoclose-html 0.23.0 
busy-signal 1.4.3 
city-lights-icons 1.1.1 
city-lights-syntax 1.1.8 
city-lights-ui 1.3.3 
double-tag 1.5.0 
emmet 2.4.3 
file-icons 2.1.21 
highlight-selected 0.13.1 
intentions 1.1.5 
language-vue 0.23.1 
linter 2.2.0 
linter-ui-default 1.7.1 
minimap 4.29.8 
minimap-bookmarks 0.4.2 
minimap-cursorline 0.2.0 
pigments 0.40.2 
platformio-ide-terminal 2.8.1 
prettier-atom 0.53.0 
simplified-chinese-menu 5.3.5 
title-bar-replacer 1.8.1 
vuejs2-snippets 1.1.0 
MatthijsBlom commented 6 years ago

The following happens reliably in the frameless version, but not in the original.

Whenever I open a Haskell file (or start Atom with a Haskell file already open), I am greeted with the following three error messages and warning.

Failed to activate the autocomplete-haskell package **Atom**: 1.27.2 x64 **Electron**: 1.7.15 **OS**: Microsoft Windows 10 Home **Thrown From**: [autocomplete-haskell](https://github.com/atom-haskell/autocomplete-haskell) package 1.0.1 ### Stack Trace Failed to activate the autocomplete-haskell package ``` At Cannot read property 'insertBefore' of undefined TypeError: Cannot read property 'insertBefore' of undefined at TitleBarReplacerView.deserializeLabel (/packages/title-bar-replacer/lib/title-bar-replacer-view.js:359:19) at MenuUpdater.buildAdditions (/packages/title-bar-replacer/lib/menu-updater.js:210:39) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:163:22) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) ``` ### Commands ``` ``` ### Non-Core Packages ``` atom-beautify 0.32.5 atom-clock 0.1.16 atom-html-preview 0.2.5 atom-latex 0.8.4 autocomplete-haskell 1.0.1 elm-format 3.0.0 file-icons 2.1.21 haskell-ghc-mod 2.2.3 ide-haskell 2.3.1 ide-haskell-cabal 2.2.0 ide-haskell-hoogle 0.1.2 ide-haskell-repl 0.8.0 language-batchfile 0.7.5 language-elm 1.5.0 language-haskell 1.17.8 language-latex 1.1.1 language-pfm 0.82.0 language-restructuredtext 1.1.2 language-svg 0.9.2 linter 2.2.0 linter-chktex 1.3.1 linter-markdown 5.2.2 linter-mypy 2.6.2 linter-pylint 2.1.1 linter-shellcheck 1.4.7 linter-tidy 2.3.1 linter-ui-default 1.7.1 MagicPython 1.0.12 markdown-preview-plus 3.3.1 pdf-view 0.70.0 python-autopep8 0.1.4 python-indent 1.1.5 release-notes 0.53.0 sort-lines 0.18.0 statusbar-battery 0.11.3 svg-preview 0.12.1 teletype 0.13.3 tidy-markdown 3.0.1 title-bar-replacer 1.8.1 toggle-quotes 1.1.0 ```
Failed to activate the ide-haskell package **Atom**: 1.27.2 x64 **Electron**: 1.7.15 **OS**: Microsoft Windows 10 Home **Thrown From**: [ide-haskell](https://github.com/atom-haskell/ide-haskell) package 2.3.1 ### Stack Trace Failed to activate the ide-haskell package ``` At Cannot read property 'insertBefore' of undefined TypeError: Cannot read property 'insertBefore' of undefined at TitleBarReplacerView.deserializeLabel (/packages/title-bar-replacer/lib/title-bar-replacer-view.js:359:19) at MenuUpdater.buildAdditions (/packages/title-bar-replacer/lib/menu-updater.js:210:39) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:163:22) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) ``` ### Commands ``` -0:05.6.0 core:paste (input.hidden-input) ``` ### Non-Core Packages ``` atom-beautify 0.32.5 atom-clock 0.1.16 atom-html-preview 0.2.5 atom-latex 0.8.4 autocomplete-haskell 1.0.1 elm-format 3.0.0 file-icons 2.1.21 haskell-ghc-mod 2.2.3 ide-haskell 2.3.1 ide-haskell-cabal 2.2.0 ide-haskell-hoogle 0.1.2 ide-haskell-repl 0.8.0 language-batchfile 0.7.5 language-elm 1.5.0 language-haskell 1.17.8 language-latex 1.1.1 language-pfm 0.82.0 language-restructuredtext 1.1.2 language-svg 0.9.2 linter 2.2.0 linter-chktex 1.3.1 linter-markdown 5.2.2 linter-mypy 2.6.2 linter-pylint 2.1.1 linter-shellcheck 1.4.7 linter-tidy 2.3.1 linter-ui-default 1.7.1 MagicPython 1.0.12 markdown-preview-plus 3.3.1 pdf-view 0.70.0 python-autopep8 0.1.4 python-indent 1.1.5 release-notes 0.53.0 sort-lines 0.18.0 statusbar-battery 0.11.3 svg-preview 0.12.1 teletype 0.13.3 tidy-markdown 3.0.1 title-bar-replacer 1.8.1 toggle-quotes 1.1.0 ```
Failed to activate the ide-haskell-repl package **Atom**: 1.27.2 x64 **Electron**: 1.7.15 **OS**: Microsoft Windows 10 Home **Thrown From**: [ide-haskell-repl](https://github.com/atom-haskell/ide-haskell-repl) package 0.8.0 ### Stack Trace Failed to activate the ide-haskell-repl package ``` At Cannot read property 'insertBefore' of undefined TypeError: Cannot read property 'insertBefore' of undefined at TitleBarReplacerView.deserializeLabel (/packages/title-bar-replacer/lib/title-bar-replacer-view.js:359:19) at MenuUpdater.buildAdditions (/packages/title-bar-replacer/lib/menu-updater.js:210:39) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:163:22) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14) ``` ### Commands ``` 2x -0:10.6.0 core:paste (input.hidden-input) ``` ### Non-Core Packages ``` atom-beautify 0.32.5 atom-clock 0.1.16 atom-html-preview 0.2.5 atom-latex 0.8.4 autocomplete-haskell 1.0.1 elm-format 3.0.0 file-icons 2.1.21 haskell-ghc-mod 2.2.3 ide-haskell 2.3.1 ide-haskell-cabal 2.2.0 ide-haskell-hoogle 0.1.2 ide-haskell-repl 0.8.0 language-batchfile 0.7.5 language-elm 1.5.0 language-haskell 1.17.8 language-latex 1.1.1 language-pfm 0.82.0 language-restructuredtext 1.1.2 language-svg 0.9.2 linter 2.2.0 linter-chktex 1.3.1 linter-markdown 5.2.2 linter-mypy 2.6.2 linter-pylint 2.1.1 linter-shellcheck 1.4.7 linter-tidy 2.3.1 linter-ui-default 1.7.1 MagicPython 1.0.12 markdown-preview-plus 3.3.1 pdf-view 0.70.0 python-autopep8 0.1.4 python-indent 1.1.5 release-notes 0.53.0 sort-lines 0.18.0 statusbar-battery 0.11.3 svg-preview 0.12.1 teletype 0.13.3 tidy-markdown 3.0.1 title-bar-replacer 1.8.1 toggle-quotes 1.1.0 ```

Ide-Haskell needs backends that provide most of functionality. Please refer to README for details

If I then close all Haskell files, run Force Rebuild Title Bar, and again open a Haskell file, the following error occurs.

Failed to activate the ide-haskell package **Atom**: 1.27.2 x64 **Electron**: 1.7.15 **OS**: Microsoft Windows 10 Home **Thrown From**: [ide-haskell](https://github.com/atom-haskell/ide-haskell) package 2.3.1 ### Stack Trace Failed to activate the ide-haskell package ``` At Results already connected! Error: Results already connected! at OutputPanel.connectResults (/packages/ide-haskell/lib/output-panel/index.js:47:19) at /packages/ide-haskell/lib/plugin-manager.js:24:26) at Object.activate (/packages/ide-haskell/lib/ide-haskell.js:32:21) at Package.activateNow (~/AppData/Local/atom/app-1.27.2/resources/app/src/package.js:230:33) at activationHookSubscriptions.add.packageManager.onDidTriggerActivationHook (~/AppData/Local/atom/app-1.27.2/resources/app/src/package.js:901:81) at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.27.2/resources/app/node_modules/event-kit/lib/emitter.js:27:20) at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.27.2/resources/app/node_modules/event-kit/lib/emitter.js:156:34) at PackageManager.triggerActivationHook (~/AppData/Local/atom/app-1.27.2/resources/app/src/package-manager.js:732:40) at Workspace.handleGrammarUsed (~/AppData/Local/atom/app-1.27.2/resources/app/src/workspace.js:1288:38) at TextEditor.observeGrammar (~/AppData/Local/atom/app-1.27.2/resources/app/src/text-editor.js:752:11) at onDidAddPaneItem (~/AppData/Local/atom/app-1.27.2/resources/app/src/workspace.js:515:22) at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.27.2/resources/app/node_modules/event-kit/lib/emitter.js:27:20) at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.27.2/resources/app/node_modules/event-kit/lib/emitter.js:156:34) at PaneContainer.didAddPaneItem (~/AppData/Local/atom/app-1.27.2/resources/app/src/pane-container.js:271:24) at Pane.addItem (~/AppData/Local/atom/app-1.27.2/resources/app/src/pane.js:640:48) at Pane.activateItem (~/AppData/Local/atom/app-1.27.2/resources/app/src/pane.js:582:18) at Workspace.open (~/AppData/Local/atom/app-1.27.2/resources/app/src/workspace.js:1055:20) at ``` ### Commands ``` -0:26.1.0 command-palette:toggle (div.panels-item) -0:22.4.0 core:confirm (input.hidden-input) -0:22.4.0 title-bar-replacer:force-rebuild-title-bar (div.panels-item) ``` ### Non-Core Packages ``` atom-beautify 0.32.5 atom-clock 0.1.16 atom-html-preview 0.2.5 atom-latex 0.8.4 autocomplete-haskell 1.0.1 elm-format 3.0.0 file-icons 2.1.21 haskell-ghc-mod 2.2.3 ide-haskell 2.3.1 ide-haskell-cabal 2.2.0 ide-haskell-hoogle 0.1.2 ide-haskell-repl 0.8.0 language-batchfile 0.7.5 language-elm 1.5.0 language-haskell 1.17.8 language-latex 1.1.1 language-pfm 0.82.0 language-restructuredtext 1.1.2 language-svg 0.9.2 linter 2.2.0 linter-chktex 1.3.1 linter-markdown 5.2.2 linter-mypy 2.6.2 linter-pylint 2.1.1 linter-shellcheck 1.4.7 linter-tidy 2.3.1 linter-ui-default 1.7.1 MagicPython 1.0.12 markdown-preview-plus 3.3.1 pdf-view 0.70.0 python-autopep8 0.1.4 python-indent 1.1.5 release-notes 0.53.0 sort-lines 0.18.0 statusbar-battery 0.11.3 svg-preview 0.12.1 teletype 0.13.3 tidy-markdown 3.0.1 title-bar-replacer 1.8.1 toggle-quotes 1.1.0 ```

This pattern repeats.

ShapeGroup commented 5 years ago

Quote:

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.41.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: title-bar-replacer package 1.8.3

Stack Trace

Uncaught TypeError: Cannot read property 'insertBefore' of undefined

At C:\Users\Alberto\.atom\packages\title-bar-replacer\lib\title-bar-replacer-view.js:359

TypeError: Cannot read property 'insertBefore' of undefined
    at TitleBarReplacerView.deserializeLabel (/packages/title-bar-replacer/lib/title-bar-replacer-view.js:359:20)
    at MenuUpdater.buildAdditions (/packages/title-bar-replacer/lib/menu-updater.js:210:39)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:163:22)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (/packages/title-bar-replacer/lib/menu-updater.js:171:14)

Commands

Non-Core Packages

activate-power-mode 2.7.0 
antialiased 0.1.0 
apex-adapt-dark-ui 0.4.2 
atom-npm 0.3.1 
atom-webbrowser 2.1.4 
atom-windows-titlebar 0.14.0 
autoclose-html 0.23.0 
autocomplete-unity 0.1.3 
autoprefixer 4.1.0 
block-comment-lines 0.2.4 
color-picker 2.3.0 
de-workbench 0.1.17 
dynamicengine-debugger 0.10.8 
file-icons 2.1.36 
file-path-picker 1.0.0 
firacode 0.3.0 
highlight-selected 0.16.0 
ink 0.11.6 
minimap 4.29.9 
npm-dependency-updater 0.0.3 
npm-install 4.0.4 
open-html-in-browser 0.2.1 
platformio-ide-terminal 2.10.0 
save-workspace 0.5.0 
title-bar-replacer 1.8.3 
tone-syntax 0.2.2 
tool-bar 1.2.0 
sigmasoldi3r commented 4 years ago

Also ran into this issue (#57 ) so far I can tell that the error appeared after removing linter + dependendencies or installing atom-ide package, so maybe is a conflict between some of those.

Edit

Specifically, the packages

atom-ide-ui 0.13.0 
atom-typescript 13.4.0 

Were re-enabled (They were already installed) and

ide-cpp 0.1.0 

was installed.

sigmasoldi3r commented 4 years ago

Another update! Today I've opened a new folder in atom and the error is not appearing now. So it might be related to the session?

Edit: The original title bar shows again also

Andy9822 commented 4 years ago

[Solved]

Edit: For some reason when I renamed the app-FRAMELESS.asar for the first time something failed and it corrupted everything (I really don't know what happened). But the solution was to reinstall everything and now when I renamed app-FRAMELESS.asar everything was just fine.

So I will leave this comment here just in case someone runs out with the same problem eventually.

Original Message:

I've just got the same problem you mentioned

C:\Users\Andy\.atom\packages\title-bar-replacer\lib\title-bar-replacer-view.js:359
Hide Stack Trace
TypeError: Cannot read property 'insertBefore' of undefined
    at TitleBarReplacerView.deserializeLabel (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\title-bar-replacer-view.js:359:20)
    at MenuUpdater.buildAdditions (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:210:39)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.traverseTemplate (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:171:14)
    at MenuUpdater.run (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\menu-updater.js:33:14)
    at TitleBarReplacerView.updateMenu (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\title-bar-replacer-view.js:372:26)
    at MenuManager.extendUpdate [as update] (C:\Users\Andy\.atom\packages\title-bar-replacer\lib\title-bar-replacer.js:81:49)
    at Function.localize (C:\Users\Andy\.atom\packages\atom-i18n\lib\menu.js:6:22)
    at I18N.customMenuI18n (C:\Users\Andy\.atom\packages\atom-i18n\lib\main.js:55:12)

I just installed Atom on Windows today and tryied the title-bar-replace package and got this problem. I read what@sindrets said about Force Rebuild but nothing, still not working

garyyeap commented 4 years ago

try to restore default and remove it again. It works for me.

sindrets commented 3 years ago

Fixed in v2.0.0.