Thread overview
LSP Language Server Discussion
Jun 10, 2023
Walter Bright
Jun 10, 2023
max haughton
Jun 10, 2023
Walter Bright
Jun 11, 2023
Rune Morling
Jun 12, 2023
ryuukk_
Jun 12, 2023
ryuukk_
Jun 16, 2023
Stefan Koch
June 10, 2023
As there's a lot of interest in creating an LSP for D, here's a discussion of implementation ideas:

https://news.ycombinator.com/item?id=36268247
June 10, 2023
On Saturday, 10 June 2023 at 17:39:23 UTC, Walter Bright wrote:
> As there's a lot of interest in creating an LSP for D, here's a discussion of implementation ideas:
>
> https://news.ycombinator.com/item?id=36268247

https://github.com/pure-d/serve-d
June 10, 2023
On 6/10/2023 10:41 AM, max haughton wrote:
> https://github.com/pure-d/serve-d

Great!
June 11, 2023

On Saturday, 10 June 2023 at 21:19:05 UTC, Walter Bright wrote:

>

On 6/10/2023 10:41 AM, max haughton wrote:

>

https://github.com/pure-d/serve-d

Great!

If you haven't attempted to use it, you probably should.

Best of luck.

June 12, 2023
On Saturday, 10 June 2023 at 21:19:05 UTC, Walter Bright wrote:
> On 6/10/2023 10:41 AM, max haughton wrote:
>> https://github.com/pure-d/serve-d
>
> Great!

D's LSP has greatly improved over the years, a competitive advantage many language doesn't have!

One area it could improve is template support, i did my best to contribute, but it's quite challenging to do right

https://github.com/dlang-community/DCD/pull/714 (WIP)

If in the future dmd could provide a builtin language server, that would be even more great!


clang has clangd and it powers lot of editors https://clangd.llvm.org/
June 12, 2023

I just realized that -vcg-ast already exist for DMD, wich can already solve the templates problem!

Question: is it possible for that output to go to stdout rather than create a file next to the module? mumodule.d.gc so it could be integrated in serve-d, i wrote down an idea here: https://github.com/Pure-D/serve-d/issues/323

Another question, why -vcg-ast isn't documented in the dmd --help menu, not even on the wiki https://dlang.org/dmd-linux.html?

June 16, 2023

On Monday, 12 June 2023 at 04:50:57 UTC, ryuukk_ wrote:

>

Another question, why -vcg-ast isn't documented in the dmd --help menu, not even on the wiki https://dlang.org/dmd-linux.html?

-vcg-ast was a debug utility I wrote for internal compiler development usage.
It was never meant to be a user visible feature as we cannot guarantee the format and content of the output.