webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

Codeflow server crashed: Installed Neovim extension

Open 2B1Kenobi opened this issue 3 years ago • 4 comments

Describe the bug

I installed this plugin

Name: VSCode Neovim
Id: asvetliakov.vscode-neovim
Description: VSCode Neovim Integration
Version: 0.9.0
Publisher: asvetliakov
VS Marketplace Link: https://open-vsx.org/vscode/item?itemName=asvetliakov.vscode-neovim

And the server has been crashing ever since. I guess the environment isn't designed to handle this plugin yet.

But another problem surfaced, and it's trying to uninstall the extension before the server crashes. Uninstalling the extension is unable to complete before the server crashes. After multiple attempts of trying to uninstall the extension, I managed to uninstall it by immediately disabling the extension on boot and then uninstalling it.

Link to the blitz that caused the error

https://stackblitz.com/~/github.com/2B1Kenobi/kodego-miniproject2

Steps to reproduce

  1. Install the Neovim extension.
  2. Server will crash.

Expected behavior

Be able to run Vim Mode with the Neovim extension.

Parity with Local

Screenshots

No response

Platform

Version = 1.80.0
Hash = a0abf0747572ea6e64ff1736404cdf76336c29d4
WebContainer = 7a1fe16d

Browser name  = Chrome
Full version  = 117.0.0.0
Major version = 117
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 90821899,
  "usedJSHeapSize": 65536251,
  "jsHeapSizeLimit": 2172649472
}

Additional context

Server bound to /usr/share/codeflow/.ipc-socket Extension host agent listening on /usr/share/codeflow/.ipc-socket

[16:29:10]

[16:29:10] Extension host agent started. [16:29:10] [][9de014ae][ManagementConnection] New connection established. [16:29:10] [][2c4a343e][ExtensionHostConnection] New connection established. [16:29:10] [][2c4a343e][ExtensionHostConnection] <5> Launched Extension Host Process. [16:29:14] Error [ERR_STREAM_PUSH_AFTER_EOF]: stream.push() after EOF at _node_internal (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:36:5410) at new (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:36:4172) at readableAddChunk (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:105:3639) at Readable.push (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:105:2679) at _0x431028.onStreamRead [as onread] (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:158:2341) at Object.emit (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:350:314783) at _0x39a9b7 (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:350:316394) at https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:350:317061 at Array.forEach () at _flushBuffer (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:350:317049) at Map.forEach () at https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:350:315591 at _0x235de8 (https://kodegominiproject2-4dds.w-credentialless.staticblitz.com/blitz.7a1fe16d.js:350:315660) { code: 'ERR_STREAM_PUSH_AFTER_EOF' }

2B1Kenobi avatar Oct 11 '23 08:10 2B1Kenobi

Hi there thanks for reporting this error. I can reproduce and will look into this on monday

samdenty avatar Oct 14 '23 14:10 samdenty

i'll add a Reset data option in the crash screen, since it was hard for you to uninstall the extension.

CleanShot 2023-10-14 at 15 33 49@2x

samdenty avatar Oct 14 '23 14:10 samdenty

Ok so I looked into it, and this extension is unsupported because it uses native binaries specifically nvim. We're currently using openvsx because we didn't manage to setup our own registry yet, but when we do these sorts of extensions will be filtered out.

Until there's an open source build of neovim compiling to wasi (someone did it, but looks like it's not open source), we won't be able to support it. I'd suggest leaving comments on neovim repo for asking for WASI support

samdenty avatar Oct 14 '23 21:10 samdenty

we've also just fixed the issue with the server crashing, now you'll just get a notification instead of an unrecoverable crash screen

CleanShot 2023-10-16 at 17 46 42@2x

samdenty avatar Oct 16 '23 16:10 samdenty