www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - LSP Language Server Discussion

reply Walter Bright <newshound2 digitalmars.com> writes:
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
Jun 10 2023
parent reply max haughton <maxhaton gmail.com> writes:
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
Jun 10 2023
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 6/10/2023 10:41 AM, max haughton wrote:
 https://github.com/pure-d/serve-d
Great!
Jun 10 2023
next sibling parent Rune Morling <ermo serpentos.com> writes:
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.
Jun 11 2023
prev sibling parent reply ryuukk_ <ryuukk.dev gmail.com> writes:
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/
Jun 11 2023
parent reply ryuukk_ <ryuukk.dev gmail.com> writes:
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?
Jun 11 2023
parent Stefan Koch <uplink.coder googlemail.com> writes:
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.
Jun 16 2023