Title: Analysis is stuck if packages are reloaded before it finishes. · Issue #1839 · microsoft/python-language-server · GitHub
Open Graph Title: Analysis is stuck if packages are reloaded before it finishes. · Issue #1839 · microsoft/python-language-server
X Title: Analysis is stuck if packages are reloaded before it finishes. · Issue #1839 · microsoft/python-language-server
Description: I'm trying to run MLSP in docker container to provide completions for a project i'm working on. When running on a local machine / VM, everything works fine. In docker container however, the analysis gets stuck, until I trigger a filesyst...
Open Graph Description: I'm trying to run MLSP in docker container to provide completions for a project i'm working on. When running on a local machine / VM, everything works fine. In docker container however, the analysi...
X Description: I'm trying to run MLSP in docker container to provide completions for a project i'm working on. When running on a local machine / VM, everything works fine. In docker container however, the...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1839
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Analysis is stuck if packages are reloaded before it finishes.","articleBody":"I'm trying to run MLSP in docker container to provide completions for a project i'm working on.\r\nWhen running on a local machine / VM, everything works fine. In docker container however, the analysis gets stuck, until I trigger a filesystem operation such as running pip install. If I skip the initial `workspace/didChangeConfiguration` notification, analysis finishes fine. \r\n\r\nReading the code, I'm led to believe this is a problem with `PathsWatcher` class, which only gets created after `workspace/didChangeConfiguration` is called. It seems like it could be an issue with running `System.IO.FileSystemWatcher` in containerized environment, but i'm not 100% sure.\r\n\r\n## Environment data\r\n\u003c!--\r\nTo find your version: \r\n\r\nSelect \"View: Toggle Output\" from the command palette (Ctrl+Shift+P on Windows/Linux, Command+Shift+P on macOS), then select \"Python\" in the dropdown on the right (\"Python Language Server\" if running Insiders build of VS Code). Look for the line Microsoft Python Language Server version X in the console.\r\n-->\r\n\r\n- Language Server version: 0.5.7.0 (also tried 0.4.127) \r\n- OS and version: Debian 9 (on MacOS host)\r\n- Python version: 3.7.3\r\n\r\n## Expected behaviour\r\n\r\nAnalysis should go through all the packages and finish. \r\n\r\n## Actual behaviour\r\n\r\nIn docker, analysis never finishes with \"Analysis restarted\" message appearing before it gets stuck. When a filesystem operation is made (such as pip install), analysis gets reseted again and this time it finishes fine.\r\n\r\n## Logs\r\n\r\nIN: marks a raw input send to MLSP, OUT: is the raw output i'm getting back. The communication is done through my custom LSP plugin in NodeJS, using `vscode-jsonrpc` package for jsonrpc comms.\r\n\r\nThere are 2 logs, first part is until the analysis got stuck, the second is then after I ran `pip install` in the container, analysis got unstack and finished.\r\n\r\nPart 1:\r\nhttps://gist.github.com/danzvara/8fcd139f5568d38e87957fd6dc3bc9dd\r\n\r\nPart2:\r\nhttps://gist.github.com/danzvara/07f94ceffecb071ab2c6e0e2d5101c75\r\n\r\nThanks for any help!\r\n\r\n","author":{"url":"https://github.com/danzvara","@type":"Person","name":"danzvara"},"datePublished":"2019-12-13T12:56:24Z","url":"https://github.com/microsoft/python-language-server/issues/1839"}
| 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:83182019-5f12-a017-168c-46127af2a327 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 911C:2F85FF:3C7898:4F8198:6AFE6186 |
| html-safe-nonce | 690ed088eb733992dfceb10af6ac287d252685c982e9ccca507a92b9cc7cb05e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTFDOjJGODVGRjozQzc4OTg6NEY4MTk4OjZBRkU2MTg2IiwidmlzaXRvcl9pZCI6Ijg2MTk0NTk5MjEyNjk2NDU3MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 43af133b35b1378cd4cf084ca559b55485e89b7c03ec9bac1456625c339b8226 |
| hovercard-subject-tag | issue:537536112 |
| 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/1839/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a58ba66ea0ad094503b37bd088d893f698d0a2ba08a5d3015a665067a6d25e2/microsoft/python-language-server/issues/1839 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a58ba66ea0ad094503b37bd088d893f698d0a2ba08a5d3015a665067a6d25e2/microsoft/python-language-server/issues/1839 |
| og:image:alt | I'm trying to run MLSP in docker container to provide completions for a project i'm working on. When running on a local machine / VM, everything works fine. In docker container however, the analysi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danzvara |
| 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