RejectedSoftware Forums

Sign up

Error building app on windows

Hi, I am currently developing something in vibe.d on windows but it errors out on res.render!() (this doesnt happen in linux)

source/vibe/templ/diet.d(231): Error: file "home/index.dt" cannot be found or not in a path specified with -J
source/vibe/templ/diet.d(188): Error: template instance vibe.templ.diet.readFileRec!("home/index.dt", ) error instantiating
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(70): instantiated from here: dietParser!("home/index.dt")
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(50): instantiated from here: compileDietFileIndent!("home/index.dt", 0, req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): instantiated from here: compileDietFile!("home/index.dt", req)
source\shouthost.d(42): instantiated from here: render!("home/index.dt", req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(70): Error: template instance vibe.templ.diet.dietParser!("home/index.dt") error instantiating
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(50): instantiated from here: compileDietFileIndent!("home/index.dt", 0, req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): instantiated from here: compileDietFile!("home/index.dt", req)
source\shouthost.d(42): instantiated from here: render!("home/index.dt", req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(50): Error: template instance shouthost.Shouthost.index.compileDietFileIndent!("home/index.dt", 0, req) error instantiating
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): instantiated from here: compileDietFile!("home/index.dt", req)
source\shouthost.d(42): instantiated from here: render!("home/index.dt", req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): Error: template instance shouthost.Shouthost.index.compileDietFile!("home/index.dt", req) error instantiating
source\shouthost.d(42): instantiated from here: render!("home/index.dt", req)
source\shouthost.d(42): Error: template instance shouthost.Shouthost.index.render!("home/index.dt", req) error instantiating
Compiling diet template 'soon/index.dt'...
source/vibe/templ/diet.d(231): Error: file "soon/index.dt" cannot be found or not in a path specified with -J
source/vibe/templ/diet.d(188): Error: template instance vibe.templ.diet.readFileRec!("soon/index.dt", ) error instantiating
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(70): instantiated from here: dietParser!("soon/index.dt")
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(50): instantiated from here: compileDietFileIndent!("soon/index.dt", 0, req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): instantiated from here: compileDietFile!("soon/index.dt", req)
source\shouthost.d(106): instantiated from here: render!("soon/index.dt", req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(70): Error: template instance vibe.templ.diet.dietParser!("soon/index.dt") error instantiating
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(50): instantiated from here: compileDietFileIndent!("soon/index.dt", 0, req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): instantiated from here: compileDietFile!("soon/index.dt", req)
source\shouthost.d(106): instantiated from here: render!("soon/index.dt", req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\templ\diet.d(50): Error: template instance shouthost.Shouthost.comingSoon.compileDietFileIndent!("soon/index.dt", 0, req) error instantiating
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): instantiated from here: compileDietFile!("soon/index.dt", req)
source\shouthost.d(106): instantiated from here: render!("soon/index.dt", req)
......\AppData\Roaming\dub\packages\vibe-d-0.7.19\source\vibe\http\server.d(244): Error: template instance shouthost.Shouthost.comingSoon.compileDietFile!("soon/index.dt", req) error instantiating
source\shouthost.d(106): instantiated from here: render!("soon/index.dt", req)

Even though my server isnt windows and that I could just upload my code to the server to test, I wish to test everything locally but thiserror is getting in the way. Theres no errors or warning on linux.

Re: Error building app on windows

Am 13.04.2014 20:17, schrieb Darius Clark:

Hi, I am currently developing something in vibe.d on windows but it errors out on res.render!() (this doesnt happen in linux)

source/vibe/templ/diet.d(231): Error: file "home/index.dt" cannot be found or not in a path specified with -J

This is a difference between DMD on Windows and on other systems. For
some reason (that I have forgotten) it allows string import files to be
in sub folders on Windows, but for safety reasons it doesn't permit that
on Posix systems. I'm typically just using dots instead of sub folders
to work around this (i.e. home.index.dt).

Re: Error building app on windows

On Sun, 13 Apr 2014 20:49:01 +0200, Sönke Ludwig wrote:

Am 13.04.2014 20:17, schrieb Darius Clark:

Hi, I am currently developing something in vibe.d on windows but it errors out on res.render!() (this doesnt happen in linux)

source/vibe/templ/diet.d(231): Error: file "home/index.dt" cannot be found or not in a path specified with -J

This is a difference between DMD on Windows and on other systems. For
some reason (that I have forgotten) it allows string import files to be
in sub folders on Windows, but for safety reasons it doesn't permit that
on Posix systems. I'm typically just using dots instead of sub folders
to work around this (i.e. home.index.dt).

Hmm even doing it like that gives that same error unless I am doing something wrong

Re: Error building app on windows

Am 14.04.2014 01:26, schrieb Darius Clark:

On Sun, 13 Apr 2014 20:49:01 +0200, Sönke Ludwig wrote:

Am 13.04.2014 20:17, schrieb Darius Clark:

Hi, I am currently developing something in vibe.d on windows but it errors out on res.render!() (this doesnt happen in linux)

source/vibe/templ/diet.d(231): Error: file "home/index.dt" cannot be found or not in a path specified with -J

This is a difference between DMD on Windows and on other systems. For
some reason (that I have forgotten) it allows string import files to be
in sub folders on Windows, but for safety reasons it doesn't permit that
on Posix systems. I'm typically just using dots instead of sub folders
to work around this (i.e. home.index.dt).

Hmm even doing it like that gives that same error unless I am doing something wrong

Did you change both, the folder structure and the string passed to
render!()?