www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Mono-D, DUB and vibe-d diet templates

reply "Daniel Kozak" <kozzi11 gmail.com> writes:
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
Sep 20 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
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! :)
Sep 29 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
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?
Sep 29 2014
parent reply "Dicebot" <public dicebot.lv> writes:
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.
Sep 29 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
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) :)
Sep 30 2014
parent reply "Dicebot" <public dicebot.lv> writes:
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?
Sep 30 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
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.
Oct 02 2014
parent reply "Alexander Bothe" <info alexanderbothe.com> writes:
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
Oct 02 2014
parent "Dicebot" <public dicebot.lv> writes:
 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.
Oct 02 2014