-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
ExternalRelates to another program, environment, or user action which we cannot control.Relates to another program, environment, or user action which we cannot control.
Description
TypeScript Version: 3.9.0-dev.20200420
Search Terms:
- invisible character
- paragraph
- diagnostics / errors
Code
For the JS
var ftext = [
"Und", "dann", "eines"];
var a = 1;Note there is an invisible paragraph separator character after the opening[
- In the file, delete the space after the
=on the second line.
Bug:
TS starts reporting bogus errors:
It looks the paragraph character messes up the parsing and causes the error line numbers to be off by one
[Trace - 22:31:41.88] <semantic> Event received: semanticDiag (0).
Data: {
"file": "/Users/matb/projects/san/test.js",
"diagnostics": [
{
"start": {
"line": 2,
"offset": 8
},
"end": {
"line": 2,
"offset": 12
},
"text": "Cannot find name 'dann'.",
"code": 2304,
"category": "error"
},
{
"start": {
"line": 2,
"offset": 16
},
"end": {
"line": 2,
"offset": 21
},
"text": "Cannot find name 'eines'.",
"code": 2304,
"category": "error"
}
]
}
Metadata
Metadata
Assignees
Labels
ExternalRelates to another program, environment, or user action which we cannot control.Relates to another program, environment, or user action which we cannot control.
