ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

LSP server failed to start: [info] (icn) Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Open ywang305 opened this issue 1 year ago • 0 comments

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: image

image

image

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 .

ywang305 avatar May 07 '24 21:05 ywang305