question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
johnsoncodehkcommented, Mar 21, 2022

I can confirm this, thanks!

0reactions
jadestrongcommented, Mar 21, 2022
Version: 1.65.2
Commit: c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1
Date: 2022-03-10T14:33:49.188Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 21.3.0

Did you enable Take Over Mode ? I can reproduce this problem on my two computer, and VScode and Emacs.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found