Skip to content

tblgen-lsp-server --help usage omits needed redirect #92614

Open
@FlashSheridan

Description

@FlashSheridan

tblgen-lsp-server --help says:

OVERVIEW: TableGen LSP Language Server
USAGE: tblgen-lsp-server [options] <input file>

But passing a file, rather than redirecting from it, just sits there and waits for input followed by ctrl-D.

Works:

~/Documents/Code/external_code/ToT_LLVM/llvm-project/build/bin/tblgen-lsp-server --input-style=delimited < ~/Documents/Code/external_code/ToT_LLVM/llvm-project/mlir/test/tblgen-lsp-server/definition.test

Sits and Waits:

~/Documents/Code/external_code/ToT_LLVM/llvm-project/build/bin/tblgen-lsp-server --input-style=delimited ~/Documents/Code/external_code/ToT_LLVM/llvm-project/mlir/test/tblgen-lsp-server/definition.test


I haven’t tried this with the default --input-style, as none of the examples in the above directory use it. (All use redirects; there seems to be no test for the documented invocation.)
Note also that --input-style is mentioned in --help but defined only in --help-list-hidden; the documentation could use more attention.

Configuration

MacOS 13.6.7 22G720 on M1 Max
Clang 19 ToT: f03430f 2024-05-16, built with ninja tblgen-lsp-server
MacOSX14.2.sdk
Xcode 15.2 15C500b, Apple clang-1500.1.0.2.5

It‘s possible I did something wrong; tblgen-lsp-server does not work at all well in VS Code, not even reporting an obvious undefined variable caught by llvm-tblgen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm-toolsAll llvm tools that do not have corresponding tagtablegen

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions