OmniSharp / atom-json-schema

Json schema intellisense and validation for Atom
MIT License
43 stars 15 forks source link

Uncaught TypeError: Cannot read property 'null' of undefined #21

Open MarchLiu opened 8 years ago

MarchLiu commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.8.0 System: Mac OS X 10.11 Thrown From: json-schema package, v0.1.15

Stack Trace

Uncaught TypeError: Cannot read property 'null' of undefined

At /Users/march/.atom/packages/json-schema/node_modules/react/lib/ReactMount.js:636

TypeError: Cannot read property 'null' of undefined
  at Object.ReactMount.findReactContainerForID (/Users/march/.atom/packages/json-schema/node_modules/react/lib/ReactMount.js:636:50)
  at findParent (/Users/march/.atom/packages/json-schema/node_modules/react/lib/ReactEventListener.js:39:30)
  at handleTopLevelImpl (/Users/march/.atom/packages/json-schema/node_modules/react/lib/ReactEventListener.js:74:16)
  at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Users/march/.atom/packages/json-schema/node_modules/react/lib/Transaction.js:134:20)
  at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Users/march/.atom/packages/json-schema/node_modules/react/lib/ReactDefaultBatchingStrategy.js:66:19)
  at Object.batchedUpdates (/Users/march/.atom/packages/json-schema/node_modules/react/lib/ReactUpdates.js:110:20)
  at ReactEventListener.dispatchEvent (/Users/march/.atom/packages/json-schema/node_modules/react/lib/ReactEventListener.js:174:20)

Commands

     -0:17 settings-view:check-for-package-updates (atom-workspace.workspace.theme-solarized-light-syntax.theme-atom-light-ui.atomic-emacs.scrollbars-visible-when-scrolling)

Config

{
  "core": {
    "audioBeep": false,
    "destroyEmptyPanes": false,
    "disabledPackages": [
      "clippy",
      "gocode",
      "emacs-center-screen",
      "Tern",
      "policeman",
      "policeman",
      "jenkins-dashboard",
      "SublimeSelect",
      "atom-debugger",
      "dash-on-cursor",
      "atom-template-engine",
      "nippo",
      "go-playground",
      "godef",
      "git-blame-plus",
      "atom-sharp",
      "git-grep",
      "gradle-manager",
      "linter-scalac",
      "clojure-eval-in-repl",
      "linter-lein",
      "linter-clojure"
    ],
    "excludeVcsIgnoredPaths": false,
    "themes": [
      "atom-light-ui",
      "solarized-light-syntax"
    ]
  }
}

Installed Packages

# User
angularjs, v0.3.4
atom-gdb, v0.4.0
atom-math, v0.0.9
atom-mocha, v0.0.6
atom-python-debugger, v0.3.4
atom-shortcuts, v0.0.2
atom-slime, v2.3.3
atom-yeoman, v0.3.15
atomatigit, v1.5.5
atomic-emacs, v0.9.1
autocomplete-go, v1.1.0
autocomplete-python, v1.7.5
bottom-dock, v0.4.4
build, v0.64.0
build-gradle, v0.6.0
build-sbt, v0.5.0
builder-go, v1.0.0
busy, v0.5.0
color-picker, v2.1.1
command-logger, v0.23.0
editor-stats, v0.17.0
environment, v1.2.0
git-log, v0.4.1
go-config, v1.1.4
go-get, v1.0.3
go-plus, v4.1.0
go-runtime, v0.2.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
gulp-manager, v0.2.19
hashrocket, v0.4.10
haskell-grammar, v0.4.0
haskell-unicode-snippets, v0.1.1
html2haml, v0.10.0
ide-haskell-cabal, v1.4.0
ink, v0.4.4
ionide-fsharp, v1.9.1
java-importer, v1.4.1
javascript-standard-snippets, v0.2.1
json-schema, v0.1.15
jsonlint, v1.1.2
jsonpp, v0.1.1
language-diff, v0.4.0
language-docker, v1.1.6
language-dockerfile, v0.1.0
language-dot, v1.6.0
language-fsharp, v0.8.4
language-gradle, v0.0.3
language-groovy, v0.6.0
language-groovy-cloned-from-java, v0.3.0
language-haml, v0.24.0
language-haskell, v1.7.17
language-ipynb, v1.3.0
language-javascript-jsx, v0.3.7
language-javascript-semantic, v0.2.1
language-lisp, v0.2.0
language-prolog, v0.10.0
language-rust, v0.4.6
language-scala, v1.1.6
language-scala-plus, v1.2.2
language-swig, v0.1.4
less-than-slash, v0.13.0
line-diff-details, v1.3.5
linter, v1.11.5
linter-checkstyle, v1.2.0
linter-clang, v3.4.4
linter-golinter, v1.2.0
linter-hlint, v0.4.3
linter-javac, v1.9.4
linter-liquid, v0.1.0
linter-manager, v0.2.12
linter-rust, v0.4.6
lisp-paredit, v0.5.3
merge-conflicts, v1.4.4
minimap, v4.24.4
minimap-git-diff, v4.3.1
navigator-godef, v1.0.3
nuclide-debugger-lldb, v0.0.35
package-atom-snippets, v0.1.11
pigments, v0.29.2
pretty-json, v1.4.1
project-environment, v1.0.4
proto-repl, v1.1.11
proto-repl-charts, v0.3.2
python-isort, v0.0.7
python-jedi, v0.3.6
racer, v0.20.0
react, v0.15.0
react-snippets, v0.4.2
refactor, v0.6.0
rust-api-docs-helper, v0.5.1
scala-format, v0.1.8
script-runner, v1.8.4
source-preview-react, v0.2.0
terminal-status, v1.6.8
tester-go, v1.0.4
tree-view-git-status, v0.2.3
tualo-git-context, v0.6.17

# Dev
No dev packages
wmeints commented 8 years ago

+1 for me. Encountering the same problem. It makes my Atom editor instance unusable as it keeps throwing the same error over and over again. It does so every few seconds, really annoying.

asbjornu commented 8 years ago

Ran into this after updating to Atom 1.8 on OS X 10.11.5. It seems like disabling the atom-json-schema package and restarting Atom helped, but I'm not sure what functionality I'm missing with that package disabled.

broadstone commented 8 years ago

I got this error while having a json file open then opening a .h file using shell on Linux/Ubuntu. By command line I mean issuing "atom ./file.h" from a Terminal.