Closed 10s037 closed 3 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.
I actually fixed it.
@10s037 I have the same issue, how could I do?
@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.
Yes, thank you! It's worked! Sorry I missed your previously commented.
[Enter steps to reproduce:]
Atom: 1.27.1 x64 Electron: 1.7.15 OS: Unknown Windows version Thrown From: title-bar-replacer package 1.8.1
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
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
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.
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.
This pattern repeats.
Quote:
[Enter steps to reproduce:]
Atom: 1.41.0 x64 Electron: 4.2.7 OS: Unknown Windows version Thrown From: title-bar-replacer package 1.8.3
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)
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
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.
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
[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
try to restore default and remove it again. It works for me.
Fixed in v2.0.0.
[Enter steps to reproduce:]
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
Commands
Non-Core Packages