bergercookie / asm-lsp

Language server for NASM/GAS/GO Assembly
https://crates.io/crates/asm-lsp
BSD 2-Clause "Simplified" License
269 stars 18 forks source link

Command stuck on "Starting asm_lsp..." #171

Closed quentinlintz closed 1 week ago

quentinlintz commented 1 week ago

I have v0.9.0 installed, I'm running asm-lsp --version, and it seems to stall on:

INFO [asm_lsp] Starting asm_lsp...

I'm using rustc/cargo 1.82.0, Linux 6.11.6-arch1-1, x86_64.

WillLillis commented 1 week ago

Versions 0.9.0 and below don't support command line arguments, the stalling behavior you're seeing is the server starting normally and waiting for a connection from an lsp client. The current version on master has an info subcommand to print out the version, config directories, etc.:

❯ target/debug/asm-lsp info                                                                  ⏎
asm-lsp-0.9.0

Default config architecture: x86-64
Global config directory:
        /home/lillis/.config/asm-lsp -- No config detected

The program probably should have a dedicated version subcommand though. I'll add that shortly.

quentinlintz commented 1 week ago

Thank you @WillLillis! I also get the same message doing asm-lsp gen-config from the README.

WillLillis commented 1 week ago

Thank you @WillLillis! I also get the same message doing asm-lsp gen-config from the README.

Yeah, gen-config was added recently and is only available off of the master branch. I'm planning on releasing 0.10.0 with all of these new features, but I have a few architectures to add before that happens. If you're able to build the project from master I highly recommend that, there's also been some bug fixes since the 0.9.0 release :)