www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Templates support in DCD

reply ryuukk_ <ryuukk.dev gmail.com> writes:
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](https://i.imgur.com/fwETSMH.png)
Feb 14 2023
next sibling parent "H. S. Teoh" <hsteoh qfbox.info> writes:
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
Feb 14 2023
prev sibling next sibling parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
I've been watching your PR's, very good work!
Feb 14 2023
prev sibling next sibling parent Andrea Fontana <nospam example.org> writes:
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
Feb 15 2023
prev sibling next sibling parent Mike Parker <aldacron gmail.com> writes:
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!
Feb 15 2023
prev sibling next sibling parent Guillaume Piolat <first.last spam.org> writes:
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!
Feb 15 2023
prev sibling parent reply Chris Piker <chris hoopjump.com> writes:
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](https://github.com/yazd/DKit/) still works with Sublime text 4. Thanks very much for the effort!
Feb 18 2023
parent ryuukk_ <ryuukk.dev gmail.com> writes:
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](https://github.com/yazd/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
Feb 18 2023