Skip to content

Invoking the terminal sometimes yields an error "Cannot set property 'innerHTML' of undefined" #7357

Closed

Description

@JasonKleban
  • VSCode Version: 1.2.0-insider
  • OS Version: Windows 10
  • Git Bash Shell (relevant?)

Steps to Reproduce:

This only happens sometimes and is perhaps secondary to #7345?

  1. Ctrl+~ to invoke the integrated terminal
  2. See that the terminal is invoked but blank and that this error popup is displayed:

image

Activity

  1. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    I just hit this on Linux, here's a trace:

    //usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:87 Cannot set property 'innerHTML' of undefined: TypeError: Cannot set property 'innerHTML' of undefined
        at Terminal.refresh (/usr/share/code-insiders/resources/app/node_modules/term.js/src/term.js:1704:32)
        at t.setTheme (file:////usr/share/code-insiders/resources/app/out/vs/workbench/parts/terminal/electron-browser/terminalPanel.js:4:4880)
        at t.updateTheme (file:////usr/share/code-insiders/resources/app/out/vs/workbench/parts/terminal/electron-browser/terminalPanel.js:4:8268)
        at t.setVisible (file:////usr/share/code-insiders/resources/app/out/vs/workbench/parts/terminal/electron-browser/terminalPanel.js:4:7538)
        at file:////usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:89:7842
        at __dirname.undefined.t.Class.define.then (file:////usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:23:19425)
        at t.showComposite (file:////usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:89:7037)
        at file:////usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:89:5287
        at __dirname.undefined.t.Class.define.then (file:////usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:23:19425)
        at file:////usr/share/code-insiders/resources/app/out/vs/workbench/workbench.main.js:89:5042
    
  2. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    This looks like an upstream but with term.js, I'll diff the code with what we're moving towards (xterm.js) and see if the bug is present in that too.

  3. added
    bug
    upstream
    terminal
    on Jun 7, 2016
  4. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    I think I found the issue, there's a workaround and also a likely upstream fix to prevent this in the future. xtermjs/xterm.js#86

  5. added this to the June 2016 milestone on Jun 7, 2016
  6. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    This will be fixed when #7288 is merged as it's no longer necessary to call refresh to update the theme.

  7. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugterminalupstream

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions