Title: Pass Python environment as parameter · Issue #1938 · microsoft/python-language-server · GitHub
Open Graph Title: Pass Python environment as parameter · Issue #1938 · microsoft/python-language-server
X Title: Pass Python environment as parameter · Issue #1938 · microsoft/python-language-server
Description: I use mspyls with Neovim Language Client. The settings are statically defined in a settings.json and so is the InterpreterPath. I work with a lot of virtual environments so I want to define my Python binary location based on the project ...
Open Graph Description: I use mspyls with Neovim Language Client. The settings are statically defined in a settings.json and so is the InterpreterPath. I work with a lot of virtual environments so I want to define my Pyth...
X Description: I use mspyls with Neovim Language Client. The settings are statically defined in a settings.json and so is the InterpreterPath. I work with a lot of virtual environments so I want to define my Pyth...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1938
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pass Python environment as parameter","articleBody":"I use mspyls with Neovim Language Client. The settings are statically defined in a settings.json and so is the InterpreterPath. I work with a lot of virtual environments so I want to define my Python binary location based on the project I'm working in.\r\n\r\nsettings.json\r\n\r\n```json\r\n{\r\n \"enabled\": true,\r\n \"initializationOptions\": {\r\n \"displayOptions\": {\r\n \"preferredFormat\": \"markdown\",\r\n \"trimDocumentationLines\": true,\r\n \"maxDocumentationLineLength\": 0,\r\n \"trimDocumentationText\": true,\r\n \"maxDocumentationTextLength\": 0\r\n },\r\n \"interpreter\": {\r\n \"properties\": {\r\n \"InterpreterPath\": \"/usr/bin/python\",\r\n \"UseDefaultDatabase\": true,\r\n \"Version\": \"3.8\"\r\n }\r\n }\r\n }\r\n}\r\n``` \r\n\r\nNow my question arises, is it possible to define the InterpreterPath using terminal arguments?\r\n\r\nFor example:\r\n\r\n```sh\r\ndotnet /usr/local/lib/microsoft-python-language-server/Microsoft.Python.LanguageServer.dll \\\r\n --python /usr/local/bin/python\r\n```\r\n\r\nOr is there a more simpler solution to my problem?","author":{"url":"https://github.com/LanderMoerkerke","@type":"Person","name":"LanderMoerkerke"},"datePublished":"2020-03-13T18:19:54Z","url":"https://github.com/microsoft/python-language-server/issues/1938"}
| 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:25c5355e-9d08-06be-3326-fa8316c3251b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF3E:15051E:2E3A75:3C67CE:6AFE5C66 |
| html-safe-nonce | 20e72156de7b567eda20cb9029391e0e766830e0ea6cf95347ffd59556f04fb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjNFOjE1MDUxRToyRTNBNzU6M0M2N0NFOjZBRkU1QzY2IiwidmlzaXRvcl9pZCI6IjIwNzkxOTE1NjUyNTQ2Nzk2NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b73172607aaf86305de11355d70083fe5eb288c60dd910e7e30dad1d274159bd |
| hovercard-subject-tag | issue:580767863 |
| 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/1938/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0967b529ff694d05a9e6af2d202d03a1ef5b7bb034d69237aadcb2b813a06243/microsoft/python-language-server/issues/1938 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0967b529ff694d05a9e6af2d202d03a1ef5b7bb034d69237aadcb2b813a06243/microsoft/python-language-server/issues/1938 |
| og:image:alt | I use mspyls with Neovim Language Client. The settings are statically defined in a settings.json and so is the InterpreterPath. I work with a lot of virtual environments so I want to define my Pyth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LanderMoerkerke |
| 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