我以 doc 1.4 中的示例为我的 config.json 中的“漂亮打印”作业键。
"jobs" : {
"pretty-print" : {
"general" : { ..... },
"comments" : { ...... },
"blocks" : { ....... }
},
python Generate.py 产生这个:
警告: !未知的作业配置键“块” - 被忽略。
警告: !未知的作业配置键“评论” - 被忽略。
警告: !未知的作业配置键“一般” - 被忽略。
我查看了everywere,文档和来源,但不明白为什么
已编辑我正在使用 QooXdoo 1.4 和 Python 2.6
我正在使用从另一个系统生成的源 javascript 我需要重新格式化源 .js 并需要修改 QooXdoo 使用的标准设置
从http://manual.qooxdoo.org/1.4.x/pages/tool/generator_config_ref.html我举个例子:
"pretty-print" :
{
"general" :
{
"indent-string" : " "
},
"comments" :
{
"trailing" :
{
"keep-column" : false,
"comment-cols" : [50, 70, 90],
"padding" : " "
}
},
"blocks" :
{
"align-with-curlies" : false,
"open-curly" :
{
"newline-before" : "N",
"indent-before" : false
}
}
}
并在我的应用程序的 config.json 中
执行作业“pretty-print”但忽略设置
重新编辑我只有这个键“pretty-print”有问题,config.json的其他变体没问题