digitalmars.D - LSP Language Server Discussion
- Walter Bright (3/3) Jun 10 2023 As there's a lot of interest in creating an LSP for D, here's a discussi...
- max haughton (2/5) Jun 10 2023 https://github.com/pure-d/serve-d
- Walter Bright (2/3) Jun 10 2023 Great!
- Rune Morling (3/6) Jun 11 2023 If you haven't attempted to use it, you probably should.
- ryuukk_ (10/13) Jun 11 2023 D's LSP has greatly improved over the years, a competitive
- ryuukk_ (9/9) Jun 11 2023 I just realized that ``-vcg-ast`` already exist for DMD, wich can
- Stefan Koch (5/8) Jun 16 2023 -vcg-ast was a debug utility I wrote for internal compiler
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
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=36268247https://github.com/pure-d/serve-d
Jun 10 2023
On 6/10/2023 10:41 AM, max haughton wrote:https://github.com/pure-d/serve-dGreat!
Jun 10 2023
On Saturday, 10 June 2023 at 21:19:05 UTC, Walter Bright wrote:On 6/10/2023 10:41 AM, max haughton wrote:If you haven't attempted to use it, you probably should. Best of luck.https://github.com/pure-d/serve-dGreat!
Jun 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: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/https://github.com/pure-d/serve-dGreat!
Jun 11 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?
Jun 11 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.
Jun 16 2023