Skip to content

Show full error context in server messages#13029

Merged
dhruvmanila merged 1 commit intomainfrom
dhruv/error-context
Aug 21, 2024
Merged

Show full error context in server messages#13029
dhruvmanila merged 1 commit intomainfrom
dhruv/error-context

Conversation

@dhruvmanila
Copy link
Copy Markdown
Member

Summary

Reference: https://docs.rs/anyhow/latest/anyhow/struct.Error.html#display-representations

Closes: #13022

Test Plan

2024-08-21 15:21:24.831 [info] [Trace - 3:21:24 PM]    0.017255167s ERROR ThreadId(04) ruff_server::session::index::ruff_settings: Failed to parse /Users/dhruv/playground/ruff/pyproject.toml: TOML parse error at line 1, column 1
  |
1 | [tool.ruff.lint]
  | ^^^^^^^^^^^^^^^^
Unknown rule selector: `ME102`

Or,

2024-08-21 15:23:47.993 [info] [Trace - 3:23:47 PM]  143.179857375s ERROR ThreadId(66) ruff_server::session::index::ruff_settings: Failed to parse /Users/dhruv/playground/ruff/pyproject.toml: TOML parse error at line 2, column 42
  |
2 | select = ["ALL", "TD006", "TD007", "FIX"
  |                                          ^
invalid array
expected `]`

@dhruvmanila dhruvmanila added the server Related to the LSP server label Aug 21, 2024
@dhruvmanila dhruvmanila merged commit 0c98b59 into main Aug 21, 2024
@dhruvmanila dhruvmanila deleted the dhruv/error-context branch August 21, 2024 10:06
@github-actions
Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

server Related to the LSP server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unspecific error message from tiny typo

2 participants