These are chat archives for jescalan/roots

19th
Apr 2016
ccsouthard
@ccsouthard
Apr 19 2016 17:02
Is anyone available to see if my current error is a roots error or improperly written template? The repo that I cannot compile is : https://github.com/ccsouthard/ccs-design-site/tree/v6
Ben Styles
@benadamstyles
Apr 19 2016 17:46
I can take a quick look, what's the error?
ccsouthard
@ccsouthard
Apr 19 2016 18:28
Potentially unhandled rejection [6] ?
Ben Styles
@benadamstyles
Apr 19 2016 18:28
Is that all you get? Any idea what the file is that is causing this?
ccsouthard
@ccsouthard
Apr 19 2016 18:29

here is the full error ' Warning: missing space before text for line 10 of jade file "/Users/charliesouthard/Sites/ccs-design/content/services/services/services.jade"
[Error: Error: /Users/charliesouthard/Sites/ccs-design/content/public/work/work/bella-surfaces.jade:1

1| extends ../../../views/single_project
2| block projects-content
3| :marked
4| image

ENOENT: no such file or directory, open '/Users/charliesouthard/Sites/ccs-design/content/views/single_project.jade']

Potentially unhandled rejection [6] Error: /Users/charliesouthard/Sites/ccs-design/content/public/work/work/bella-surfaces.jade:1

1| extends ../../../views/single_project
2| block projects-content
3| :marked
4| image

ENOENT: no such file or directory, open '/Users/charliesouthard/Sites/ccs-design/content/views/single_project.jade'
at Error (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Parser.parseExtends (/Users/charliesouthard/Sites/ccs-design/node_modules/jade/lib/parser.js:509:18)
at Parser.parseExpr (/Users/charliesouthard/Sites/ccs-design/node_modules/jade/lib/parser.js:221:21)
at Parser.parse (/Users/charliesouthard/Sites/ccs-design/node_modules/jade/lib/parser.js:122:25)
at parse (/Users/charliesouthard/Sites/ccs-design/node_modules/jade/lib/index.js:104:21)
at Object.exports.compile (/Users/charliesouthard/Sites/ccs-design/node_modules/jade/lib/index.js:205:16)
at handleTemplateCache (/Users/charliesouthard/Sites/ccs-design/node_modules/jade/lib/index.js:174:25)
at Object.exports.render (/Users/charliesouthard/Sites/ccs-design/node_modules/jade/lib/index.js:349:10)
at /usr/local/lib/node_modules/roots/node_modules/accord/lib/adapters/jade/1.x.js:37:31
at compile (/usr/local/lib/node_modules/roots/node_modules/accord/lib/adapters/jade/1.x.js:70:15)
at Jade._render (/usr/local/lib/node_modules/roots/node_modules/accord/lib/adapters/jade/1.x.js:35:14)
at Jade.Adapter.render (/usr/local/lib/node_modules/roots/node_modules/accord/lib/adapter_base.js:122:19)
at CompilePass.compile_or_pass (/usr/local/lib/node_modules/roots/lib/compiler.js:522:27)
at tryCatchReject (/usr/local/lib/node_modules/roots/node_modules/when/lib/makePromise.js:845:30)
at runContinuation1 (/usr/local/lib/node_modules/roots/node_modules/when/lib/makePromise.js:804:4)
at Fulfilled.when (/usr/local/lib/node_modules/roots/node_modules/when/lib/makePromise.js:592:4)
at Pending.run (/usr/local/lib/node_modules/roots/node_modules/when/lib/makePromise.js:483:13)
at Scheduler._drain (/usr/local/lib/node_modules/roots/node_modules/when/lib/Scheduler.js:62:19)
at Scheduler.drain (/usr/local/lib/node_modules/roots/node_modules/when/lib/Scheduler.js:27:9)
at nextTickCallbackWith0Args (node.js:415:9)
at process._tickCallback (node.js:344:13)'

thanks for looking.
Jeff Escalante
@jescalan
Apr 19 2016 18:30
its a jade template error
it tells you the error, and the line it comes from
you need to indent :marked inside the block
ccsouthard
@ccsouthard
Apr 19 2016 18:31
thank @jenius
*thank you
Jeff Escalante
@jescalan
Apr 19 2016 18:32
:+1:
ccsouthard
@ccsouthard
Apr 19 2016 18:55

Sorry to bother – I know this is a rather simple error but it appears to be direct. Although the file does appear in that particular folder. ENOENT: no such file or directory, open/Users/charliesouthard/Sites/ccs-design/content/views/single_project.jade']

Potentially unhandled rejection [104] Error: /Users/charliesouthard/Sites/ccs-design/content/public/work/work/art-beyond.jade:1 `

I'm completely out of my depth of knowledge when I was trying to create this.

Ben Styles
@benadamstyles
Apr 19 2016 18:59
Have you double checked that your extends URLs are definitely correct?
Especially ones with several layers of ../../
Jeff Escalante
@jescalan
Apr 19 2016 19:01
yeah that is the right recommendation here
ccsouthard
@ccsouthard
Apr 19 2016 19:03
I have not – I just look back to an earlier successful commit and assumed that the file structure was left unchanged. thank you for entertaining my trivial errors. I promise to keep it minimal.
Jeff Escalante
@jescalan
Apr 19 2016 19:03
usually node leaves pretty clear errors. sometime you just gotta grind through em!