Thread overview
Templates support in DCD
Feb 14, 2023
ryuukk_
Feb 14, 2023
H. S. Teoh
Feb 15, 2023
Andrea Fontana
Feb 15, 2023
Mike Parker
Feb 15, 2023
Guillaume Piolat
Feb 18, 2023
Chris Piker
Feb 19, 2023
ryuukk_
February 14, 2023

Hello,

What annoys me the most about D is the tooling, specially the lack of solid IDE support, i understand it's very hard to do, so i don't complain much about it, instead i try to contribute as much as i can

So last week i decided it was time to attempt something, so the past week i have been working on adding proper support for templates in DCD

It's been quite difficult, as expected, but i have been able to come up with a decent PR!

So far it's working nicely in my huge project, but i do not use templates a lot, only for containers

So if you have a big project and consume a lot of templates, please give my PR a try and let me know what works, what doesn't and what could be improved!

If you can, i'd love to get a code review too, that would be helpful!

Here is the PR: https://github.com/dlang-community/DCD/pull/714

PS: If you use the vscode extension, you'll need to change the version here:

https://github.com/dlang-community/DCD/blob/master/common/src/dcd/common/dcd_version.d#L29

Replace it with "v9.9.9", so serve-d won't complain about the version

Works with auto :)

screenshot

February 14, 2023
On Tue, Feb 14, 2023 at 10:01:23PM +0000, ryuukk_ via Digitalmars-d wrote: [...]
> What annoys me the most about D is the tooling, specially the lack of solid IDE support, i understand it's very hard to do, so i don't complain much about it, instead i try to contribute as much as i can
> 
> So last week i decided it was time to attempt something, so the past week i have been working on adding proper support for templates in DCD
> 
> It's been quite difficult, as expected, but i have been able to come up with a decent PR!
[...]
> Works with auto :)
> 
> ![screenshot](https://i.imgur.com/fwETSMH.png)

I'm not an IDE person, but just wanted to say that this is awesome work, and we need more of it.  Hope you continue to contribute!


T

-- 
Those who've learned LaTeX swear by it. Those who are learning LaTeX swear at it. -- Pete Bleackley
February 15, 2023
I've been watching your PR's, very good work!
February 15, 2023

On Tuesday, 14 February 2023 at 22:01:23 UTC, ryuukk_ wrote:

>

It's been quite difficult, as expected, but i have been able to come up with a decent PR!

+1

February 15, 2023

On Tuesday, 14 February 2023 at 22:01:23 UTC, ryuukk_ wrote:

>

So far it's working nicely in my huge project, but i do not use templates a lot, only for containers

So if you have a big project and consume a lot of templates, please give my PR a try and let me know what works, what doesn't and what could be improved!

Great job!

February 15, 2023

On Tuesday, 14 February 2023 at 22:01:23 UTC, ryuukk_ wrote:

>

What annoys me the most about D is the tooling, specially the lack of solid IDE support, i understand it's very hard to do, so i don't complain much about it, instead i try to contribute as much as i can

Thank you!

February 18, 2023

On Tuesday, 14 February 2023 at 22:01:23 UTC, ryuukk_ wrote:

>

So last week i decided it was time to attempt something, so the past week i have been working on adding proper support for templates in DCD

Whoa, I didn't even know about DCD. I spend half my life in sublime text, so this is perfect for me! I'll give it a shot, hopefully the DKit still works with Sublime text 4.

Thanks very much for the effort!

February 19, 2023

On Saturday, 18 February 2023 at 08:39:14 UTC, Chris Piker wrote:

>

On Tuesday, 14 February 2023 at 22:01:23 UTC, ryuukk_ wrote:

>

So last week i decided it was time to attempt something, so the past week i have been working on adding proper support for templates in DCD

Whoa, I didn't even know about DCD. I spend half my life in sublime text, so this is perfect for me! I'll give it a shot, hopefully the DKit still works with Sublime text 4.

Thanks very much for the effort!

I don't know about DKit, but there is serve-d you can use with Sublime Text https://github.com/Pure-D/serve-d/

It's the language server (LSP), it uses DCD as the engine