Thread overview
Mono-D, DUB and vibe-d diet templates
Sep 20, 2014
Daniel Kozak
Sep 29, 2014
Alexander Bothe
Sep 29, 2014
Alexander Bothe
Sep 29, 2014
Dicebot
Sep 30, 2014
Alexander Bothe
Sep 30, 2014
Dicebot
Oct 02, 2014
Alexander Bothe
Oct 02, 2014
Alexander Bothe
Oct 02, 2014
Dicebot
September 20, 2014
Hi,

I use mono-d with dub for my vibe-d application. It works quite good.
The only problem I have is that I am unable to see my diet templates in project structure. Everytime when I added my view folder (Add->Add existing folder), close Monodevelop and open project again, my view folder disappear and I must add it again.

Do I something wrong?

Thanks Kozzi
September 29, 2014
On Saturday, 20 September 2014 at 16:35:55 UTC, Daniel Kozak wrote:
> Hi,
>
> I use mono-d with dub for my vibe-d application. It works quite good.
> The only problem I have is that I am unable to see my diet templates in project structure. Everytime when I added my view folder (Add->Add existing folder), close Monodevelop and open project again, my view folder disappear and I must add it again.
>
> Do I something wrong?
>
> Thanks Kozzi

Diet templates should be shown, at least in native non-dub projects, first of all.

I guess it's just not looking for diet files when opening up the dub project.

I guess I'm gonna fix this.

Anyway, please just file an issue on github for this, I won't check the Dlang forum that regularly for mono-d questions! :)
September 29, 2014
On Monday, 29 September 2014 at 10:07:19 UTC, Alexander Bothe wrote:
> I guess it's just not looking for diet files when opening up the dub project.

Okay, in theory, all kinds of files that are situated somewhere in the project directory are added to the tree. You said you added an existing directory to the project - is this directory laying around somewhere different?
September 29, 2014
On Monday, 29 September 2014 at 10:18:30 UTC, Alexander Bothe wrote:
> On Monday, 29 September 2014 at 10:07:19 UTC, Alexander Bothe wrote:
>> I guess it's just not looking for diet files when opening up the dub project.
>
> Okay, in theory, all kinds of files that are situated somewhere in the project directory are added to the tree. You said you added an existing directory to the project - is this directory laying around somewhere different?

In my experience only .d files and dub.json are available via project view. Nothing else ever gets added there.
September 30, 2014
On Monday, 29 September 2014 at 16:17:59 UTC, Dicebot wrote:
> On Monday, 29 September 2014 at 10:18:30 UTC, Alexander Bothe wrote:
>> On Monday, 29 September 2014 at 10:07:19 UTC, Alexander Bothe wrote:
>>> I guess it's just not looking for diet files when opening up the dub project.
>>
>> Okay, in theory, all kinds of files that are situated somewhere in the project directory are added to the tree. You said you added an existing directory to the project - is this directory laying around somewhere different?
>
> In my experience only .d files and dub.json are available via project view. Nothing else ever gets added there.

Everything from the source folders was added - and now I included /views an /public as well - despite the folder names being hardcoded (for now) :)
September 30, 2014
On Tuesday, 30 September 2014 at 11:08:00 UTC, Alexander Bothe wrote
> Everything from the source folders was added - and now I included /views an /public as well - despite the folder names being hardcoded (for now) :)

Any reason why simply making folder with dub.json and all non-hidden sub-folders available in the project view is not an option?
October 02, 2014
On Tuesday, 30 September 2014 at 12:20:47 UTC, Dicebot wrote:
> On Tuesday, 30 September 2014 at 11:08:00 UTC, Alexander Bothe wrote
>> Everything from the source folders was added - and now I included /views an /public as well - despite the folder names being hardcoded (for now) :)
>
> Any reason why simply making folder with dub.json and all non-hidden sub-folders available in the project view is not an option?

B/c I didn't assume .dub was marked as hidden. But well, this sounds like a good idea.
October 02, 2014
On Thursday, 2 October 2014 at 11:58:00 UTC, Alexander Bothe wrote:
> On Tuesday, 30 September 2014 at 12:20:47 UTC, Dicebot wrote:
>> On Tuesday, 30 September 2014 at 11:08:00 UTC, Alexander Bothe wrote
>>> Everything from the source folders was added - and now I included /views an /public as well - despite the folder names being hardcoded (for now) :)
>>
>> Any reason why simply making folder with dub.json and all non-hidden sub-folders available in the project view is not an option?
>
> B/c I didn't assume .dub was marked as hidden. But well, this sounds like a good idea.

On Windows, neither .dub nor .git are marked as hidden. So this won't work then. Anyway, including non-dot-directories may help
October 02, 2014
> On Windows, neither .dub nor .git are marked as hidden. So this won't work then. Anyway, including non-dot-directories may help

Should probably be also fixed in dub / git, there is reason to have such semantics different on different platforms.