Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Uncaught TypeError: Cannot read property 'style' of null #16600

Closed
rayhendricks opened this issue Jan 20, 2018 · 7 comments
Closed

Uncaught TypeError: Cannot read property 'style' of null #16600

rayhendricks opened this issue Jan 20, 2018 · 7 comments

Comments

@rayhendricks
Copy link

rayhendricks commented Jan 20, 2018

  1. Open Atom in safe mode from cmd.exe using atom --safe
  2. Open a new untitled buffer and paste the following contents:
<html>
</html>
  1. Change the language grammar to HTML
  2. Place the cursor after the h on the first line
  3. Press Ctrl+Space to run the command autocomplete-plus:activate
  4. Press Ctrl-Shift-P to run the command command-palette:toggle
  5. Search for the autocomplete-plus:navigate-to-description-more-link command
  6. Run this command from the command palette

Expected: To navigate to the description more link. Or nothing to happen because opening the Command Palette closes autocomplete-plus.

Actual: This exception is thrown.

Gif of reproduction:

style exception

Atom: 1.23.3 x64
Electron: 1.6.15
OS: Mac OS X 10.13.2
Thrown From: Atom Core

Stack Trace

Uncaught TypeError: Cannot read property 'style' of null

At /Applications/Atom.app/Contents/Resources/app/node_modules/autocomplete-plus/lib/autocomplete-manager.js:241

TypeError: Cannot read property 'style' of null
    at HTMLElement.autocomplete-plus:navigate-to-description-more-link (/Applications/Atom.app/Contents/Resources/app/node_modules/autocomplete-plus/lib/autocomplete-manager.js:241:39)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:388:36)
    at Object.didConfirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:143:35)
    at SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/node_modules/atom-select-list/src/select-list-view.js:327:26)
    at HTMLDivElement.core:confirm (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/node_modules/atom-select-list/src/select-list-view.js:84:20)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:388:36)
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
    at WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:108:40)

Commands

     -9:39.9.0 application:add-project-folder (input.hidden-input)
     -1:53.9.0 application:open (input.hidden-input)
     -1:21.4.0 command-palette:toggle (input.hidden-input)
     -0:04.9.0 core:move-down (input.hidden-input)
     -0:03.9.0 core:confirm (input.hidden-input)
     -0:03.9.0 autocomplete-plus:navigate-to-description-more-link (input.hidden-input)

Non-Core Packages

atom-soda-dark-ui 1.1.0 
monokai 0.24.0 
@lee-dohm
Copy link
Contributor

Can you give us any more information as to what you were doing when this occurred?

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Jan 22, 2018

  1. Open Atom in safe mode from cmd.exe using atom --safe
  2. Open a new untitled buffer and paste the following contents:
<html>
</html>
  1. Change the language grammar to HTML
  2. Place the cursor after the h on the first line
  3. Press Ctrl+Space to run the command autocomplete-plus:activate
  4. Press Ctrl-Shift-P to run the command command-palette:toggle
  5. Search for the autocomplete-plus:navigate-to-description-more-link command
  6. Run this command from the command palette

Expected: To navigate to the description more link. Or nothing to happen because opening the Command Palette closes autocomplete-plus.

Actual: This exception is thrown.

Gif of reproduction:

style exception

Version Information

Atom: 1.25.0-dev-3d8902d x64
Electron: 1.7.10
OS: Microsoft Windows 7 Professional

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Jan 22, 2018

I edited the body of the issue to include the steps to reproduce from #16600 (comment).

@victorandcode
Copy link

Hello, @Ben3eeE I think this should solve the problem atom/autocomplete-plus#953. It looks like the problem was caused by that plugin. @lee-dohm the reference to this issue is in that pull-reques as well.

Demo
video

@victorandcode
Copy link

cc: @lee-dohm

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Feb 26, 2018

Closed via atom/autocomplete-plus#953

@Ben3eeE Ben3eeE closed this as completed Feb 26, 2018
@lock
Copy link

lock bot commented Aug 25, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Aug 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants