d-language-server / dls

A Language Server implementation for D
http://dls.dub.pm
106 stars 15 forks source link

Error in macOS. #60

Open zoujiaqing opened 4 years ago

zoujiaqing commented 4 years ago
dyld: lazy symbol binding failed: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 4:36:36 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 4:36:36 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 4:36:36 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

[Info  - 4:36:36 PM] Connection to server got closed. Server will restart.
dyld: lazy symbol binding failed: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _dyld_enumerate_tlv_storage
  Referenced from: /Users/zoujiaqing/.dub/packages/.bin/dls-latest/dls
  Expected in: /usr/lib/libSystem.B.dylib

[Error - 4:36:36 PM] Connection to server got closed. Server will not be restarted.
LaurentTreguier commented 4 years ago

Yes, this happens with the Catalina update. I didn't know about this until it happened to me too. The fix was to recompile with a newer compiler; so you have to reinstall DLS with dub fetch dls; dub run dls:bootstrap and it should start again properly.

I wish there had been an announcement in the forums about this, all D programs have to be recompiled with a recent compiler for macOS Catalina...

zoujiaqing commented 4 years ago

Can you upgrade it for VSCode market?

LaurentTreguier commented 4 years ago

There isn't much the VSCode extension can do to fix this, since DLS manages its updates by itself no matter which editor you use. I've made a new release since, so the fix for people who updated early to Catalina is to run dub fetch dls; dub run dls:bootstrap to download the new, correct version. Anyone who is updating now to Catalina shouldn't have this issue.