code-server version: server/1.32.0-282 linux-x64 node-v8.15.0Mar 16 15:40:26 s code-server[2299]: INFO Starting shared process [1/5]... {"error":"Exited with null"}
root@s:~# /usr/bin/code-server --bootstrap-fork vs/workbench/services/extensions/node/extensionHostProcess --args ["--type=extensionHost"] --data-dir /root/.local/share/code-server
SyntaxError: Unexpected number in JSON at position 2
at JSON.parse (<anonymous>)
at v.run (/usr/bin/code-server:549:49455)
at <anonymous>
Hey! I believe @foresthoffman may need a bit more information, do you know which extension (or extensions) this happened with? Are you running the Docker version or the executable? Also how much ram does the server have?
Thanks!
@NGTmeaty I believe this is not a extension specific issue, but I was trying to install Vetur at the time. I'm not running Docker, and the server has 1GB of RAM, is that not enough for code-server?
@stevefan1999-personal I recommend something larger than 1GB because code-server eats that specific amount of RAM which is currently problematic to run where memory is prime estate (ala OpenShift).
and looks like your extensions.json is broken as well, you might need to delete $HOME/.code-server and run it again.
We have a new binary coming soon that should reduce memory consumption by at least 50%
Fixed by GH-857.
Most helpful comment
We have a new binary coming soon that should reduce memory consumption by at least 50%