neumino / chateau

Another (awesome) data explorer for RethinkDB
207 stars 38 forks source link

Error: /usr/local/lib/node_modules/chateau/views/partials/field_add.jade:25 #44

Closed museghost closed 10 years ago

museghost commented 10 years ago

When running chateau with Mac OS X 10.9 mavericks, the above error was occurred with clicking "add a field".

The log generated by NODE is here.

23|             input.value(ng-model="form.value", ng-switch-when="date", type="text", value="{{dateDefault}}" )
24|             input.value(ng-model="form.value", ng-switch-when="null", disabled, type="text", value="null" )

25| textarea.value(ng-model="form.value", ng-switch-when="arbitrary value", ng-auto-expand) 26| textarea.value(ng-model="form.value", ng-switch-when="function", ng-auto-expand) 27| | function(doc) { 28| | return {

unexpected text

at Object.Lexer.fail (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/lexer.js:783:11)
at Object.Lexer.next (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/lexer.js:841:15)
at Object.Lexer.lookahead (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/lexer.js:111:46)
at Parser.lookahead (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/parser.js:109:23)
at Parser.peek (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/parser.js:86:17)
at Parser.tag (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/parser.js:692:22)
at Parser.parseTag (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/parser.js:678:17)
at Parser.parseExpr (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/parser.js:197:21)
at Parser.block (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/parser.js:644:25)
at Parser.tag (/usr/local/lib/node_modules/chateau/node_modules/jade/lib/parser.js:763:26)

Could you please investigate and help me to overcome this situation ?

neumino commented 10 years ago

I could reproduce the bug.

This seems to be an issue with jade. What's weird is that I froze Jade to avoid bugs like that. I'll look into it later today.

neumino commented 10 years ago

I just released 0.3.11 that contains a fix for this issue. Basically it was using an old version of Jade that had an issue with whitespace.

museghost commented 10 years ago

Thank you neumino ! Now, it works fine. Chateau is so cool tool for RethinkDB

neumino commented 10 years ago

@museghost -- you're welcome. Let me know if you run into other issues : )