[Pkg-javascript-devel] Bug#987967: jade replaced by pug for ages, doesn't work anymore

Stefan Bühler source at stbuehler.de
Sun May 2 22:24:36 BST 2021


Package: node-jade
Version: 1.11.0+~cs4.1.0-1
Severity: grave

Hi,

https://www.npmjs.com/package/jade says last release was 6 years ago and
it got replaced by pug.

Also it doesn't work anymore in bullseye for two reasons:

1. CLI tool broken due to "--name" conflicting with existing property:

---
Error: option 'name' clashes with existing property 'name' on Command
- call storeOptionsAsProperties(false) to store option values safely,
- or call storeOptionsAsProperties(true) to suppress this check,
- or change option name
---

2. It fails: parseMax got removed in character-parser:

https://github.com/ForbesLindesay/character-parser#parsemax

With this as test.jade:
---
div(class='test')
---

And renaming --name to --nameX in /usr/share/nodejs/jade/bin/jade.js it
fails like this:
---
$ jadejs test.jade

/usr/share/nodejs/jade/lib/runtime.js:240
  throw err;
  ^

TypeError: test.jade:1
  > 1| div(class='test')
    2|

characterParser.parseMax is not a function
    at Lexer.bracketExpression (/usr/share/nodejs/jade/lib/lexer.js:129:33)
    at Lexer.attrs (/usr/share/nodejs/jade/lib/lexer.js:610:24)
    at Lexer.next (/usr/share/nodejs/jade/lib/lexer.js:939:15)
    at Lexer.lookahead (/usr/share/nodejs/jade/lib/lexer.js:113:46)
    at Parser.lookahead (/usr/share/nodejs/jade/lib/parser.js:102:23)
    at Parser.peek (/usr/share/nodejs/jade/lib/parser.js:79:17)
    at Parser.tag (/usr/share/nodejs/jade/lib/parser.js:773:22)
    at Parser.parseTag (/usr/share/nodejs/jade/lib/parser.js:759:17)
    at Parser.parseExpr (/usr/share/nodejs/jade/lib/parser.js:211:21)
    at Parser.parse (/usr/share/nodejs/jade/lib/parser.js:122:25) {
  path: 'test.jade'
}
---

This is also the reason why isso doesn't build anymore: see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959644 "isso: FTBFS:
TypeError: Jade:1"

cheers,
Stefan



More information about the Pkg-javascript-devel mailing list