LS returns duplicate error in playground
Closed this issue · 1 comments
alse commented
Problem
LS returns duplicate error in playground.
Steps to Reproduce
- Visit https://play.onflow.org/
- Click on the first account
- Delete the last character from the String type on line 22
(Discovered in onflow/flow-playground#288 and doesn't appear to be related to the playground code)
LS logs from https://github.com/onflow/flow-playground/blob/staging/src/util/language-client.ts#L63
{
"method": "textDocument/publishDiagnostics",
"params": {
"uri": "inmemory://model/4",
"diagnostics": [
{
"range": {
"start": {
"line": 21,
"character": 29
},
"end": {
"line": 21,
"character": 34
}
},
"severity": 1,
"message": "cannot find type in this scope: `Strin`. not found in this scope"
},
{
"range": {
"start": {
"line": 21,
"character": 29
},
"end": {
"line": 21,
"character": 34
}
},
"severity": 1,
"message": "cannot find type in this scope: `Strin`. not found in this scope"
}
]
},
"jsonrpc": "2.0"
}
[
{
"resource": {
"$mid": 1,
"external": "inmemory://model/3",
"path": "/3",
"scheme": "inmemory",
"authority": "model"
},
"owner": "default",
"severity": 8,
"message": "cannot find type in this scope: `Strin`. not found in this scope",
"startLineNumber": 22,
"startColumn": 30,
"endLineNumber": 22,
"endColumn": 35
},
{
"resource": {
"$mid": 1,
"external": "inmemory://model/3",
"path": "/3",
"scheme": "inmemory",
"authority": "model"
},
"owner": "default",
"severity": 8,
"message": "cannot find type in this scope: `Strin`. not found in this scope",
"startLineNumber": 22,
"startColumn": 30,
"endLineNumber": 22,
"endColumn": 35
}
]
fotescodev commented
@sideninja was this completed or should we change the status to In Progress
?