You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening files in Viper IDE that are (too) large, the Viper server throws an exception and this breaks Viper IDE so that it gives up permanently and a VS code restart is required.
The error that I'm getting is:
node:events:368
throw er; // Unhandled 'error' event
^
Error: Parser cannot parse input: expected a value
at c._processBuffer (~/.vscode/extensions/viper-admin.viper-2.4.2/server/index.js:2:625603)
at c._transformBuffer (~/.vscode/extensions/viper-admin.viper-2.4.2/server/index.js:2:637101)
at c._transform (~/.vscode/extensions/viper-admin.viper-2.4.2/server/index.js:2:637011)
at c.Transform._write (node:internal/streams/transform:184:23)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at c.Writable.write (node:internal/streams/writable:334:10)
at h._write (~/.vscode/extensions/viper-admin.viper-2.4.2/server/index.js:2:620610)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
Emitted 'error' event on h instance at:
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
[Info - 12:38:07 PM] Connection to server got closed. Server will restart.
~/.vscode/extensions/viper-admin.viper-2.4.2/server/index.js:2
(()=>{var e={8327:(e,t,a)=>{"use strict";function r(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&"version"in process?`Node.js/${process.version.substr(1)}
// -- SNIP -- this part is just the minified `index.js` inlined in the error message
[Error - 12:38:08 PM] Connection to server got closed. Server will not be restarted.
It looks like the default (internal) buffer used by vscode-languageserver/node-ipc to store IPC messages is not large enough to hold the file contents. I tried adjusting the viperSettings.advancedFeatures.verificationBufferSize to something larger, but this didn't help, because this buffer isn't instantiated until after the IPC message has been fully received, it seems.
When opening files in Viper IDE that are (too) large, the Viper server throws an exception and this breaks Viper IDE so that it gives up permanently and a VS code restart is required.
The error that I'm getting is:
It looks like the default (internal) buffer used by
vscode-languageserver
/node-ipc
to store IPC messages is not large enough to hold the file contents. I tried adjusting theviperSettings.advancedFeatures.verificationBufferSize
to something larger, but this didn't help, because this buffer isn't instantiated until after the IPC message has been fully received, it seems.viper-ide/server/src/server.ts
Line 49 in e4c7317
The text was updated successfully, but these errors were encountered: