diagnostics not update after fixed the error
See original GitHub issue[Trace - 06:57:43 PM] Sending notification 'workspace/didChangeWatchedFiles'.
Params: {
"changes": [
{
"type": 2,
"uri": "file:///Users/jadestrong/Documents/JadeStrong/test.ts"
}
]
}
[Trace - 06:57:43 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/jadestrong/Documents/JadeStrong/test.ts",
"diagnostics": [
{
"range": {
"start": {
"line": 84,
"character": 4
},
"end": {
"line": 84,
"character": 22
}
},
"severity": 4,
"source": "ts",
"code": 80007,
"message": "'await' has no effect on the type of this expression."
},
{
"range": {
"start": {
"line": 5,
"character": 19
},
"end": {
"line": 5,
"character": 30
}
},
"severity": 1,
"source": "ts",
"code": 2305,
"message": "Module '\"@common/device\"' has no exported member 'isInBrowser'."
}
]
}
[Trace - 06:57:43 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/jadestrong/Documents/JadeStrong/test.ts",
"diagnostics": [
{
"range": {
"start": {
"line": 84,
"character": 4
},
"end": {
"line": 84,
"character": 22
}
},
"severity": 4,
"source": "ts",
"code": 80007,
"message": "'await' has no effect on the type of this expression."
},
{
"range": {
"start": {
"line": 5,
"character": 19
},
"end": {
"line": 5,
"character": 30
}
},
"severity": 1,
"source": "ts",
"code": 2305,
"message": "Module '\"@common/device\"' has no exported member 'isInBrowser'."
}
]
}
I had remove the ‘await’ keyword, and report a workspace/didChangeWatchedFiles
, but publishDiagnostics
still report 'await' has no effect on the type of this expression
, is there any cache login?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Fix for diagnostics not updating issue : r/neovim
For some reason diagnostics are only updated switch to normal mode after new line with build in LSP. So I was trying to...
Read more >Fix for Neovim LSP diagnostics are not updating issue
... user for the tip Link to doc: https://github.com/neovim/nvim-lspconfig/wiki/UI-customization#customizing-how- diagnostics -are-displaye...
Read more >Ale diagnostics not being updated after fixing an error #2726
While coding a python source file, the last error displayed will stay on even after fixing the error. as an example: class TestClass:...
Read more >Network Diagnostics broken after July 2022 updates
After running the recent updates from Microsoft, Network Diagnostics does not work. Steps: Opened Network Connections to view all LAN and ...
Read more >[Fixed] Scripted Diagnostics Native Host Not Working
This post provides seven useful solutions for you to solve the “Scripted Diagnostics Native Host not working” error.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can confirm this, thanks!
Did you enable
Take Over Mode
? I can reproduce this problem on my two computer, and VScode and Emacs.