Title: Defaults should really be defaults · Issue #469 · microsoft/python-language-server · GitHub
Open Graph Title: Defaults should really be defaults · Issue #469 · microsoft/python-language-server
X Title: Defaults should really be defaults · Issue #469 · microsoft/python-language-server
Description: I'm developing Eglot, an LSP client for emacs. If the following command dotnet path/to/output/bin/Release/Microsoft.Python.LanguageServer.dll is used to start the server , then this :initializationOptions is enough to get a minimal worki...
Open Graph Description: I'm developing Eglot, an LSP client for emacs. If the following command dotnet path/to/output/bin/Release/Microsoft.Python.LanguageServer.dll is used to start the server , then this :initialization...
X Description: I'm developing Eglot, an LSP client for emacs. If the following command dotnet path/to/output/bin/Release/Microsoft.Python.LanguageServer.dll is used to start the server , then this :initializa...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/469
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Defaults should really be defaults","articleBody":"I'm developing [Eglot, an LSP client for emacs](https://github.com/joaotavora/eglot). If the following command \r\n``` \r\ndotnet path/to/output/bin/Release/Microsoft.Python.LanguageServer.dll\r\n```\r\nis used to start the server , then this `:initializationOptions` is enough to get a minimal working server. \r\n\r\n```\r\n{\"interpreter\":{\"properties\":{\"UseDefaultDatabase\":true}}}\r\n```\r\nIf, on the other hand, `:initializationOptions` is empty or missing from the `:initialize` request, the server errors immediately with\r\n\r\n```json\r\n{\"code\":-32000,\r\n\"message\":\"Object reference not set to an instance of an object.\",\r\n\"data\":\" at Microsoft.Python.LanguageServer.Implementation.LanguageServer.Initialize(JToken token, CancellationToken cancellationToken) in /home/capitaomorte/Source/Csharp/python-language-server/src/LanguageServer/Impl/LanguageServer.Lifetime.cs:line 41\"}\r\n```\r\nMy question here is this: if the \"database\", whatever it means in your server, is the \"default\", shouldn't it be used when the user _defaults_ on it, i.e. _doesn't provide_ it? \r\n\r\nIt would be nice if the server, much like [Palantir's pyls](https://github.com/palantir/python-language-server), could:\r\n\r\n* use the best possible defaults\r\n* deduce the remaining settings from its environment and \r\n* use `:initializationOptions` for allowing user/client tweaks to those settings.\r\n","author":{"url":"https://github.com/joaotavora","@type":"Person","name":"joaotavora"},"datePublished":"2018-12-07T23:22:29Z","url":"https://github.com/microsoft/python-language-server/issues/469"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9559fb53-bb9b-343c-4ec4-8bb01dd112d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3A8:114EC4:87FBCD:B72970:6AFE5AC1 |
| html-safe-nonce | c540e2f06b8b8705ebf65d50531c7701e263fef0a5d7ca9d74e458b835483d13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0E4OjExNEVDNDo4N0ZCQ0Q6QjcyOTcwOjZBRkU1QUMxIiwidmlzaXRvcl9pZCI6IjMzNzM1OTg3NzU4Nzk1NTU3NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5ace5d331c8772e2582e5d69126865fd0f2ec4f3625c54f4ab58b1bf1135911e |
| hovercard-subject-tag | issue:388848603 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/469/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f19e9280b278809229c1756150eb6d86305686dac4bfe3400f6f539b4c412255/microsoft/python-language-server/issues/469 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f19e9280b278809229c1756150eb6d86305686dac4bfe3400f6f539b4c412255/microsoft/python-language-server/issues/469 |
| og:image:alt | I'm developing Eglot, an LSP client for emacs. If the following command dotnet path/to/output/bin/Release/Microsoft.Python.LanguageServer.dll is used to start the server , then this :initialization... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joaotavora |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width