-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Document supported settings for ruff server
#11217
Comments
Some of this in: astral-sh/ruff-vscode#469 |
Apologies for the uninformed drive-by, but as a user, I perceive the problem to be addressed here as two-fold:
I would send PRs, but I have no idea what I'm doing so wanted to at least chat about it first. |
Hey @tartley, thank you for providing such a detailed analysis and sorry that you're facing this problem. @snowsignal can provide more details around it but I think the documentation for the new I'll address a couple of points that you've mentioned here:
I think the settings provided in the linked table is specific to VS Code. Other editors need to configure it via other methods like
Yes, I completely agree with this.
Hmm, let me fix that quickly. I don't think
I'm sorry that you had to face this but the solution to this is to provide it under require('lspconfig').ruff.setup {
init_options = {
settings = {
-- Ruff server settings would go here
}
}
} I know this isn't obvious and we're going to fix this in #11897 and I'll add an example section in NEOVIM.md file as well. |
@dhruvmanila Thank you for the detailed response! No apologies are necessary - my intent was not to complain, merely to try and help by being as explicit as I could about what I would like to see. Many thanks for all the amazing and exciting work to date, and to come! |
it seems that over time lspconfig maintainers moved away from a I have been playing the dictionary hunting game for finding where a setting is picked up, where it isn't for ages and it's very frustrating. I wish docs writers would stop using "..." and actually used an actual argument in their examples. For example it took me a lot of trying to find out how to overwrite the default
My use case to override a project specified While I can confirm with
The new diagnostics show up only if I remove the project's |
ah, turning on the trace messages told me at least to move the config file to |
to give a positive update to my issue for anyone looking at a similar problem,
so back to |
@minusf Sorry that you're facing this, I agree that it's very frustrating to find where a specific information goes with the amount of options available. I'm going to be working on the new |
To be clear, I think this is an lspconfig issue first, other projects later. They just kind of expect everyone to be a lua dev 🤣 |
Thank you all for providing feedback here! It was helpful while writing the documentation. Feel free to provide any additional suggestions that you might have in the new documentation. Reference: https://docs.astral.sh/ruff/editors |
Yes, I've been poring through it right now. I'll let you know and could work on modest PRs if I spot anything.
…On Thu, Jul 18, 2024, at 12:36, Dhruv Manilawala wrote:
Thank you all for providing feedback here! It was helpful while writing the documentation. Feel free to provide any additional suggestions that you might have in the new documentation. Reference: https://docs.astral.sh/ruff/editors
—
Reply to this email directly, view it on GitHub <#11217 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AABBV66D3YMTUCDIME7GBR3ZNADJVAVCNFSM6AAAAABHAVNULKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXGI2DONBUGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
--
Jonathan Hartley USA, Central(UTC-5)
***@***.*** https://tartley.com
|
Right now, we don't have any centralized documentation for
ruff server
's client settings, similar to whatruff-lsp
has in its README. This would be a useful resource for users to have, especially for clients that require settings to be added manually in configuration.The text was updated successfully, but these errors were encountered: