ruby-lsp
ruby-lsp copied to clipboard
LSP server failed to start: [info] (icn) Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Description
LSP server failed to start due to this package pg or its dependencies missing
Ruby LSP. vscode. : v0.5.21 ruby-lsp -v : 0.16.6
the error form output as below:
I have export as its instructed but no luck:
brew install libpq
export export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/libpq/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libpq/include"
# then start vscode using code .