Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show full error context in server messages #13029

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

dhruvmanila
Copy link
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
20 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/error-context branch August 21, 2024 10:06
Copy link
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