yeraydiazdiaz / yeray.dev

My personal website
https://yeray.dev
0 stars 2 forks source link

PYLSP Crashing #8

Open herrmartins opened 1 year ago

herrmartins commented 1 year ago

I setted up Pylsp exacly the way you wrote in your blog. I'm using a virtual environment, so I also setted it up the way you wrote in your blog (except the PATH). Now, when enabling the plugin in the project, Sublime Text says pylsp server crashed 5 times in the las 180 seconds. I setted up the log file as you wrote in your blog, but no log file is created. Do you have any idea on how to solve it and make it actually work?

herrmartins commented 1 year ago

Troubleshooting: LSP-pylsp

Version

## Server Configuration
 - command
```json
[
  "$server_path"
]

Active view

Project / Workspace

LSP configuration

{
  "clients": {
    "pylsp": {
      "enabled": false, 
      "log_debug": true, 
      "selector": "source.python", 
      "settings": {
        "pylsp.configurationSources": [
          "flake8"
        ], 
        "pylsp.plugins.autopep8.enabled": false, 
        "pylsp.plugins.black.enabled": true, 
        "pylsp.plugins.flake8.enabled": true, 
        "pylsp.plugins.jedi_rename.enabled": true, 
        "pylsp.plugins.mypy_ls.enabled": true, 
        "pylsp.plugins.pycodestyle.enabled": false, 
        "pylsp.plugins.pyflakes.enabled": false, 
        "pylsp.plugins.yapf.enabled": false
      }
    }
  }
}

System PATH

herrmartins commented 1 year ago

I was trying for a long time to make it work, that's why I wrote here.. but now I got it working, at least it is not crashing. The problem was that jedi was incompatible with python 3.11, what was kind of strange. Then I've installed mypy-ls that installed another version of jedi, and it worked...