Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
195 stars 48 forks source link

Fix undefined identifier 'trace' error. #322

Closed DenisBelmondo closed 1 year ago

DenisBelmondo commented 1 year ago

When compiling master (my personal setup was ldc2 and running release.sh), I ran into an error saying that 'trace' is an undefined identifier in source/served/commands/format.d. I assume the desired function is std.experimental.logger.trace(), so I've added the import.

WebFreak001 commented 1 year ago

what LDC version is that? this kind of error should be caught by CI (although right now other CI errors are blocking it, so I guess it might have just not been found because of those)

DenisBelmondo commented 1 year ago

what LDC version is that? this kind of error should be caught by CI (although right now other CI errors are blocking it, so I guess it might have just not been found because of those)

Here's the verbatim output from ldc -v:

binary /usr/bin/ldc2 version 1.32.1 (DMD v2.102.2, LLVM 15.0.7) config /etc/ldc2.conf (x86_64-pc-linux-gnu) Error: No source file

My machine's LDC was acquired from Manjaro's community/ repository.