onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.34k stars 298 forks source link

Many errors and warnings in devtools console #1261

Open MikaAK opened 6 years ago

MikaAK commented 6 years ago

I'm seeing many errors and warnings in the console while typing and jumping around files. Might be something in my config?

(these errors are a pain to type. for some reason I can't copy from the console directly 😢 )

Version: 0.2.20

Oni Config

module.exports = {
   activate,
   deactivate,
  "editor.maximizeScreenOnStart": true,
  "oni.useDefaultConfig": false,
  "oni.loadInitVim": true,
  "ui.fontSmoothing": "subpixel-antialiased",
  "ui.colorscheme": "molokai",
  "editor.fontFamily": "Hack",
  "ui.fontFamily": "Hack",
  "language.javascript.languageServer.argument": ["--no-port-file"]
}

Errors

Warning: Each child in an array or iterator should have a unique "key" prop.

Check the render method of `s`. See https://fb.me/react-warning-keys for more information
      in div  (created by s)
Warning: Encountered two children with the same key, `2red`.
Keys should be unique so that components maintain their
identity across updates. Non-unique keys may cause children to be 
duplicated and/or omitted - the behavior is unsupported and 
could change in a future version
   in div (created by styled.div)

Warnings

Error: No content available.
  at TypeScriptServerHost._parseResponse (TypeScriptServerHost.ts:292)
  at Interface.<anonymous> (TypeScriptServerHost.ts:75)
  at emitOne (events.js:115)
bryphe commented 6 years ago

Thanks for creating the issue, @MikaAK !

It seems like these keep popping back up. As part of fixing this, we should check in our CiTests and verify that no errors / warnings come up - that should at least keep the most common ones at bay.

badosu commented 6 years ago

@MikaAK @bryphe The lack of specificity makes this issue hard to track, I suggest we close it and address each occasion separately.