René's URL Explorer Experiment


Title: Quick fixes and autoformat do not work from emacs · Issue #110 · python-lsp/python-lsp-ruff · GitHub

Open Graph Title: Quick fixes and autoformat do not work from emacs · Issue #110 · python-lsp/python-lsp-ruff

X Title: Quick fixes and autoformat do not work from emacs · Issue #110 · python-lsp/python-lsp-ruff

Description: When using python-lsp-ruff from emacs with eglot, most things work fine, including autocomplete, linting, jump to definition. Two things do not work at all, though: auto-formatting and quick fixes. Those do work when I use the ruff serve...

Open Graph Description: When using python-lsp-ruff from emacs with eglot, most things work fine, including autocomplete, linting, jump to definition. Two things do not work at all, though: auto-formatting and quick fixes....

X Description: When using python-lsp-ruff from emacs with eglot, most things work fine, including autocomplete, linting, jump to definition. Two things do not work at all, though: auto-formatting and quick fixes....

Opengraph URL: https://github.com/python-lsp/python-lsp-ruff/issues/110

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Quick fixes and autoformat do not work from emacs","articleBody":"When using python-lsp-ruff from emacs with eglot, most things work fine, including autocomplete, linting, jump to definition. Two things do not work at all, though: auto-formatting and quick fixes. Those do work when I use the ruff server, so they are supported by eglot/emacs.\n\nI use the following config in emacs:\n\n```\n  (with-eval-after-load 'eglot\n    (add-to-list 'eglot-server-programs\n                 '(python-base-mode . (\"pylsp\" :initializationOptions\n  (:pylsp (:plugins (:ruff\n                     (:enabled t\n                      :formatEnabled t))))))))\n```\n\n\nBelow is a log of a short session where I try to format and ask for fixes.\n\n----- Start log ----\n[jsonrpc] D[00:18:10.925] Running language server: pylsp\n[jsonrpc] e[00:18:10.925] --\u003e initialize[1] {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"processId\":83283,\"clientInfo\":{\"name\":\"Eglot\",\"version\":\"1.17.30\"},\"rootPath\":\"/tmp/test/\",\"rootUri\":\"file:///private/tmp/test\",\"initializationOptions\":{\"pylsp\":{\"plugins\":{\"ruff\":{\"enabled\":true,\"formatEnabled\":true}}}},\"capabilities\":{\"workspace\":{\"applyEdit\":true,\"executeCommand\":{\"dynamicRegistration\":false},\"workspaceEdit\":{\"documentChanges\":true},\"didChangeWatchedFiles\":{\"dynamicRegistration\":true},\"symbol\":{\"dynamicRegistration\":false},\"configuration\":true,\"workspaceFolders\":true},\"textDocument\":{\"synchronization\":{\"dynamicRegistration\":false,\"willSave\":true,\"willSaveWaitUntil\":true,\"didSave\":true},\"completion\":{\"dynamicRegistration\":false,\"completionItem\":{\"snippetSupport\":true,\"deprecatedSupport\":true,\"resolveSupport\":{\"properties\":[\"documentation\",\"details\",\"additionalTextEdits\"]},\"tagSupport\":{\"valueSet\":[1]}},\"contextSupport\":true},\"hover\":{\"dynamicRegistration\":false,\"contentFormat\":[\"markdown\",\"plaintext\"]},\"signatureHelp\":{\"dynamicRegistration\":false,\"signatureInformation\":{\"parameterInformation\":{\"labelOffsetSupport\":true},\"documentationFormat\":[\"markdown\",\"plaintext\"],\"activeParameterSupport\":true}},\"references\":{\"dynamicRegistration\":false},\"definition\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"declaration\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"implementation\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"typeDefinition\":{\"dynamicRegistration\":false,\"linkSupport\":true},\"documentSymbol\":{\"dynamicRegistration\":false,\"hierarchicalDocumentSymbolSupport\":true,\"symbolKind\":{\"valueSet\":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},\"documentHighlight\":{\"dynamicRegistration\":false},\"codeAction\":{\"dynamicRegistration\":false,\"resolveSupport\":{\"properties\":[\"edit\",\"command\"]},\"dataSupport\":true,\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[\"quickfix\",\"refactor\",\"refactor.extract\",\"refactor.inline\",\"refactor.rewrite\",\"source\",\"source.organizeImports\"]}},\"isPreferredSupport\":true},\"formatting\":{\"dynamicRegistration\":false},\"rangeFormatting\":{\"dynamicRegistration\":false},\"rename\":{\"dynamicRegistration\":false},\"inlayHint\":{\"dynamicRegistration\":false},\"publishDiagnostics\":{\"relatedInformation\":false,\"codeDescriptionSupport\":false,\"tagSupport\":{\"valueSet\":[1,2]}}},\"window\":{\"showDocument\":{\"support\":true},\"workDoneProgress\":true},\"general\":{\"positionEncodings\":[\"utf-32\",\"utf-8\",\"utf-16\"]},\"experimental\":{}},\"workspaceFolders\":[{\"uri\":\"file:///private/tmp/test\",\"name\":\"/tmp/test/\"}]}}\n[jsonrpc] e[00:18:11.430] \u003c-- initialize[1] {\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"capabilities\":{\"codeActionProvider\":true,\"codeLensProvider\":{\"resolveProvider\":false},\"completionProvider\":{\"resolveProvider\":true,\"triggerCharacters\":[\".\"]},\"documentFormattingProvider\":true,\"documentHighlightProvider\":true,\"documentRangeFormattingProvider\":true,\"documentSymbolProvider\":true,\"definitionProvider\":true,\"typeDefinitionProvider\":true,\"executeCommandProvider\":{\"commands\":[]},\"hoverProvider\":true,\"referencesProvider\":true,\"renameProvider\":true,\"foldingRangeProvider\":true,\"signatureHelpProvider\":{\"triggerCharacters\":[\"(\",\",\",\"=\"]},\"textDocumentSync\":{\"change\":2,\"save\":{\"includeText\":true},\"openClose\":true},\"notebookDocumentSync\":{\"notebookSelector\":[{\"cells\":[{\"language\":\"python\"}]}]},\"workspace\":{\"workspaceFolders\":{\"supported\":true,\"changeNotifications\":true}},\"experimental\":{}},\"serverInfo\":{\"name\":\"pylsp\",\"version\":\"1.14.0\"}}}\n[jsonrpc] e[00:18:11.430] --\u003e initialized {\"jsonrpc\":\"2.0\",\"method\":\"initialized\",\"params\":{}}\n[jsonrpc] e[00:18:11.431] --\u003e textDocument/didOpen {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/didOpen\",\"params\":{\"textDocument\":{\"uri\":\"file:///private/tmp/test/test.py\",\"version\":0,\"languageId\":\"python-base\",\"text\":\"import sys\\n\\nprint(sys.argv )\\n\"}}}\n[jsonrpc] e[00:18:11.431] --\u003e workspace/didChangeConfiguration {\"jsonrpc\":\"2.0\",\"method\":\"workspace/didChangeConfiguration\",\"params\":{\"settings\":{}}}\n[jsonrpc] e[00:18:11.943] \u003c-- textDocument/publishDiagnostics {\"jsonrpc\":\"2.0\",\"method\":\"textDocument\\/publishDiagnostics\",\"params\":{\"uri\":\"file:\\/\\/\\/private\\/tmp\\/test\\/test.py\",\"diagnostics\":[]}}\n[jsonrpc] e[00:18:16.700] --\u003e textDocument/hover[2] {\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"textDocument/hover\",\"params\":{\"textDocument\":{\"uri\":\"file:///private/tmp/test/test.py\"},\"position\":{\"line\":1,\"character\":0}}}\n[jsonrpc] e[00:18:16.700] --\u003e textDocument/documentHighlight[3] {\"jsonrpc\":\"2.0\",\"id\":3,\"method\":\"textDocument/documentHighlight\",\"params\":{\"textDocument\":{\"uri\":\"file:///private/tmp/test/test.py\"},\"position\":{\"line\":1,\"character\":0}}}\n[jsonrpc] e[00:18:16.700] --\u003e textDocument/signatureHelp[4] {\"jsonrpc\":\"2.0\",\"id\":4,\"method\":\"textDocument/signatureHelp\",\"params\":{\"textDocument\":{\"uri\":\"file:///private/tmp/test/test.py\"},\"position\":{\"line\":1,\"character\":0}}}\n[jsonrpc] e[00:18:16.795] \u003c-- textDocument/hover[2] {\"jsonrpc\":\"2.0\",\"id\":2,\"result\":{\"contents\":\"\"}}\n[jsonrpc] e[00:18:16.820] \u003c-- textDocument/documentHighlight[3] {\"jsonrpc\":\"2.0\",\"id\":3,\"result\":null}\n[jsonrpc] e[00:18:16.820] \u003c-- textDocument/signatureHelp[4] {\"jsonrpc\":\"2.0\",\"id\":4,\"result\":{\"signatures\":[]}}\n[jsonrpc] e[00:18:19.194] --\u003e textDocument/formatting[5] {\"jsonrpc\":\"2.0\",\"id\":5,\"method\":\"textDocument/formatting\",\"params\":{\"textDocument\":{\"uri\":\"file:///private/tmp/test/test.py\"},\"options\":{\"tabSize\":8,\"insertSpaces\":true,\"insertFinalNewline\":true,\"trimFinalNewlines\":true}}}\n[jsonrpc] e[00:18:19.195]   \u003c-- textDocument/formatting[5] {\"jsonrpc\":\"2.0\",\"id\":5,\"result\":null}\n[jsonrpc] e[00:18:44.840] --\u003e textDocument/codeAction[6] {\"jsonrpc\":\"2.0\",\"id\":6,\"method\":\"textDocument/codeAction\",\"params\":{\"textDocument\":{\"uri\":\"file:///private/tmp/test/test.py\"},\"range\":{\"start\":{\"line\":1,\"character\":0},\"end\":{\"line\":1,\"character\":0}},\"context\":{\"diagnostics\":[]}}}\n[jsonrpc] e[00:18:44.841]   \u003c-- textDocument/codeAction[6] {\"jsonrpc\":\"2.0\",\"id\":6,\"result\":[]}\n\n\n","author":{"url":"https://github.com/rjekker","@type":"Person","name":"rjekker"},"datePublished":"2025-12-11T23:23:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/110/python-lsp-ruff/issues/110"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d5d3caaa-06fa-c0c2-1cba-69076ce4d1a9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B98:26FE0E:337AABE:342BD60:697035EB
html-safe-nonce285f4f712c24d18ead3d44fb511439ac8e900e87ac6a3411c5c60627c2dceba9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Qjk4OjI2RkUwRTozMzdBQUJFOjM0MkJENjA6Njk3MDM1RUIiLCJ2aXNpdG9yX2lkIjoiMTQ2MjIyMzI4ODQzNDQzOTY1OSIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9
visitor-hmac0814e4e9f7f003b04897adb43e97bddf6c9c5cdbfbc0d92e964fb042ee83d6fa
hovercard-subject-tagissue:3721300638
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-lsp/python-lsp-ruff/110/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4ad48d0c3d7a995e37a48639f226a5bd08b9a00579db0a52064419e9ec5647a8/python-lsp/python-lsp-ruff/issues/110
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4ad48d0c3d7a995e37a48639f226a5bd08b9a00579db0a52064419e9ec5647a8/python-lsp/python-lsp-ruff/issues/110
og:image:altWhen using python-lsp-ruff from emacs with eglot, most things work fine, including autocomplete, linting, jump to definition. Two things do not work at all, though: auto-formatting and quick fixes....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerjekker
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/python-lsp/python-lsp-ruff git https://github.com/python-lsp/python-lsp-ruff.git
octolytics-dimension-user_id51609341
octolytics-dimension-user_loginpython-lsp
octolytics-dimension-repository_id574578348
octolytics-dimension-repository_nwopython-lsp/python-lsp-ruff
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id574578348
octolytics-dimension-repository_network_root_nwopython-lsp/python-lsp-ruff
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef643964067a552f02067066d6a910b2f90a5721f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues/110#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-lsp%2Fpython-lsp-ruff%2Fissues%2F110
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-lsp%2Fpython-lsp-ruff%2Fissues%2F110
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-lsp%2Fpython-lsp-ruff
Reloadhttps://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues/110
Reloadhttps://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues/110
Reloadhttps://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues/110
python-lsp https://patch-diff.githubusercontent.com/python-lsp
python-lsp-ruffhttps://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-lsp%2Fpython-lsp-ruff
Fork 24 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-lsp%2Fpython-lsp-ruff
Star 212 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-lsp%2Fpython-lsp-ruff
Code https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff
Issues 5 https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues
Pull requests 1 https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/pulls
Actions https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/actions
Projects 0 https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues/110
Insights https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/pulse
Code https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff
Issues https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues
Pull requests https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/pulls
Actions https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/actions
Projects https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/projects
Security https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/security
Insights https://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-lsp/python-lsp-ruff/issues/110
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-lsp/python-lsp-ruff/issues/110
Quick fixes and autoformat do not work from emacshttps://patch-diff.githubusercontent.com/python-lsp/python-lsp-ruff/issues/110#top
https://github.com/rjekker
https://github.com/rjekker
rjekkerhttps://github.com/rjekker
on Dec 11, 2025https://github.com/python-lsp/python-lsp-ruff/issues/110#issue-3721300638
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.