elbywan / crystalline

A Language Server Protocol implementation for Crystal. 🔮
MIT License
424 stars 21 forks source link

I tried to use Crystalline (language server) with VSCode on macOS : Issue with the location of llvm@14/14.0.6/lib/libLLVM.dylib #60

Closed serge-hulne closed 1 year ago

serge-hulne commented 1 year ago

I tried to use Crystalline (language server) with VSCode on macOS, got :

dyld[3268]: Library not loaded: /usr/local/opt/llvm@14/lib/libLLVM.dylib
  Referenced from: <DF523EFC-CF38-3988-93E4-C884DD15CA5F> /Users/sergehulne/crystalline
  Reason: tried: '/usr/local/opt/llvm@14/lib/libLLVM.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/llvm@14/lib/libLLVM.dylib' (no such file), '/usr/local/opt/llvm@14/lib/libLLVM.dylib' (no such file), '/usr/local/lib/libLLVM.dylib' (no such file), '/usr/lib/libLLVM.dylib' (no such file, not in dyld cache)
[Info  - 11:52:33] Connection to server got closed. Server will restart.

brew list llvm@14 | grep "ibLLVM.dylib" yields :

brew list llvm@14 | grep "ibLLVM.dylib"
/opt/homebrew/Cellar/llvm@14/14.0.6/lib/libLLVM.dylib
elbywan commented 1 year ago

Hi @serge-hulne,

I do not think that your issue is related to crystalline, but rather to your llvm setup. Maybe that something went wrong during the brew install, /usr/local/opt/llvm@14/lib/libLLVM.dylib seems to be missing on your machine.

This is what I get on my mac after running brew install llvm@14:

❯ file /usr/local/opt/llvm@14/lib/libLLVM.dylib
/usr/local/opt/llvm@14/lib/libLLVM.dylib: Mach-O 64-bit dynamically linked shared library x86_64