Trying to get Python LSP working

98 views
Skip to first unread message

Chris Wiles

unread,
Oct 23, 2024, 1:43:07 PM10/23/24
to BBEdit Talk
Hello, I hope that I can get some ideas about what further steps I can take to get the Python LSP integration working.

I see the following in the Settings and log file:

Screenshot 2024-10-23 at 11.12.08.png

Screenshot 2024-10-23 at 11.13.21.png

I may be mistaken but these lead me to believe that the LSP server has been 'found' and is replying, but I see nothing in the editor when coding.

Any suggestions about additional troubleshooting I can do?

Thanks

jj

unread,
Oct 24, 2024, 3:01:49 AM10/24/24
to BBEdit Talk
Hi Chris,

For a Python LSP server, you might take a look at ruff:

    https://github.com/astral-sh/ruff
   
You can install it with homebrew in the terminal :

    $ brew install ruff
   
or with cargo if rust is installed on your system:

    $ cargo install ruff
   
Check it was correctly installed by querying the version in the terminal:
   
    $ ruff --version.
    ruff 0.7.0

and the documentation for the server:

    $ ruff server --help
    ...
   
Configure BBEdit in Settings > Languages > Custom Settings > Python > Server:

    Command: ruff
    Arguments: server
    Language ID: python
    Configuration: Default

You should now have a Python LSP.

HTH,

Jean Jourdain

Chris Wiles

unread,
Oct 24, 2024, 1:29:30 PM10/24/24
to BBEdit Talk
Solved.
Reply all
Reply to author
Forward
0 new messages