# Agent can't access linter diagnostics in certain languages

**URL:** <https://forum.cursor.com/t/agent-cant-access-linter-diagnostics-in-certain-languages/73327>\
**Category:** Bug Reports\
**Created:** [March 31, 2025, 11:43pm UTC](https://forum.cursor.com/t/agent-cant-access-linter-diagnostics-in-certain-languages/73327 "2025-03-31T23:43:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pattobrien](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/pattobrien/32/43008_2.png) [@pattobrien](https://forum.cursor.com/u/pattobrien)\
**Post date:** [March 31, 2025, 11:43pm UTC](https://forum.cursor.com/t/agent-cant-access-linter-diagnostics-in-certain-languages/73327/1 "2025-03-31T23:43:36Z")

</div>

Could someone from the team explain how exactly the Agent gets the diagnostics that exist in a workspace?

When I attempt to ask the Agent to e.g. fix all compilation errors in Dart (which are reported by the Dart LSP-based language server), Agent doesn’t seem to be able to read those diagnostics, which has not been my experience in e.g. Typescript.

I had assumed that diagnostics were accessed via the LSP client built into Cursor, but is that not necessarily true?

EDIT: I created a repo that can be used by the Cursor team to easily reproduce the bug:

> **[GitHub - pattobrien/cursor-dart-lsp](https://github.com/pattobrien/cursor-dart-lsp)**
>
> Contribute to pattobrien/cursor-dart-lsp development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![khx](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@khx](https://forum.cursor.com/u/khx)\
**Post date:** [April 4, 2025, 12:32pm UTC](https://forum.cursor.com/t/agent-cant-access-linter-diagnostics-in-certain-languages/73327/2 "2025-04-04T12:32:25Z")

</div>

Yeah, I’m seeing the same issue with C++ and clangd

---

<div class="post-metadata">

**Author:** ![pattobrien](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/pattobrien/32/43008_2.png) [@pattobrien](https://forum.cursor.com/u/pattobrien)\
**Post date:** [April 8, 2025, 3:11pm UTC](https://forum.cursor.com/t/agent-cant-access-linter-diagnostics-in-certain-languages/73327/3 "2025-04-08T15:11:31Z")

</div>

So weird - they must not be tapping directly into the LSP protocol, because I would think this wouldn’t be different from one language to the next.

---

<div class="post-metadata">

**Author:** ![khx](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@khx](https://forum.cursor.com/u/khx)\
**Post date:** [April 11, 2025, 10:38am UTC](https://forum.cursor.com/t/agent-cant-access-linter-diagnostics-in-certain-languages/73327/4 "2025-04-11T10:38:29Z")

</div>

Turns out that with my clangd case the issue was that Cursor does not see warnings. When I change my configuration to treat warnings as errors, I’m able to do “Can you fix the @Linter errors” in the chat and the agent will handle it correctly.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [May 11, 2025, 10:38am UTC](https://forum.cursor.com/t/agent-cant-access-linter-diagnostics-in-certain-languages/73327/5 "2025-05-11T10:38:51Z")

</div>

Closed on May 11, 2025, 10:38am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
