castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 25 forks source link

Solargraph server initialization failure with "unknown encoding name: utf-8-emacs" #201

Closed louisstuart96 closed 3 years ago

louisstuart96 commented 3 years ago

I've cloned a repo with a mixture of C/C++ and Ruby(mRuby):

# clone with --depth=1 due to the size of this repo
git clone --depth=1 git://github.com/clerkma/ptex-ng.git

Whenever I open this workspace and try to start or restart solargraph server, a strange error occurs:

[Error - 4:18:43pm] Server initialization failed.
  Message: [ArgumentError] unknown encoding name: utf-8-emacs
  Code: -32603 

However, the language server works fine if I open a single Ruby file or a subdirectory (like mruby source code direcitory).