Pure-D / serve-d

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

Cannot use dub with invalid configuration #224

Open 0xEAB opened 2 years ago

0xEAB commented 2 years ago
serve-d v0.7.4 with workspace-d v3.7.0
Included features: "d", "workspaces"
Built: Sat May 21 23:05:29 2022
with compiler LDC v2.99 on linux littleEndian
dub, dfmt and dscanner are bundled within (compiled in)
2022-05-22T00:30:27.891 [info] dcd.d:69:reloadBinaries Using dcd-client instead of internal workspace-d client
2022-05-22T00:30:28.034 [info] extension.d:638:rootsForProject Root Suggestions: [RootSuggestion("/home/elias/demo", true), RootSuggestion("/home/elias/demo/example", true)]
2022-05-22T00:30:28.035 [info] extension.d:670:doStartup registering instance for root RootSuggestion("/home/elias/demo", true)
2022-05-22T00:30:28.036 [info] extension.d:670:doStartup registering instance for root RootSuggestion("/home/elias/demo/example", true)
2022-05-22T00:30:28.036 [info] extension.d:758:delayedProjectActivation Initializing instance for root RootSuggestion("/home/elias/demo", true)
Dub Error (ignored): object.Exception@/home/elias/.dub/packages/dub-1.26.1/dub/source/dub/compilers/compiler.d(134): Failed to invoke the compiler gdc to determine the build platform: Using built-in specs.
COLLECT_GCC=gdc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/10/lto-wrapper
gdc: error: unrecognized command-line option ‘-m64’
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.1 20210110 (Debian 10.2.1-6) 

----------------
??:? […stacktrace…]
2022-05-22T00:30:28.452 [error] extension.d:792:delayedProjectActivation Exception starting dub: object.Exception@/home/elias/.dub/packages/workspace-d-3.7.0/workspace-d/source/workspaced/com/dub.d(242): Cannot use dub with invalid configuration
----------------
??:? […stacktrace…]
2022-05-22T00:30:28.453 [error] extension.d:800:delayedProjectActivation Failed starting dub in RootSuggestion("/home/elias/demo", true) - falling back to fsworkspace
2022-05-22T00:30:28.454 [info] extension.d:829:delayedProjectActivation Root RootSuggestion("/home/elias/demo", true) initialized in 417 ms, 25 μs, and 7 hnsecs
2022-05-22T00:36:08.071 [error] jsonrpc.d:446:showErrorMessage Error message:  Could not initialize dub for /home/elias/demo. Falling back to limited functionality!

Cannot use dub with invalid configuration

This is aarch64 on a RPi 4.

0xEAB commented 2 years ago

Workaround: getting rid of the gdc binary in $PATH makes it work apparently