From: "tenderlovemaking (Aaron Patterson)" Date: 2022-09-19T16:26:48+00:00 Subject: [ruby-core:109957] [Ruby master Feature#19011] Improve LSP support in CRuby development itself Issue #19011 has been reported by tenderlovemaking (Aaron Patterson). ---------------------------------------- Feature #19011: Improve LSP support in CRuby development itself https://bugs.ruby-lang.org/issues/19011 * Author: tenderlovemaking (Aaron Patterson) * Status: Open * Priority: Normal ---------------------------------------- I would like to add a new configure option for improve working with language servers inside CRuby itself. The summary is like this: ``` $ ./autogen.sh $ ./configure --enable-compile-commands $ make -j compile_commands.json # Now use LSP ``` `clangd` uses `compile_commands.json` to understand how to compile files inside CRuby. We can use `clang` itself to generate this file, but we have to pass special compile options to clang. Unfortunately the compile options generate many small JSON files, so we also need a way to concatenate them in to `compile_commands.json`. Ideally I would like `make miniruby` to build `miniruby` *and* `compile_commands.json`, but I don't know how to do that yet. ���� I've send a patch [here](https://github.com/ruby/ruby/pull/6352) -- https://bugs.ruby-lang.org/ Unsubscribe: