On Monday, 10 April 2023 at 12:30:53 UTC, Richard (Rikki) Andrew Cattermole wrote:
>On 11/04/2023 12:17 AM, Andrej Mitrovic wrote:
>It would be nice to have a very minimal sample dub project that uses these Module / Parser classes.
There is: https://github.com/dlang/dmd/tree/master/compiler/test/dub_package
But yeah, there needs to be working examples for a formatter + auto completion engine. That is both tested and with good documentation; those two are probably the most common use cases for such a tool.
Are the modules in this folder tested by the CI?
I'm trying out this file in v2.103.0: https://github.com/dlang/dmd/blob/05e91cdcf88a922465ff3604e28f54dc385d7f65/compiler/test/dub_package/lexer.d
$ dmd --version
> DMD64 D Compiler v2.103.0
$ dmd app.d
app.d(3): Error: unable to read module `globals`
It does not seem to work.
Maybe I could try with DMD master
. Although digger
no longer seems to work so I bet it's gonna be a pain building everything from scratch.