为什么我的problemMatcher没有工作?我非常肯定正则表达式,但它没有报告任何问题,即使有一些关于stdout ......
// the matcher
"problemMatcher": {
"owner": "typescript",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^TypeScript (warning|error): (.*)\\((\\d+),(\\d+)\\): (.*)$",
"severity": 1,
"file": 2,
"line": 3,
"column": 4,
"message": 5
}
}
//the browserify/tsify pipeline
browserify().add('main.ts')
.plugin(tsify, { noImplicitAny: false, removeComments:true })
.transform("babelify",{ extensions: ['.ts'], presets: ["es2015"]})
.bundle()
.on('error', function (error) { console.log(error.toString()); })
.pipe(source('bundle.js'))
.pipe(gulp.dest('www/js/dist/'));
//gulp sample output
[00:39:00] Starting 'ts-compile'...
TypeScript error: main.ts(118,30): Error TS2339: Property 'object' does not exist on type 'boolean'.
TypeScript error: main.ts(137,24): Error TS2339: Property 'object' does not exist on type 'boolean'.
TypeScript error: main.ts(507,44): Error TS2304: Cannot find name 'loading'.
[00:39:03] Finished 'ts-compile' after 2.98 s
答案 0 :(得分:4)
我通过将echo "<td width='28%'>" .
$qry['name'] .
"<br>" .
$qry['address1'] .
"<br>" .
$qry['address2'] .
"<br>" .
$qry['town'] .
"<br>" .
$qry['postcode'] .
"<br>TeleNo : " .
$qry['telephone'] .
"<br>" .
$qry['email'] .
"<a href='mailto:" .
$qry['email'] .
"'?Subject=Thank%20You> - Send eMail</a></td>";
放入tasks.json
文件夹来解决问题。我最初认为.vscode
会像tasks.json
(项目根)一样被发现,但事实证明这是错误的。