onivim / oni

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

Cannot open preferences #2738

Open kheaactua opened 5 years ago

kheaactua commented 5 years ago

Oni Version: v0.3.9 Operating System: Windows 7

Issue: Cannot open preferences <CTRL-,>

Expected behavior: When I press <CTRL-,> (or File->Preferences->Open Oni Config), I expect a window to open with a split, my config.js in one split, and more complete config in the other split.

Actual behavior: Nothing seems to happen, until I press <Enter> where I get the references window, but it's blank. The console in the developer tools reads (all the way from start up):

Files to open: []
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Folders to open: []
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 $env:ONI_CONFIG_FILE: undefined
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Configuration] Adding file: C:\Users\mrussell\AppData\Roaming\oni\config.js
2/index.js:14 config deactivated
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Oni.Start.Config: 150.69189453125ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 $env:ONI_CONFIG_FILE: undefined
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Oni.Start.Plugins.Discover: 18.066162109375ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Configuration] Got update.
2/index.js:14 config deactivated
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Oni.Start.Themes: 39.239990234375ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Notifications] Setting enabled: true
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [OniEditor::enter]
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimEditor::enter]
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [OniEditor::init] Called with filesToOpen: 
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimEditor::init] Called with filesToOpen: 
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimProcessSpawner::startNeovim] Neovim process path: C:\Progra~2\Oni\resources\app\node_modules\oni-neovim-binaries\bin\Neovim\bin\nvim.exe
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimProcessSpawner::startNeovim] Starting Neovim - process: 17464
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Initializing neovim process using transport: stdio
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 NeovimInstance: Neovim started
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_checkAndFixIfBlocked] checking mode...
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_checkAndFixIfBlocked] Not blocking mode.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_attachUI] Neovim version reported as 0.3.1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_attachUI] Using startup options: {"rgb":true,"popupmenu_external":false,"ext_tabline":true,"ext_cmdline":true,"ext_wildmenu":true} and size: 201, 50
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Attach success
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 NeovimInstance.Start.Attach: 49.85791015625ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 NeovimInstance.Start: 485.19384765625ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [SharedNeovimInstance::start] Starting...
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimProcessSpawner::startNeovim] Neovim process path: C:\Progra~2\Oni\resources\app\node_modules\oni-neovim-binaries\bin\Neovim\bin\nvim.exe
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimProcessSpawner::startNeovim] Starting Neovim - process: 14848
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Initializing neovim process using transport: stdio
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 NeovimInstance: Neovim started
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_checkAndFixIfBlocked] checking mode...
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_checkAndFixIfBlocked] Not blocking mode.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_attachUI] Neovim version reported as 0.3.1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [NeovimInstance::_attachUI] Using startup options: {"rgb":true,"popupmenu_external":false,"ext_tabline":true,"ext_cmdline":true,"ext_wildmenu":true} and size: NaN, NaN
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Attach success
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 NeovimInstance.Start.Attach: 6.86083984375ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 NeovimInstance.Start: 417.530029296875ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [SharedNeovimInstance::start] Started successfully!
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Oni.Start.Editors: 1116.94775390625ms
2/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Error deserializing from store: SyntaxError: Unexpected token u in JSON at position 0
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 $env:ONI_CONFIG_FILE: undefined
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Oni.Start.Sidebar: 116.916015625ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activating: oni-plugin-statusbar
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activation successful.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activating: oni-plugin-buffers
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activation successful.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activating: oni-plugin-git
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activation successful.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activating: oni-plugin-typescript
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activation successful.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activating: oni-plugin-markdown-preview
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activation successful.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activating: oni-plugin-prettier
preload.js:2 eval is not available
window.eval.global.eval @ preload.js:2
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activation successful.
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activating: oni-plugin-quickopen
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [PLUGIN] Activation successful.
/index.js:4 config activated
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 $env:ONI_CONFIG_FILE: undefined
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: html - command: C:\Progra~2\Oni\resources\app\node_modules\vscode-html-languageserver-bin\htmlServerMain.js
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: go - command: go-langserver
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: python - command: pyls
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: cpp - command: clangd
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: c - command: clangd
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: css - command: C:\Progra~2\Oni\resources\app\node_modules\vscode-css-languageserver-bin\cssServerMain.js
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: less - command: C:\Progra~2\Oni\resources\app\node_modules\vscode-css-languageserver-bin\cssServerMain.js
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: scss - command: C:\Progra~2\Oni\resources\app\node_modules\vscode-css-languageserver-bin\cssServerMain.js
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: reason - command: C:\Progra~2\Oni\resources\app\node_modules\ocaml-language-server\bin\server\index.js
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: ocaml - command: C:\Progra~2\Oni\resources\app\node_modules\ocaml-language-server\bin\server\index.js
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 [Language Manager - Config] Registering info for language: haskell - command: stack
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: default_colors_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Unhandled command: option_set
t.warn @ /C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Oni.Start.Activate: 909.870849609375ms
/C:/Progra~2/Oni/resources/app/lib/browser/bundle.js:1 Oni.Start: 2769.203125ms
bundle.js:1 Unhandled command: default_colors_set
t.warn @ bundle.js:1
_isDisposed.t.forEach.e @ vendor.bundle.js:824
_handleNotification @ vendor.bundle.js:824
_onNotification @ vendor.bundle.js:824
_neovim.on @ vendor.bundle.js:824
emitTwo @ events.js:126
emit @ events.js:214
_decoder.on.e @ vendor.bundle.js:874
emitOne @ events.js:116
emit @ events.js:211
addChunk @ _stream_readable.js:263
readableAddChunk @ _stream_readable.js:250
Readable.push @ _stream_readable.js:208
Transform.push @ _stream_transform.js:147
DecodeStream.decoder.push @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\decode-stream.js:24
flush @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\flex-buffer.js:57
DecodeStream._transform @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\decode-stream.js:30
Transform._read @ _stream_transform.js:186
Transform._write @ _stream_transform.js:174
doWrite @ _stream_writable.js:387
writeOrBuffer @ _stream_writable.js:373
Writable.write @ _stream_writable.js:290
ondata @ _stream_readable.js:639
emitOne @ events.js:116
emit @ events.js:211
addChunk @ _stream_readable.js:263
readableAddChunk @ _stream_readable.js:250
Readable.push @ _stream_readable.js:208
onread @ net.js:594
bundle.js:1 Unhandled command: option_set
t.warn @ bundle.js:1
_isDisposed.t.forEach.e @ vendor.bundle.js:824
_handleNotification @ vendor.bundle.js:824
_onNotification @ vendor.bundle.js:824
_neovim.on @ vendor.bundle.js:824
emitTwo @ events.js:126
emit @ events.js:214
_decoder.on.e @ vendor.bundle.js:874
emitOne @ events.js:116
emit @ events.js:211
addChunk @ _stream_readable.js:263
readableAddChunk @ _stream_readable.js:250
Readable.push @ _stream_readable.js:208
Transform.push @ _stream_transform.js:147
DecodeStream.decoder.push @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\decode-stream.js:24
flush @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\flex-buffer.js:57
DecodeStream._transform @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\decode-stream.js:30
Transform._read @ _stream_transform.js:186
Transform._write @ _stream_transform.js:174
doWrite @ _stream_writable.js:387
writeOrBuffer @ _stream_writable.js:373
Writable.write @ _stream_writable.js:290
ondata @ _stream_readable.js:639
emitOne @ events.js:116
emit @ events.js:211
addChunk @ _stream_readable.js:263
readableAddChunk @ _stream_readable.js:250
Readable.push @ _stream_readable.js:208
onread @ net.js:594
bundle.js:1 $env:ONI_CONFIG_FILE: undefined
bundle.js:1 [ConfigurationEditManager::editConfiguration]: C:\Users\mrussell\AppData\Roaming\oni\config.js
bundle.js:1 Received notification for - Unhandled Rejection:TypeError: Cannot read property 'setLines' of undefined
Please report this error.
t.error @ bundle.js:1
t @ 22.bundle.js:1
d.onUnhandledRejection.subscribe.e @ 22.bundle.js:1
emitOne @ events.js:116
emit @ events.js:211
dispatch @ vendor.bundle.js:632
window.addEventListener.e @ 22.bundle.js:1
vendor.bundle.js:1278 Uncaught (in promise) TypeError: Cannot read property 'setLines' of undefined
    at f.<anonymous> (vendor.bundle.js:1278)
    at Generator.next (<anonymous>)
    at s (vendor.bundle.js:1278)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188)
(anonymous) @ vendor.bundle.js:1278
s @ vendor.bundle.js:1278
_tickCallback @ internal/process/next_tick.js:188
Promise rejected (async)
c @ vendor.bundle.js:1278
s @ vendor.bundle.js:1278
Promise resolved (async)
c @ vendor.bundle.js:1278
(anonymous) @ vendor.bundle.js:1278
l @ vendor.bundle.js:1278
editConfiguration @ vendor.bundle.js:1278
execute @ 21.bundle.js:1
executeCommand @ vendor.bundle.js:1
_handleKeyCore @ vendor.bundle.js:1
handleKey @ vendor.bundle.js:1
_onRootKeyDown @ vendor.bundle.js:310
onKeyDownCapture @ vendor.bundle.js:310
(anonymous) @ vendor.bundle.js:1286
invokeGuardedCallback @ vendor.bundle.js:1286
invokeGuardedCallbackAndCatchFirstError @ vendor.bundle.js:1286
I @ vendor.bundle.js:1286
M @ vendor.bundle.js:1286
L @ vendor.bundle.js:1286
P @ vendor.bundle.js:1286
N @ vendor.bundle.js:1286
F @ vendor.bundle.js:1286
gn @ vendor.bundle.js:1286
batchedUpdates @ vendor.bundle.js:1286
Be @ vendor.bundle.js:1286
xn @ vendor.bundle.js:1286
interactiveUpdates @ vendor.bundle.js:1286
Sn @ vendor.bundle.js:1286

console.debug("Manually setting a config file")

$env:ONI_CONFIG_FILE="C:\Users\mrussell\AppData\Roaming\oni\config.js"
"C:UsersmrussellAppDataRoamingoniconfig.js"
bundle.js:1 Measure request failed
t.warn @ bundle.js:1
(anonymous) @ vendor.bundle.js:920
s @ vendor.bundle.js:920
_tickCallback @ internal/process/next_tick.js:188
Promise resolved (async)
c @ vendor.bundle.js:920
s @ vendor.bundle.js:920
_tickCallback @ internal/process/next_tick.js:188
Promise resolved (async)
c @ vendor.bundle.js:920
(anonymous) @ vendor.bundle.js:920
E @ vendor.bundle.js:920
_remeasureActiveWindow @ vendor.bundle.js:920
(anonymous) @ vendor.bundle.js:920
s @ vendor.bundle.js:920
_tickCallback @ internal/process/next_tick.js:188
Promise resolved (async)
c @ vendor.bundle.js:920
(anonymous) @ vendor.bundle.js:920
E @ vendor.bundle.js:920
_remeasure @ vendor.bundle.js:920
s.Observable.defer @ vendor.bundle.js:920
t._callFactory @ vendor.bundle.js:1278
t.tryDefer @ vendor.bundle.js:1278
t @ vendor.bundle.js:1278
t._subscribe @ vendor.bundle.js:1278
u._trySubscribe @ bundle.js:1
u.subscribe @ bundle.js:1
t.subscribeToResult @ vendor.bundle.js:632
t._innerSub @ vendor.bundle.js:834
t._next @ vendor.bundle.js:834
t.next @ bundle.js:1
t._next @ vendor.bundle.js:1263
t.next @ bundle.js:1
t._next @ vendor.bundle.js:834
t.next @ bundle.js:1
t._next @ vendor.bundle.js:645
t.next @ bundle.js:1
t.next @ bundle.js:1
t @ vendor.bundle.js:920
(anonymous) @ vendor.bundle.js:920
s @ vendor.bundle.js:920
_tickCallback @ internal/process/next_tick.js:188
Promise resolved (async)
c @ vendor.bundle.js:920
(anonymous) @ vendor.bundle.js:920
E @ vendor.bundle.js:920
n @ vendor.bundle.js:920
emitOne @ events.js:121
emit @ events.js:211
dispatch @ vendor.bundle.js:632
_isDisposed.t.forEach.e @ vendor.bundle.js:824
_handleNotification @ vendor.bundle.js:824
_onNotification @ vendor.bundle.js:824
_neovim.on @ vendor.bundle.js:824
emitTwo @ events.js:126
emit @ events.js:214
_decoder.on.e @ vendor.bundle.js:874
emitOne @ events.js:116
emit @ events.js:211
addChunk @ _stream_readable.js:263
readableAddChunk @ _stream_readable.js:250
Readable.push @ _stream_readable.js:208
Transform.push @ _stream_transform.js:147
DecodeStream.decoder.push @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\decode-stream.js:24
flush @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\flex-buffer.js:57
DecodeStream._transform @ C:\Progra~2\Oni\resources\app\node_modules\msgpack-lite\lib\decode-stream.js:30
Transform._read @ _stream_transform.js:186
Transform._write @ _stream_transform.js:174
doWrite @ _stream_writable.js:387
writeOrBuffer @ _stream_writable.js:373
Writable.write @ _stream_writable.js:290
ondata @ _stream_readable.js:639
emitOne @ events.js:116
emit @ events.js:211
addChunk @ _stream_readable.js:263
readableAddChunk @ _stream_readable.js:250
Readable.push @ _stream_readable.js:208
onread @ net.js:594
bundle.js:1 $env:ONI_CONFIG_FILE: undefined
bundle.js:1 [ConfigurationEditManager::editConfiguration]: C:\Users\mrussell\AppData\Roaming\oni\config.js
bundle.js:1 Received notification for - Unhandled Rejection:TypeError: Cannot read property 'setLines' of undefined
Please report this error.
t.error @ bundle.js:1
t @ 22.bundle.js:1
d.onUnhandledRejection.subscribe.e @ 22.bundle.js:1
emitOne @ events.js:116
emit @ events.js:211
dispatch @ vendor.bundle.js:632
window.addEventListener.e @ 22.bundle.js:1
vendor.bundle.js:1278 Uncaught (in promise) TypeError: Cannot read property 'setLines' of undefined
    at f.<anonymous> (vendor.bundle.js:1278)
    at Generator.next (<anonymous>)
    at s (vendor.bundle.js:1278)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188)

Steps to reproduce: Because I couldn't open my config, I manually edited %APPDATA%\Oni\config.js (and %APPDATA%\Oni\config.tsx) to enable the default config (more or less), i.e.

"use strict";
exports.__esModule = true;
exports.activate = function (oni) {
    oni.input.bind("<c-enter>", function () { return console.log("Control+Enter was pressed"); });
    oni.input.unbind("<c-p>");
    oni.input.bind("<c-k>", "quickOpen.show");
};
exports.deactivate = function (oni) {
    console.log("config deactivated");
};
exports.configuration = {
    "activate": exports.activate,
    //add custom config here, such as
    "ui.colorscheme": "nord",
    "oni.useDefaultConfig": true,
    "oni.bookmarks": [],
    "editor.completions.mode": "native",
    "autoClosingPairs.enabled": false,
    "sidebar.default.open": false,
    // UI customizations
    "ui.animations.enabled": true,
    "ui.fontSmoothing": "auto"
};

I should mention, though I've had this issue for a while, what drove me to this was on startup I'd always get an error toast saying Failed to load init with no error description (and :messages in blank)

kheaactua commented 5 years ago

Actually, I might close this issue, it actually seems that this issue occurs only when I open Oni from the shell (either Powershell or CMD), if I open it from the Start Menu, it works.

I also don't get any JS errors.. This is weird.